SAP-archive / karydia

Kubernetes Security Walnut
Other
77 stars 10 forks source link

Add "overwrite" Flag to Label Command in Init-Container #247

Closed Neumann-Nils closed 4 years ago

Neumann-Nils commented 4 years ago

Description

When scaling the Karydia deployment (i.e. while hibernating) and re-scaling the deployment, the init container may fail starting. This is due to the following command:

kubectl label namespace kube-system karydia.gardener.cloud/name=kube-system

As the label already exists, the command fails and the pod cannot start. To fix this issue, one needs to add the overwrite flag to the command.

Checklist

Before submitting this PR, please make sure: