Skip to content
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

Kustomization - Generating a kustomization.yaml file #1667

Open
johanneskastl opened this issue Sep 22, 2023 · 0 comments
Open

Kustomization - Generating a kustomization.yaml file #1667

johanneskastl opened this issue Sep 22, 2023 · 0 comments

Comments

@johanneskastl
Copy link

johanneskastl commented Sep 22, 2023

https://fluxcd.io/flux/components/kustomize/kustomizations/#generating-a-kustomizationyaml-file

(I wanted to open a PR for this page, but did not find it in https://github.com/fluxcd/website).

I really would like to see two important facts in this page. And in the quickstart guide, but I'll open another issue for that.

  • if no kustomization.yaml (Kubernetes, not the Flux2 one) is present, all manifests from all subdirectories are used.
  • you can exclude manifests by using a kustomization.yaml that does not contain the manifests you want to exclude.

Something like this:

By default, Flux uses all manifests in the path specified by the Kustomization, if no kustomization.yaml is present. In this case a kustomization.yaml will be generated on the fly using all the manifests found in this directory and its subdirectories.

If a kustomization.yaml is found, only those manifests mentioned in it will be used. This is useful to exclude manifests or folders from being used, to e.g. use them in a separate kustomization due to ordering issues
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant