Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to support OpenShift GitOps 1.11 #272

Merged
merged 1 commit into from
Jan 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions openshift-gitops-operator/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ The current *overlays* available are for the following channels:
* [gitops-1.8](operator/overlays/gitops-1.8)
* [gitops-1.9](operator/overlays/gitops-1.9)
* [gitops-1.10](operator/overlays/gitops-1.10)
* [gitops-1.11](operator/overlays/gitops-1.11)
* [latest](operator/overlays/latest)
* [preview](operator/overlays/preview)

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# openshift-gitops-operator

## Purpose
This component is creates a `Namespace` and `OperatorGroup` to enable the installation of the OpenShift GitOps Operator.

## Usage

This component can be added to a base by adding the `components` section to your overlay `kustomization.yaml` file:

```
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

resources:
- ../../base

components:
- ../../components/openshift-gitops-operator
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
apiVersion: kustomize.config.k8s.io/v1alpha1
kind: Component

resources:
- namespace.yaml
- operatorgroup.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
apiVersion: v1
kind: Namespace
metadata:
name: openshift-gitops-operator
annotations:
openshift.io/display-name: "OpenShift GitOps Operator"
labels:
openshift.io/cluster-monitoring: 'true'
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
apiVersion: operators.coreos.com/v1
kind: OperatorGroup
metadata:
name: openshift-gitops-operator
namespace: openshift-gitops-operator
spec: {}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Installs the *gitops-1.10* channel version of the OpenShift GitOps Operator. This channel tracks updates to OpenShift GitOps 1.10.
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

resources:
- ../../base

components:
- ../../components/openshift-gitops-operator

patches:
- target:
kind: Subscription
name: openshift-gitops-operator
path: patch-subscription.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
- op: replace
path: /spec/channel
value: gitops-1.11
- op: replace
path: /metadata/namespace
value: openshift-gitops-operator
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,11 @@ kind: Kustomization
resources:
- ../../base

components:
- ../../components/openshift-gitops-operator

patches:
- target:
kind: Subscription
name: openshift-gitops-operator
path: patch-channel.yaml
path: patch-subscription.yaml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
- op: replace
path: /spec/channel
value: latest
- op: replace
path: /metadata/namespace
value: openshift-gitops-operator
Loading