open-policy-agent / gatekeeper

🐊 Gatekeeper - Policy Controller for Kubernetes
https://open-policy-agent.github.io/gatekeeper/
Apache License 2.0
3.72k stars 765 forks source link

feat: add kustomize file for ks remote build #3661

Closed yashwanth-l closed 2 weeks ago

yashwanth-l commented 1 month ago

What this PR does / why we need it:

Which issue(s) this PR fixes (optional, using fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when the PR gets merged): https://github.com/open-policy-agent/gatekeeper/issues/3660 Fixes # https://github.com/open-policy-agent/gatekeeper/issues/3660

Special notes for your reviewer: N/A

JaydipGabani commented 1 month ago

@yashwanth-l Any changes made in deploy will get clobbered when we do a new release. Perhaps you may be able to use /gatekeeper/config/default for kustomize build. Here is how we do it to create deploy/gatekeeper.yaml - https://github.com/open-policy-agent/gatekeeper/blob/master/Makefile#L345