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

Improvements to 3 0 2 #140

Merged
merged 2 commits into from
Mar 2, 2020
Merged

Improvements to 3 0 2 #140

merged 2 commits into from
Mar 2, 2020

Conversation

pb82
Copy link
Collaborator

@pb82 pb82 commented Mar 2, 2020

fix for #136 and #137

fixes a case where one dashboard could overwrite another if Grafana was restarted (due to plugins) and upon reimport old dashboard IDs (from the status block) were reused.

pb82 added 2 commits March 2, 2020 09:27
When sending the dashboard id stored in the CR status block it can happen that a dashboard overwrites another:
1) dashboard is imported, id is written back
2) another dashboard with plugins is imported, Grafana is restarted
3) all dashboards are reimported but not the order becomes important: a dashboard with previously no ID in the status block (the one
with the plugins) gets imported first and gets the id of the other dashboard with already an id in the status block.
4) afterwards the already imported dashboard is imported again and overwrites the new one.
The strategy for creating URLs based on ingresses should prever the user provided hostname instead of
trying to get some auto generated hostname or falling back on the IP.
@pb82 pb82 requested a review from davidkirwan March 2, 2020 08:35
@pb82 pb82 merged commit 6c18142 into grafana:master Mar 2, 2020
@pb82 pb82 deleted the improvements_to_3_0_2 branch March 2, 2020 08:41
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.

1 participant