How Argo CD handle templates/tests
directory of a helm chart?
#15302
-
Just curious to know... (But |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Could we get some input on this? Because its quite confusing... |
Beta Was this translation helpful? Give feedback.
-
The Gitops-Engine skips manifests that have a
In other words: ArgoCD doesn't explicitly skip test resources. It actually skips all helm hooks with unsupported helm-hook annotations; |
Beta Was this translation helpful? Give feedback.
-
Created an enhancement request to add support for this: #19956 |
Beta Was this translation helpful? Give feedback.
The Gitops-Engine skips manifests that have a
helm.sh/hook
annotation with an unsupported value (liketest
) in this case.See https://github.com/argoproj/gitops-engine/blob/6b2984ebc47085852a7b63a0fd0b73c52e986217/pkg/sync/ignore/ignore.go#L11
len(hook.Types(obj)) == 0
istrue
because theTypes
function only returns supported hook types: https://github.com/argoproj/gitops-engine/blob/6b2984ebc47085852a7b63a0fd0b73c52e986217/pkg/sync/hook/helm/type.go#L38In 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.