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

[Backport release-1.26] bug: retry saving helm chart object status #4133

Closed
wants to merge 1 commit into from

Conversation

k0s-bot
Copy link

@k0s-bot k0s-bot commented Mar 4, 2024

Automated backport to release-1.26, triggered by a label in #4064.
See #4047.

if we fail to save the status, specially after installing the chart, we
will try to install the chart again during the next reconcile (its
Status.Status.ReleaseName will be empty). this pr attempts to mitigate
this in two ways:

- before updating fetch the newest version of the chart.
- retry if it is still on conflict.

this may be overkill as it most likely won't fail after we fetch an
updated version of the chart but given the importance of this operation
we better be safe than sorry.

when this bug this solves happens this is what is reported in the chart
status:

```
can't install loadedChart ```chart-name```: cannot re-use a name that is
still in use
```

Signed-off-by: Ricardo Maraschini <ricardo.maraschini@gmail.com>
(cherry picked from commit 5333b91)
@k0s-bot k0s-bot requested a review from a team as a code owner March 4, 2024 12:17
@k0s-bot k0s-bot requested review from kke and jnummelin March 4, 2024 12:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants