kubewarden / trusted-repos-policy

A Kubewarden policy that restricts what registries, tags and images can pods on your cluster refer to
https://kubewarden.io
Apache License 2.0
5 stars 3 forks source link

Implement settings validation #4

Closed flavio closed 3 years ago

flavio commented 3 years ago

The policy-server is going to require this callback to be implemented. I know this policy can't accept any kind of input from the user, hence we shouldn't just implement a validate_settings callback that always return true, but rather we should implement a proper validation function.