gardener / diki

Diki is a compliance checker that aims to enhance the security posture of your Kubernetes clusters.
Apache License 2.0
7 stars 8 forks source link

Refactor label matching for ETCD pods #338

Closed georgibaltiev closed 2 weeks ago

georgibaltiev commented 3 weeks ago

What this PR does / why we need it: This PR adds a second for-loop check to find ETCD pods by matching them with their new labels, amended by the ETCD druid operator's version 0.23.0 (reference). The second loop is done only if no ETCD pods were found with the old labels. The errored check results can still display the old labels if old ETCD pods are found only partially, but if no ETCD pods are found the default behavior will be for the errored checkResults to specify the new labels.

Which issue(s) this PR fixes: Fixes #337

Special notes for your reviewer:

Release note:

AleksandarSavchev commented 2 weeks ago

/cc @dimityrmirchev