Skip to content
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
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ metadata:
spec:
template:
spec:
# NOTE (FIND-013 / OSPRH-32425): This post-delete hook runs as the shared ArgoCD
# SA which carries the full gitops-openstack ClusterRole. The hook is an example
# pattern for CI/lab environments; it only needs delete on openstackcontrolplanes
# in the openstack namespace. For production use, replace with a dedicated SA
# bound to a minimal Role scoped to that single verb/resource/namespace, and set
# automountServiceAccountToken: true only on the Job pod spec.
serviceAccountName: openshift-gitops-argocd-application-controller
restartPolicy: Never
securityContext:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ metadata:
spec:
template:
spec:
# NOTE (FIND-013 / OSPRH-32425): This post-delete hook runs as the shared ArgoCD
# SA which carries the full gitops-openstack ClusterRole. The hook is an example
# pattern for CI/lab environments; it only needs delete on openstackdataplaneservices
# in the openstack namespace. For production use, replace with a dedicated SA
# bound to a minimal Role scoped to that single verb/resource/namespace, and set
# automountServiceAccountToken: true only on the Job pod spec.
serviceAccountName: openshift-gitops-argocd-application-controller
restartPolicy: Never
securityContext:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ metadata:
spec:
template:
spec:
# NOTE (FIND-013 / OSPRH-32425): This post-delete hook runs as the shared ArgoCD
# SA which carries the full gitops-openstack ClusterRole. The hook is an example
# pattern for CI/lab environments; it only needs delete on ClusterServiceVersions
# in openshift-operators. For production use, replace with a dedicated SA bound
# to a minimal Role scoped to that single verb/resource/namespace, and set
# automountServiceAccountToken: true only on the Job pod spec.
serviceAccountName: openshift-gitops-argocd-application-controller
restartPolicy: Never
securityContext:
Expand Down
9 changes: 9 additions & 0 deletions components/utilities/approve-installplan/job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -174,4 +174,13 @@ spec:

log "Job completed successfully."
restartPolicy: Never
# NOTE (FIND-013 / OSPRH-32425): This Job runs as the shared ArgoCD SA which
# carries the full gitops-openstack ClusterRole. The approve-installplan pattern
# is a CI/lab convenience to handle Manual installPlanApproval without human
# intervention; it is not intended for production environments. When OLM v2
# (ClusterExtension API) becomes standard, InstallPlan approval is replaced by
# version pinning in Git and this Job will no longer be needed. For production
# use, create a dedicated SA bound only to a Role granting get/list/patch on
# installplans in the target namespace, with automountServiceAccountToken: true
# only on the Job pod spec.
serviceAccountName: openshift-gitops-argocd-application-controller
Loading