From 9e4a56b3d6429fdbc0e67c4ff26dac2bac1c1965 Mon Sep 17 00:00:00 2001 From: Kobi Kadosh Date: Mon, 12 Jun 2023 14:43:11 +0300 Subject: [PATCH] support openshift DeploymentConfig & Route in enforcer webhooks --- cbcontainers/state/components/enforcer_mutating_webhook.go | 2 ++ cbcontainers/state/components/enforcer_validating_webhook.go | 2 ++ 2 files changed, 4 insertions(+) diff --git a/cbcontainers/state/components/enforcer_mutating_webhook.go b/cbcontainers/state/components/enforcer_mutating_webhook.go index 3081b93b..6711eeaa 100644 --- a/cbcontainers/state/components/enforcer_mutating_webhook.go +++ b/cbcontainers/state/components/enforcer_mutating_webhook.go @@ -206,6 +206,8 @@ func (obj *EnforcerMutatingWebhookK8sObject) getResourcesList() []string { "cronjobs", "ingresses", "customresourcedefinitions", + "deploymentconfigs", + "routes", } } diff --git a/cbcontainers/state/components/enforcer_validating_webhook.go b/cbcontainers/state/components/enforcer_validating_webhook.go index be16f306..1e855f1e 100644 --- a/cbcontainers/state/components/enforcer_validating_webhook.go +++ b/cbcontainers/state/components/enforcer_validating_webhook.go @@ -216,6 +216,8 @@ func (obj *EnforcerValidatingWebhookK8sObject) getResourcesList() []string { "cronjobs", "ingresses", "customresourcedefinitions", + "deploymentconfigs", + "routes", } }