Skip to content

Commit

Permalink
update modsec logging test namespace psa label to enforce (#2559)
Browse files Browse the repository at this point in the history
* update modsec logging test namespace psa label to enforce

* further logging test namespace enforce updates
  • Loading branch information
sj-williams authored Nov 7, 2023
1 parent 1357a52 commit 51e1510
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion test/certmanager_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
},
}

Expand Down
2 changes: 1 addition & 1 deletion test/external_dns_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
},
}

Expand Down
2 changes: 1 addition & 1 deletion test/ingress_controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
},
}

Expand Down
2 changes: 1 addition & 1 deletion test/logging_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
},
}

Expand Down
2 changes: 1 addition & 1 deletion test/modsec_controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
},
}

Expand Down
2 changes: 1 addition & 1 deletion test/modsec_logging_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ var _ = Describe("logging", Ordered, func() {
nsObject := metav1.ObjectMeta{
Name: namespace,
Labels: map[string]string{
"pod-security.kubernetes.io/audit": "restricted",
"pod-security.kubernetes.io/enforce": "restricted",
},
}

Expand Down

0 comments on commit 51e1510

Please sign in to comment.