Skip to content

gator compile to compile constrainttemplates from template.yaml and rego file #4250

@JaydipGabani

Description

@JaydipGabani

Describe the solution you'd like
[A clear and concise description of what you want to happen.]
At kubecon one of the feedback was that it is hard to interpret ConstraintTemplates when it is too long and it is difficult to maintain as well. They wanted to keep the rego files seperate so that rego code can be tested and maintained seperately from constraint template. We do this in the gatekeeper-library currently.

a gator compile command may help users compile constraint templates and improve maintainability.

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

Environment:

  • Gatekeeper version:
  • Kubernetes version: (use kubectl version):

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions