Skip to content

How Argo CD handle templates/tests directory of a helm chart? #15302

Answered by ChristianCiach
mikutas asked this question in Q&A
Discussion options

You must be logged in to vote

The Gitops-Engine skips manifests that have a helm.sh/hook annotation with an unsupported value (like test) in this case.

See https://github.com/argoproj/gitops-engine/blob/6b2984ebc47085852a7b63a0fd0b73c52e986217/pkg/sync/ignore/ignore.go#L11

len(hook.Types(obj)) == 0 is true because the Types function only returns supported hook types: https://github.com/argoproj/gitops-engine/blob/6b2984ebc47085852a7b63a0fd0b73c52e986217/pkg/sync/hook/helm/type.go#L38

In other words: ArgoCD doesn't explicitly skip test resources. It actually skips all helm hooks with unsupported helm-hook annotations; test just happens being one of them.

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@mikutas
Comment options

Answer selected by mikutas
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants