SAP-archive / karydia

Kubernetes Security Walnut
Other
77 stars 10 forks source link

Separate logic of pod mutation and validation web-hook #100

Closed dacappo closed 5 years ago

dacappo commented 5 years ago

Description

Validation and mutation logic of pod web-hooks is separated. Previously, validation and mutating logic were combined within a single function that was called twice. Now, only the required part is called and the results are passed to the API server. Tests were extended to follow the k8s behavior of applying mutations before running the actual validation of resources.

Checklist

Before submitting this PR, please make sure: