Skip to content

Commit

Permalink
feat: add emitAllowAdmissionEvents helm option and align with emitDen…
Browse files Browse the repository at this point in the history
…yAdmissionEvents

Signed-off-by: DorB-P <[email protected]>
  • Loading branch information
DorB-P committed Jul 3, 2024
1 parent d730132 commit 145681f
Show file tree
Hide file tree
Showing 15 changed files with 2,404 additions and 30 deletions.
15 changes: 10 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ MANAGER_IMAGE_PATCH := "apiVersion: apps/v1\
\n args:\
\n - --port=8443\
\n - --logtostderr\
\n - --emit-admission-events\
\n - --emit-allow-admission-events\
\n - --emit-deny-admission-events\
\n - --admission-events-involved-namespace\
\n - --exempt-namespace=${GATEKEEPER_NAMESPACE}\
\n - --operation=webhook\
Expand Down Expand Up @@ -205,8 +206,9 @@ ifeq ($(ENABLE_PUBSUB),true)
--set postInstall.labelNamespace.image.tag=${HELM_RELEASE} \
--set postInstall.labelNamespace.enabled=true \
--set postInstall.probeWebhook.enabled=true \
--set emitAdmissionEvents=true \
--set emitAllowAdmissionEvents=true \
--set emitAuditEvents=true \
--set emitDenyAdmissionEvents=true \
--set admissionEventsInvolvedNamespace=true \
--set auditEventsInvolvedNamespace=true \
--set disabledBuiltins={http.send} \
Expand All @@ -230,8 +232,9 @@ else
--set postInstall.labelNamespace.image.tag=${HELM_RELEASE} \
--set postInstall.labelNamespace.enabled=true \
--set postInstall.probeWebhook.enabled=true \
--set emitAdmissionEvents=true \
--set emitAllowAdmissionEvents=true \
--set emitAuditEvents=true \
--set emitDenyAdmissionEvents=true \
--set admissionEventsInvolvedNamespace=true \
--set auditEventsInvolvedNamespace=true \
--set disabledBuiltins={http.send} \
Expand All @@ -247,8 +250,9 @@ e2e-helm-upgrade-init: e2e-helm-install
./.staging/helm/linux-amd64/helm install gatekeeper gatekeeper/gatekeeper --version ${BASE_RELEASE} \
--namespace ${GATEKEEPER_NAMESPACE} --create-namespace \
--debug --wait \
--set emitAdmissionEvents=true \
--set emitAllowAdmissionEvents=true \
--set emitAuditEvents=true \
--set emitDenyAdmissionEvents=true \
--set admissionEventsInvolvedNamespace=true \
--set auditEventsInvolvedNamespace=true \
--set postInstall.labelNamespace.enabled=true \
Expand All @@ -271,8 +275,9 @@ e2e-helm-upgrade:
--set postInstall.labelNamespace.image.tag=${HELM_RELEASE} \
--set postInstall.labelNamespace.enabled=true \
--set postInstall.probeWebhook.enabled=true \
--set emitAdmissionEvents=true \
--set emitAllowAdmissionEvents=true \
--set emitAuditEvents=true \
--set emitDenyAdmissionEvents=true \
--set admissionEventsInvolvedNamespace=true \
--set auditEventsInvolvedNamespace=true \
--set disabledBuiltins={http.send} \
Expand Down
Loading

0 comments on commit 145681f

Please sign in to comment.