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.


Co-authored-by: Wítallo 15958770+witalloliveira@users.noreply.github.com

---------

Co-authored-by: Wítallo <15958770+witalloliveira@users.noreply.github.com>
@ATGardner ATGardner requested review from a team as code owners September 17, 2025 08:35
@ATGardner ATGardner self-assigned this Sep 17, 2025
@ATGardner ATGardner changed the base branch from main to stable/0.24 September 17, 2025 08:36
@ATGardner
Copy link
Contributor Author

/e2e

@ATGardner
Copy link
Contributor Author

/e2e

@ATGardner ATGardner merged commit 2b68ef9 into stable/0.24 Sep 17, 2025
3 checks passed
@ATGardner ATGardner deleted the fix/svc-acc-pre-uninstall-hook branch September 17, 2025 12:08
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.

2 participants