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

[grafana] allow sc-alerts as init container #2761

Closed
wants to merge 7 commits into from
Closed

[grafana] allow sc-alerts as init container #2761

wants to merge 7 commits into from

Conversation

bt909
Copy link
Contributor

@bt909 bt909 commented Nov 2, 2023

Sidecar for datasources and notifiers are available, but not for alerts. As values.yaml in line 873 suggested, the idea is to have it as init container as well.

This PR enables the possibility to use sidecar-alerts as init-container too.

Why do we want this as init-container? To get alerts loaded, when using Grafana in anonymous mode. For datasources we have a solution, but not for alerts.

Some kind of related (but this PR don't fix it): #981

Signed-off-by: Thomas Belian <[email protected]>
@bt909
Copy link
Contributor Author

bt909 commented Nov 3, 2023

I have implemented as init-container OR container. If you like to have the init-container additional to the container, I can adjust that. In my usecase, I use Grafana w/ anonymous login and the container additional to init-container makes no sense in my usecase, but maybe to have both is the more generic way.

Copy link
Collaborator

@zanhsieh zanhsieh left a comment

Choose a reason for hiding this comment

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

@bt909
Can you also fix the test error?

https://github.com/grafana/helm-charts/actions/runs/6749078165/job/18348724266?pr=2761

------------------------------------------------------------------------------------------------------------------------
==> Logs of container grafana-93xwb4fza5-test
------------------------------------------------------------------------------------------------------------------------
1..1
not ok 1 Test Health
# (in test file /tests/run.sh, line 5)
#   `[ "$code" == "200" ]' failed
------------------------------------------------------------------------------------------------------------------------
<== Logs of container grafana-93xwb4fza5-test
------------------------------------------------------------------------------------------------------------------------
========================================================================================================================

charts/grafana/README.md Outdated Show resolved Hide resolved
@bt909
Copy link
Contributor Author

bt909 commented Nov 7, 2023

Hm, I would like to fix the test, but I am a bit confused. The test failed since I merged main....

bt909 and others added 5 commits November 7, 2023 15:12
Signed-off-by: Thomas Belian <[email protected]>
Signed-off-by: zanac1986 <[email protected]>
Signed-off-by: Thomas Belian <[email protected]>
Signed-off-by: Nick Pillitteri <[email protected]>
Signed-off-by: Thomas Belian <[email protected]>
Signed-off-by: Nick Pillitteri <[email protected]>
Signed-off-by: Thomas Belian <[email protected]>
Co-authored-by: MH <[email protected]>
Signed-off-by: Thomas Belian <[email protected]>
@bt909 bt909 requested a review from a team as a code owner November 7, 2023 14:13
@bt909
Copy link
Contributor Author

bt909 commented Nov 7, 2023

Oh, I am stuck in rebase hell, because of DCO. I will make an new clean PR.

@bt909
Copy link
Contributor Author

bt909 commented Nov 7, 2023

I will close this PR in favor of: #2771
Sorry for that.

@bt909 bt909 closed this Nov 7, 2023
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.

4 participants