Skip to content

Conversation

@borntyping
Copy link
Contributor

When calling kustomize(<directory>) in a Tiltfile, the directory is watched as well as any paths the Kustomization includes. This doesn't currently include components, so Kustomizations that include components don't trigger a reload of the Tiltfile and the Kustomization when files in those components change.

This PR adds the components: field of a Kustomization to the list of paths dependenciesForKustomization will inspect.

When calling "kustomize(<directory>)" in a Tiltfile, the directory
is watched as well as any paths the Kustomization includes. This
doesn't currently include components, so Kustomizations that
include components[1] don't trigger a reload of the Tiltfile
and the Kustomization when files in those components change.

This commit adds the "components:"" field of a Kustomization to
the list of paths "dependenciesForKustomization" will inspect.

[1]: https://github.com/kubernetes-sigs/kustomize/blob/master/examples/components.md

Signed-off-by: Sam Clements <[email protected]>
@borntyping borntyping marked this pull request as ready for review April 8, 2025 10:40
Copy link
Member

@nicks nicks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@nicks nicks merged commit a2631c1 into tilt-dev:master Apr 9, 2025
8 checks passed
@borntyping borntyping deleted the track-kustomize-components branch April 9, 2025 19:39
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 this pull request may close these issues.

2 participants