Skip to content

kustomize generator: add ignore file #293

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

Merged
merged 2 commits into from
May 27, 2025
Merged

Conversation

cbarbian-sap
Copy link
Contributor

@cbarbian-sap cbarbian-sap commented May 24, 2025

This PR add the possibility to make the KustomizeGenerator ignore certain files by creating a file called .component-ignore in the kustomization directory (that is the directory passed to NewKustomizeGenerator().
The file uses the usual .gitignore syntax.

Notes:

  • Other than git we honour this file only in the root of the specified kustomization, but not in any subdirectories.
  • The files .component-config.yaml and .component-ignore are always included.
  • Files excluded will not be rendered, and will not be included into a generated kustomization.yaml (in case the directory does not have one).
  • However, excluded files can still be retrieved by the readFile function (and related functions).

@cbarbian-sap cbarbian-sap merged commit 752a62a into main May 27, 2025
9 checks passed
@cbarbian-sap cbarbian-sap deleted the component-ignore-file branch May 27, 2025 21:05
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.

1 participant