Configure the operator-dependencies validated patterns section in the values-rhoso-gitops.yaml file

On the bastion, in your forked pattern repository:

cd /home/lab-user/rhoso-gitops

Add the following block after the applications section to the values-rhoso-gitops.yaml file:

cat >> overrides/values-rhoso-gitops.yaml <<'EOF'
applications:
  operator-dependencies:
    repoURL: https://github.com/openstack-k8s-operators/gitops
    path: example/dependencies
    targetRevision: v0.3.4
    kustomize:
      components:
        - "https://github.com/openstack-k8s-operators/gitops/components/argocd/hooks/postDelete/deploy-operators?ref=v0.3.4"
        - "https://github.com/openstack-k8s-operators/gitops/components/dependencies/provisioning-config?ref=v0.3.4"
        - "https://github.com/openstack-k8s-operators/gitops/components/argocd/annotations?ref=v0.3.4"
      patches:
        - target:
            kind: Job
            name: clean-observability
          patch: |-
            [
              {"op": "replace", "path": "/metadata/namespace", "value": "openshift-gitops"},
              {"op": "replace", "path": "/spec/template/spec/serviceAccountName", "value": "openshift-gitops-argocd-application-controller"}
            ]
EOF

Commit the files created and push them to your GitHub repo:

git add overrides/values-rhoso-gitops.yaml
git commit -m "Configure operator-dependencies validated patterns section in the values-rhoso-gitops.yaml file"
git push origin