Skip to content

Commit 7a2c28e

Browse files
authored
Generate v1 constrainttemplates by default (#585)
1 parent 42179f7 commit 7a2c28e

File tree

25 files changed

+27
-25
lines changed

25 files changed

+27
-25
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ acceptance: build ## Runs the acceptance tests.
2020

2121
.PHONY: policy
2222
policy: ## Runs the policy tests.
23-
conftest verify -p examples
23+
conftest verify -p examples -d examples/test-data
2424

2525
.PHONY: update-static
2626
update-static: build ## Updates the static assets in the repository.

docs/cli/konstraint_create.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Create constraints with the Gatekeeper enforcement action set to dryrun
2424
```
2525
--constraint-custom-template-file string Path to a custom template file to generate constraints
2626
--constraint-template-custom-template-file string Path to a custom template file to generate constraint templates
27-
--constraint-template-version string Set the version of ConstraintTemplates (default "v1beta1")
27+
--constraint-template-version string Set the version of ConstraintTemplates (default "v1")
2828
-d, --dryrun Set the enforcement action of the constraints to dryrun, overriding the @enforcement tag
2929
-h, --help help for create
3030
--log-level string Set a log level. Options: error, info, debug, trace (default "info")

examples/container_deny_added_caps/template.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
apiVersion: templates.gatekeeper.sh/v1beta1
1+
apiVersion: templates.gatekeeper.sh/v1
22
kind: ConstraintTemplate
33
metadata:
44
creationTimestamp: null

examples/container_deny_escalation/template.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
apiVersion: templates.gatekeeper.sh/v1beta1
1+
apiVersion: templates.gatekeeper.sh/v1
22
kind: ConstraintTemplate
33
metadata:
44
creationTimestamp: null

examples/container_deny_latest_tag/template.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
apiVersion: templates.gatekeeper.sh/v1beta1
1+
apiVersion: templates.gatekeeper.sh/v1
22
kind: ConstraintTemplate
33
metadata:
44
creationTimestamp: null

examples/container_deny_privileged/template.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
apiVersion: templates.gatekeeper.sh/v1beta1
1+
apiVersion: templates.gatekeeper.sh/v1
22
kind: ConstraintTemplate
33
metadata:
44
creationTimestamp: null

examples/container_deny_privileged_if_tenant/template.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
apiVersion: templates.gatekeeper.sh/v1beta1
1+
apiVersion: templates.gatekeeper.sh/v1
22
kind: ConstraintTemplate
33
metadata:
44
creationTimestamp: null

examples/container_deny_without_resource_constraints/template.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
apiVersion: templates.gatekeeper.sh/v1beta1
1+
apiVersion: templates.gatekeeper.sh/v1
22
kind: ConstraintTemplate
33
metadata:
44
creationTimestamp: null

examples/pod_deny_host_alias/template.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
apiVersion: templates.gatekeeper.sh/v1beta1
1+
apiVersion: templates.gatekeeper.sh/v1
22
kind: ConstraintTemplate
33
metadata:
44
creationTimestamp: null

examples/pod_deny_host_ipc/template.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
apiVersion: templates.gatekeeper.sh/v1beta1
1+
apiVersion: templates.gatekeeper.sh/v1
22
kind: ConstraintTemplate
33
metadata:
44
creationTimestamp: null

0 commit comments

Comments
 (0)