SAP-archive / karydia

Kubernetes Security Walnut
Other
77 stars 10 forks source link

Distinguish between mutating and validating service token pod webhook. #84

Closed marcrahnsap closed 5 years ago

marcrahnsap commented 5 years ago

Description

Option karydia.gardener.cloud/automountServiceAccountToken=remove-default is only applicable for the mutating webhook. If the mutating hook is not registered at the api server, but the option remove-default is set, karydia will return a meaningful error message and will deny the deployment.

Checklist

Before submitting this PR, please make sure: