Skip to content

fix: prevent grafana operator reconciliation issue due to missing creds#657

Merged
gmlexx merged 1 commit into
mainfrom
fix-grafana-cr-deletion-2
Dec 4, 2025
Merged

fix: prevent grafana operator reconciliation issue due to missing creds#657
gmlexx merged 1 commit into
mainfrom
fix-grafana-cr-deletion-2

Conversation

@gmlexx
Copy link
Copy Markdown
Collaborator

@gmlexx gmlexx commented Dec 4, 2025

Uninstallation via helm uninstall --wait --cascade foreground -n kof kof-mothership takes too much time due to grafana-operator reconciliation issue where despite the deletion of grafana CR the operator is still trying to create it but failed as the credentials secret already deleted.

@gmlexx gmlexx requested a review from denis-ryzhkov as a code owner December 4, 2025 15:32
Copilot AI review requested due to automatic review settings December 4, 2025 15:32
@gmlexx gmlexx requested a review from AndrejsPon00 as a code owner December 4, 2025 15:32
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR addresses a Grafana operator reconciliation issue during helm uninstall by preventing premature deletion of the credentials secret. The operator was attempting to reconcile the Grafana CR even after deletion started, causing failures when the credentials secret was already removed.

Key Changes:

  • Added helm.sh/resource-policy: keep annotation to the Grafana credentials secret to prevent its deletion during helm uninstall, avoiding reconciliation conflicts.

Comment thread charts/kof-mothership/templates/grafana/secret.yaml
@gmlexx gmlexx force-pushed the fix-grafana-cr-deletion-2 branch from cff9913 to 753d12b Compare December 4, 2025 15:44
@gmlexx gmlexx merged commit 22992c5 into main Dec 4, 2025
9 of 13 checks passed
@github-project-automation github-project-automation Bot moved this to Done in k0rdent Dec 4, 2025
@gmlexx gmlexx deleted the fix-grafana-cr-deletion-2 branch December 4, 2025 20:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

3 participants