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

Allow reuse of patches #975

Closed
monopole opened this issue Apr 12, 2019 · 2 comments
Closed

Allow reuse of patches #975

monopole opened this issue Apr 12, 2019 · 2 comments

Comments

@monopole
Copy link
Contributor

The data path restrictions imposed in #700 have the unintended effect of blocking the reuse of patch files. #700 doesn't create a problem for resources, as the way to achieve resource reuse is through bases (different kustomizations can refer to the same base). A base is also a way to reuse generated resources like secrets and config maps, so #700 doesn't block generator reuse.

But patches are transformers. We can allow their reuse via the new transformers plugin notation (which will allow base-like addressing kubernetes/enhancements#931) - or via a flag that disables the Loader restrictions.

@monopole
Copy link
Contributor Author

See #998

Adding --load_restrictor none flag disables the thing blocking patch sharing.

@pohly
Copy link
Contributor

pohly commented Jun 5, 2019

@monopole: --load_restrictor none works when calling kustomize directly. Is something similar planned for kubectl apply/create --kustomize?

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

2 participants