kubewarden / safe-labels-policy

Kubewarden policy that validates Kubernetes' resource labels
https://kubewarden.io
Apache License 2.0
5 stars 2 forks source link

remove: remove unneeded unmarshalling code #39

Closed fabriziosestito closed 1 year ago

fabriziosestito commented 1 year ago

Description

While refactoring the docs examples and other policies, I realized that some unmarshalling-related code could be removed. This PR addresses this.

It also adds a comment on the rationale of having a custom UnmarshalJSON for the Settings type.

Test

Existing tests should pass.