-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(backendconnection): add annotation to prevent ArgoCD pruning
For clusters managed by ArgoCD, we need to prevent ArgoCD to prune Kubernetes resources necessary for the OTel collector managed by the operator. If pruning is enabled in ArgoCD, it will automatically delete resources which have no owner reference. This applies to all cluster-scoped resources which the operator creates (since cluster-scoped resource cannot be owned by namespace-scoped resources). In particular, this affects the cluster role & cluster role binding. References: * argoproj/argo-cd#4764 (comment) this indicates that only top level resources are pruned (which is basically the same as resources without an owner reference). * The docs for preventing this on a resource level are here: https://argo-cd.readthedocs.io/en/stable/user-guide/sync-options/#no-prune-resources
- Loading branch information
Showing
3 changed files
with
58 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters