kubewarden / seccomp-psp-policy

A Kubewarden Pod Security Policy that controls usage of Seccomp profiles
https://kubewarden.io
Apache License 2.0
4 stars 4 forks source link

Fix profile type settings validation. #5

Closed jvanz closed 2 years ago

jvanz commented 2 years ago

The validation logic is not validating the allowed profile types. This commit fixes that inverting the logic of the "if" statement.

Closes #4

jvanz commented 2 years ago

The policy is launching properly.

k8s get clusteradmissionpolicies        
NAME          POLICY SERVER   MUTATING   STATUS
psp-seccomp   default         false      active