Skip to content

Commit

Permalink
update controller gen and manifests
Browse files Browse the repository at this point in the history
Signed-off-by: Rita Zhang <rita.z.zhang@gmail.com>
  • Loading branch information
ritazh committed Jan 11, 2024
1 parent 6ebe765 commit aa94706
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 4 deletions.
45 changes: 45 additions & 0 deletions config/overlays/dev/manager_image_patch.yaml-e
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: controller-manager
namespace: system
spec:
template:
spec:
containers:
- image: <your image file>
name: manager
args:
- --port=8443
- --logtostderr
- --emit-admission-events
- --admission-events-involved-namespace
- --exempt-namespace=gatekeeper-system
- --operation=webhook
- --operation=mutation-webhook
- --disable-opa-builtin=http.send
- --log-mutations
- --mutation-annotations
- --vap-enforcement=GATEKEEPER_DEFAULT
- --validate-template-rego=false
- --experimental-enable-k8s-native-validation
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: audit
namespace: system
spec:
template:
spec:
containers:
- image: <your image file>
name: manager
args:
- --emit-audit-events
- --audit-events-involved-namespace
- --operation=audit
- --operation=status
- --operation=mutation-status
- --audit-chunk-size=500
- --logtostderr
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.11.3
controller-gen.kubebuilder.io/version: v0.10.0
labels:
gatekeeper.sh/system: "yes"
name: constrainttemplates.templates.gatekeeper.sh
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.11.3
controller-gen.kubebuilder.io/version: v0.10.0
labels:
gatekeeper.sh/system: "yes"
name: providers.externaldata.gatekeeper.sh
Expand Down
4 changes: 2 additions & 2 deletions manifest_staging/deploy/gatekeeper.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1927,7 +1927,7 @@ apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.11.3
controller-gen.kubebuilder.io/version: v0.10.0
labels:
gatekeeper.sh/system: "yes"
name: constrainttemplates.templates.gatekeeper.sh
Expand Down Expand Up @@ -3296,7 +3296,7 @@ apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.11.3
controller-gen.kubebuilder.io/version: v0.10.0
labels:
gatekeeper.sh/system: "yes"
name: providers.externaldata.gatekeeper.sh
Expand Down

0 comments on commit aa94706

Please sign in to comment.