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

Kustomize applies and notifies when no changes occur #413

Closed
mbrancato opened this issue Aug 25, 2021 · 0 comments · Fixed by #426
Closed

Kustomize applies and notifies when no changes occur #413

mbrancato opened this issue Aug 25, 2021 · 0 comments · Fixed by #426

Comments

@mbrancato
Copy link

In a multi-cluster setup (e.g. https://github.com/fluxcd/flux2-kustomize-helm-example), the kustomize controller will apply manifests and send notifications on any change to the git repo.

Looking at this example of a Kustomization resource:

https://github.com/fluxcd/flux2-kustomize-helm-example/blob/f0c2aaef48461d8099a8fff05893e9ebb96f1561/clusters/production/apps.yaml#L6-L13

The spec.path tells Flux where the config is for this cluster. If a change is made in a different path for a different cluster, it causes the kustomize controller to trigger. If would be great if the controller could detect if there are changes (git diff --name-only <currently applied commit> <new commit>) in the spec.path and only apply when there are changes.

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

Successfully merging a pull request may close this issue.

1 participant