-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ignore kustomization.yaml when using kubectl deployer #2432
Comments
Hi @poikilotherm, thanks for opening this! 1.) I'm not sure that hard coding excluding kustomize yamls is the direction we'd like to go - however if we'd support an |
Hi @balopat thanks for coming back to me. Ad 1) an Ad 2) I would like to keep things not depending on |
Another approach would be to follow the semantics of dockerignore files, where a manifests:
- k8s/*.yaml # includes all yamls
- '!**/kustomize*' # excludes kustomize Or is that too magic? |
Thank you for the idea! I'm closing this issue as it's been open a while, and it is not clear if it's still an open issue. No one has recently stated an interest in addressing this, but if you feel strongly about it, please feel free to add a comment. |
I'm also interested in this feature. Any thoughts on reconsidering? |
@Schachte we recently added functionality to use kubectl's built-in kustomize when the standalone binary isn't present on the host, which might enable you to use our |
Expected behavior
When using a
kubectl
deployer withor similar, deploymens should succeed, as
kustomization.yaml
files are filtered from the glob match.Actual behavior
When a
kustomization.yaml
is present in the manifests, validation will fail due to kubernetes-sigs/kustomize#738. This will fail deployment, too, whilekubectl
is otherwise only printing warnings, but deploying everything else.Information
Steps to reproduce the behavior
kustomization.yaml
fileskaffold run
fail, as validation fails for kustomization.yamlThe text was updated successfully, but these errors were encountered: