Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 2 commits into from
Nov 12, 2024

Conversation

juev
Copy link
Contributor

@juev juev commented Nov 12, 2024

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.

Signed-off-by: Evsyukov Denis <denis.evsyukov@flant.com>
@juev juev added this to the 1.0.5 milestone Nov 12, 2024
@juev juev self-assigned this Nov 12, 2024
@juev juev added the release-note/enhancement New feature or request label Nov 12, 2024
Signed-off-by: Evsyukov Denis <denis.evsyukov@flant.com>
@juev juev marked this pull request as ready for review November 12, 2024 09:57
@yalosev yalosev removed this from the 1.0.5 milestone Nov 12, 2024
@yalosev yalosev merged commit 86e6f41 into main Nov 12, 2024
8 checks passed
@yalosev yalosev deleted the feature/fix-ensure-crds branch November 12, 2024 10:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-note/enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants