Skip to content

Latest commit

 

History

History
36 lines (25 loc) · 1.07 KB

konstraint_create.md

File metadata and controls

36 lines (25 loc) · 1.07 KB

konstraint create

Create Gatekeeper constraints from Rego policies

konstraint create <dir> [flags]

Examples

Create constraints in the same directories as the policies
	konstraint create examples

Save the constraints in a specific directory
	konstraint create examples --output generated-constraints

Create constraints with the Gatekeeper enforcement action set to dryrun
	konstraint create examples --dryrun

Options

      --constraint-template-version string   Set the version of ConstraintTemplates (default "v1beta1")
  -d, --dryrun                               Sets the enforcement action of the constraints to dryrun, overriding the @enforcement tag
  -h, --help                                 help for create
  -o, --output string                        Specify an output directory for the Gatekeeper resources
      --partial-constraints                  Generate partial Constraints for policies with parameters
      --skip-constraints                     Skip generation of constraints

SEE ALSO