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

kubectl plugin for opa gatekeeper #1172

Open
developer-guy opened this issue Mar 10, 2021 · 6 comments
Open

kubectl plugin for opa gatekeeper #1172

developer-guy opened this issue Mar 10, 2021 · 6 comments

Comments

@developer-guy
Copy link
Contributor

Describe the solution you'd like
[A clear and concise description of what you want to happen.]
It would be good if we develop a kubectl plugin for OPA Gatekeeper, maybe with this plugin we can apply, validate, and test the Contraint & ConstraintTemplates, or maybe rule written by Rego.

Anything else you would like to add:
[Miscellaneous information that will assist in solving the issue.]

Environment:

  • Gatekeeper version:
  • Kubernetes version: (use kubectl version):
@developer-guy developer-guy added the enhancement New feature or request label Mar 10, 2021
@brycecr
Copy link
Contributor

brycecr commented Mar 17, 2021

One possible option would be to use kpt, which has the gatekeeper-validate function that validates yaml against constraints. This walkthrough gives some indication how that might be achieved.

@ritazh
Copy link
Member

ritazh commented Apr 2, 2021

+1

@developer-guy
Copy link
Contributor Author

is it possible to start the development of this plugin within the project Gatekeeper? @ritazh or should we start the development with a separate project?

@stale
Copy link

stale bot commented Jul 23, 2022

This issue 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 stale bot added the wontfix This will not be worked on label Jul 23, 2022
@ritazh
Copy link
Member

ritazh commented Aug 2, 2022

@developer-guy We now have https://open-policy-agent.github.io/gatekeeper/website/docs/gator#the-gator-test-subcommand. Can you PTAL and see if this addresses your ask?

@ritazh ritazh removed wontfix This will not be worked on need more discussion labels Aug 2, 2022
@ritazh
Copy link
Member

ritazh commented Aug 3, 2022

As discussed on 8/3/3022 community call, gator currently can verify and test, but it cannot apply.

One thought is if kubectl apply can wait for constraint templates and constraints to be applied, before deploying the rest of resources that need to be validated. This is a missing experience for Kubernetes at large beyond the scope of this project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants