gatekeeper-library icon indicating copy to clipboard operation
gatekeeper-library copied to clipboard

add reorder parameter to example kustomize command

Open wkrause13 opened this issue 3 years ago • 1 comments

If you run the example kustomize build and apply command, the constrainttemplate is created after the constraint. The first time this is run, it results in the error below:

constrainttemplate.templates.gatekeeper.sh/k8sreplicalimits created
Error from server (NotFound): error when creating "STDIN": the server could not find the requested resource

Using the --reorder none parameter resolves this issue

wkrause13 avatar Dec 15 '21 16:12 wkrause13

Thanks for the PR!

Is the kustomize command including any constraints? It should only be referencing the library's constraint templates

maxsmythe avatar Dec 17 '21 03:12 maxsmythe

This issue/PR has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jan 31 '23 23:01 stale[bot]