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 chart upgrades #94

Merged
merged 1 commit into from
Feb 7, 2024
Merged

Conversation

timebertt
Copy link
Member

What this PR does / why we need it:

This PR fixes chart upgrades by removing the version-specific label from the deployment's selector.

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

Special notes for your reviewer:

Upgrading to a new version including this PR will require operators to delete the Deployment first, so that helm allows the upgrade.

Release note:

Helm chart upgrades no longer fail due to the immutable `Deployment.spec.selector` field. In order to upgrade to this version, the `gardener-metrics-exporter` Deployment needs to be deleted first.

@timebertt timebertt requested a review from a team as a code owner December 18, 2023 09:39
@gardener-robot gardener-robot added the needs/review Needs review label Dec 18, 2023
@gardener-robot
Copy link

@timebertt Thank you for your contribution.

@gardener-robot gardener-robot added the size/xs Size of pull request is tiny (see gardener-robot robot/bots/size.py) label Dec 18, 2023
@gardener-robot-ci-1
Copy link
Contributor

Thank you @timebertt for your contribution. Before I can start building your PR, a member of the organization must set the required label(s) {'reviewed/ok-to-test'}. Once started, you can check the build status in the PR checks section below.

Copy link
Contributor

@rickardsjp rickardsjp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your contribution, @timebertt
/lgtm

Side note for posterity: This is required for stakeholders who deploy their monitoring stack using helm charts. As of Gardener v1.80.0, the gardener-operator deploys gardener-metrics-exporter as a go component.

@gardener-robot gardener-robot added reviewed/lgtm Has approval for merging and removed needs/review Needs review labels Feb 6, 2024
@gardener-robot-ci-1 gardener-robot-ci-1 added reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) needs/ok-to-test Needs approval for testing (check PR in detail before setting this label because PR is run on CI/CD) and removed reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) labels Feb 6, 2024
@rickardsjp rickardsjp merged commit 39d1f48 into gardener:master Feb 7, 2024
5 checks passed
@gardener-robot gardener-robot added the status/closed Issue is closed (either delivered or triaged) label Feb 7, 2024
@timebertt timebertt deleted the fix-chart-upgrade branch February 7, 2024 08:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs/ok-to-test Needs approval for testing (check PR in detail before setting this label because PR is run on CI/CD) reviewed/lgtm Has approval for merging size/xs Size of pull request is tiny (see gardener-robot robot/bots/size.py) status/closed Issue is closed (either delivered or triaged)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Chart cannot be upgraded
4 participants