Configure the openstack-operator validated patterns section in the values-rhoso-gitops.yaml file
On the bastion, in your forked pattern repository:
cd /home/lab-user/rhoso-gitops
Enable openstack-operator applications in the values-rhoso-gitops.yaml file:
cat >> overrides/values-rhoso-gitops.yaml <<'EOF'
openstack-operator:
repoURL: https://github.com/openstack-k8s-operators/gitops
path: example/openstack-operator
targetRevision: v0.3.4
kustomize:
patches:
- target:
kind: OperatorGroup
name: openstack
patch: |-
apiVersion: operators.coreos.com/v1
kind: OperatorGroup
metadata:
name: openstack
$patch: delete
- target:
kind: Namespace
name: openstack
patch: |-
apiVersion: v1
kind: Namespace
metadata:
name: openstack
$patch: delete
- target:
kind: Namespace
name: openstack-operators
patch: |-
apiVersion: v1
kind: Namespace
metadata:
name: openstack-operators
$patch: delete
- target:
kind: Job
name: approve-openstack-installplan
patch: |-
[
{"op": "replace", "path": "/metadata/namespace", "value": "openshift-gitops"},
{"op": "replace", "path": "/spec/template/spec/serviceAccountName", "value": "openshift-gitops-argocd-application-controller"}
]
- target:
kind: ClusterRoleBinding
name: installplan-approver-binding
patch: |-
[
{"op": "replace", "path": "/subjects/0/name", "value": "openshift-gitops-argocd-application-controller"},
{"op": "replace", "path": "/subjects/0/namespace", "value": "openshift-gitops"}
]
EOF
Commit the files created and push them to your GitHub repo:
git add overrides/values-rhoso-gitops.yaml
git commit -m "Configure openstack-operator and openstack-operator-cr validated patterns section in the values-rhoso-gitops.yaml file"
git push origin