Skip to content

Commit

Permalink
Remove the PodSecurityCheck test.
Browse files Browse the repository at this point in the history
  • Loading branch information
ericpromislow committed May 13, 2024
1 parent 36e70da commit a289d4e
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions tests/hull/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import (
batchv1 "k8s.io/api/batch/v1"
corev1 "k8s.io/api/core/v1"

policyv1beta1 "k8s.io/api/policy/v1beta1"
rbacv1 "k8s.io/api/rbac/v1"
resource "k8s.io/apimachinery/pkg/api/resource"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
Expand Down Expand Up @@ -714,14 +713,6 @@ var suite = test.Suite{
assert.False(tc.T, pspsFound, "ClusterRole %s has incorrect PSP configuration", cr.Name)
}
}),
checker.OnResources[*policyv1beta1.PodSecurityPolicy](func(tc *checker.TestContext, psps []*policyv1beta1.PodSecurityPolicy) {
pspsEnabled, _ := checker.RenderValue[bool](tc, ".Values.global.cattle.psp.enabled")
if pspsEnabled {
assert.Equal(tc.T, 2, len(psps), "Missing PSPs")
} else {
assert.Equal(tc.T, 0, len(psps), "Missing PSPs")
}
}),
},
},
},
Expand Down

0 comments on commit a289d4e

Please sign in to comment.