From 3b12aabb8340036cf9aba5a80e827b3034155d34 Mon Sep 17 00:00:00 2001 From: sj-williams Date: Tue, 7 Nov 2023 11:20:25 +0000 Subject: [PATCH] further logging test namespace enforce updates --- test/certmanager_test.go | 2 +- test/external_dns_test.go | 2 +- test/ingress_controller_test.go | 2 +- test/logging_test.go | 2 +- test/modsec_controller_test.go | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/test/certmanager_test.go b/test/certmanager_test.go index 3ab70271c..e0def02b7 100644 --- a/test/certmanager_test.go +++ b/test/certmanager_test.go @@ -79,7 +79,7 @@ var _ = Describe("cert-manager", FlakeAttempts(2), func() { nsObject := metav1.ObjectMeta{ Name: namespace, Labels: map[string]string{ - "pod-security.kubernetes.io/audit": "restricted", + "pod-security.kubernetes.io/enforce": "restricted", }, } diff --git a/test/external_dns_test.go b/test/external_dns_test.go index 0bef1646c..a228e51d7 100644 --- a/test/external_dns_test.go +++ b/test/external_dns_test.go @@ -37,7 +37,7 @@ var _ = Describe("external-dns", func() { nsObject := metav1.ObjectMeta{ Name: namespaceName, Labels: map[string]string{ - "pod-security.kubernetes.io/audit": "restricted", + "pod-security.kubernetes.io/enforce": "restricted", }, } diff --git a/test/ingress_controller_test.go b/test/ingress_controller_test.go index de890eed7..4afad8d9a 100644 --- a/test/ingress_controller_test.go +++ b/test/ingress_controller_test.go @@ -30,7 +30,7 @@ var _ = Describe("ingress-controllers", func() { nsObject := metav1.ObjectMeta{ Name: namespaceName, Labels: map[string]string{ - "pod-security.kubernetes.io/audit": "restricted", + "pod-security.kubernetes.io/enforce": "restricted", }, } diff --git a/test/logging_test.go b/test/logging_test.go index 9dd09aa9c..30c438798 100644 --- a/test/logging_test.go +++ b/test/logging_test.go @@ -44,7 +44,7 @@ var _ = Describe("logging", func() { nsObject := metav1.ObjectMeta{ Name: namespace, Labels: map[string]string{ - "pod-security.kubernetes.io/audit": "restricted", + "pod-security.kubernetes.io/enforce": "restricted", }, } diff --git a/test/modsec_controller_test.go b/test/modsec_controller_test.go index 2742dae02..31adc86be 100644 --- a/test/modsec_controller_test.go +++ b/test/modsec_controller_test.go @@ -36,7 +36,7 @@ var _ = Describe("modsec-ingress-controller", func() { nsObject := metav1.ObjectMeta{ Name: namespaceName, Labels: map[string]string{ - "pod-security.kubernetes.io/audit": "restricted", + "pod-security.kubernetes.io/enforce": "restricted", }, }