helmignore double-star syntax is not supported in helm 3

2/12/2020

I want to ignore specifics files in subchart folder (because some objects, like secrets, are created by all my subchart, so duplicated...). I don't know the depth of these objects. So I want to use this syntax in .helmignore :

charts/**/myfile.yaml

But I got this error :

Error: double-star (**) syntax is not supported

How can I do that in helm 3 ?

-- Antoine
ignore
kubernetes
kubernetes-helm

1 Answer

2/18/2020

Unfortunately, this feature doesn't supported nether in helm2 nor helm3.

  • helm2 source code: link
  • helm3 source code: link

Try to ignore it explicitly:

$ cat .helmignore
secrets
# or 
./secrets/my-secret.yaml
-- Andrii Soldatenko
Source: StackOverflow