Skip to content

Conversation

ATGardner
Copy link
Contributor

re-open of #642

What

This pull request makes a minor update to the cleanup-resources.yaml hook template by changing the serviceAccount used for the cleanup job. The new service account, runtime-cleanup, is likely more appropriate for the job's permissions and responsibilities.

  • Changed the serviceAccount in the charts/gitops-runtime/templates/hooks/pre-uninstall/cleanup-resources.yaml file from argocd-application-controller to runtime-cleanup to better align with the job's purpose.

Why

Error creating: pods "cleanup-runtime-resources-" is forbidden: error looking up service account codefresh-gitops/argocd-application-controller: serviceaccount "argocd-application-controller" not found 

codefresh-gitops mentioned in the error message above refers to a namespace.

Notes

Use case: leveraging the gitops-runtime chart for the deployment of argo-rollouts components within Managed Clusters. In this context, I disable nearly all Codefresh GitOps Runtime components in the values.yaml (including the argo-cd dependency, which is the reason the Argo Application Controller is absent) to focus exclusively on the argo-rollouts components (Argo Rollouts and its Event Reporter) on Managed Clusters connected to the Runtime.

@ATGardner
Copy link
Contributor Author

/e2e

@ATGardner ATGardner merged commit 328a83c into main Sep 17, 2025
4 checks passed
@ATGardner ATGardner deleted the fix/svc-acc-pre-uninstall-hook branch September 17, 2025 08:32
ATGardner added a commit that referenced this pull request Sep 17, 2025
ATGardner added a commit that referenced this pull request Sep 17, 2025
* fix: service account for cleanup runtime resources (#726)

---------

Co-authored-by: Wítallo <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants