-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
[grafana] Improve dashboards download script #3350
Open
xinity
wants to merge
17
commits into
grafana:main
Choose a base branch
from
xinity:feature/improve-grafana-download-dashboards
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+15
−3
Open
Changes from 2 commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
b18764b
Improve download script and remove -x parameter
xinity c30fe28
Chart version bump
xinity 050e5c2
Update _config.tpl
xinity 1e21e06
tentative moving $value.url to helper
xinity d5043b0
Improve helper function
xinity a9ce21e
fix Chart versionning
xinity 116bfab
Update Grafana to version 11.2.2
terop 169ca4e
Bump actions/checkout
charleskorn 6a03b1b
Bump actions/setup-python
charleskorn 97da95f
Bump azure/setup-helm
charleskorn ad0fad1
Remove use of deprecated `::set-output`
charleskorn 1dbea94
Bump Python version to one available in Ubuntu 24.04 runners
charleskorn 419c997
fix _config.tpl
xinity 850d017
fix typo in _config.tpl
xinity fcd1043
Merge branch 'main' into feature/improve-grafana-download-dashboards
xinity 68fafde
Update charts/grafana/templates/_helpers.tpl
xinity 20e2bb5
Merge branch 'main' into feature/improve-grafana-download-dashboards
xinity File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess, if someone changes the URL logic below, this may get forgotten. Not sure, if it make sense to move the Source URL logic to a dedicated template helper.
WDYT?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jkroepke i assume that if the logic is changed then lines 120 and below will also be changed right ? :
helm-charts/charts/grafana/templates/_config.tpl
Line 120 in c30fe28
not sure for now it worth it to move it into a helper template even though it would better in the future :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe @zanhsieh has an opinion here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@xinity @jkroepke
I would prefer
revision
as 1 as well set default source url.echo "downloading: {{ $key }} dashboard"
out ofif
since both conditions output that string.