globbing/wildcards in "resources" field
Author: ahmetbCreated Jun 18, 2018Updated Aug 27, 2026
Labelshelp wantedkind/featurelifecycle/frozenneeds-triage
It looks like if I have tens of YAML files in a directory, my kustomization.yaml will exhaustively list them like this:
resources:
- secret.yaml
- service.yaml
- deployment.yamlIt feels like a bit inconvenience. Is it possible to use globs (i.e. **.yaml) for this field? (Skaffold does support this and it's helpful.)
I think if I use kustomize and add new YAML files, aside from kubectl apply -R -f .dir working out of the box, I now have to go back and edit kustomization.yaml for it to work (in other words: two places to update).
Source: kubernetes-sigs/kustomize