Shopify / kubeaudit

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

fix unmarshal errors not found for known k8s schema #571

Open fedeztk opened 10 months ago

fedeztk commented 10 months 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: