flant / addon-operator

A system to manage additional components for Kubernetes cluster in a simple, consistent and automated way.
https://flant.github.io/addon-operator/
Apache License 2.0
487 stars 27 forks source link

fix: compare crd spec, labels and annotations before update #527

Closed juev closed 2 days ago

juev commented 2 days ago

Overview

Before installing crd into a cluster, we need to compare it with the existing one. Previously, we only compared spec and one of the labels. Now we will compare spec, the full set of labels and annotations.

What this PR does / why we need it

In order to backup the CRD cluster, we will install certain labels on the necessary resources. To be able to install labels, we need to check their presence in the cluster. So as not to delete them during the next update.