Shopify / kubeaudit

kubeaudit helps you audit your Kubernetes clusters against common security controls
MIT License
1.91k stars 184 forks source link

fix unmarshal errors not found for known k8s schema #571

Open fedeztk opened 1 year ago

fedeztk commented 1 year ago
Description

Fixes #523 (known schema not raising errors when incompatible with k8s resource definitions)

Type of change

Tested using the example provided in #523. Prior to this change there was no error; now, known resources (e.g. Deployments) raise an error when the unmarshaling goes wrong (like unquoted labels) and clearly shows that there is a misconfiguration in the manifest.

Checklist: