generated from cloudoperators/repository-template
-
Notifications
You must be signed in to change notification settings - Fork 7
feat(thanos) ruler component #534
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
Merged
Merged
Changes from 1 commit
Commits
Show all changes
34 commits
Select commit
Hold shift + click to select a range
46903d6
add ruler + ruler-svc templates
trouaux 654183c
remove label helm.sh
trouaux 2525a23
lint clean up
trouaux 7b0adb2
ruler bats testing + extra labels
trouaux 82884d6
Merge branch 'main' into thanos-ruler-component
trouaux 68c91dc
re-org values + clean-up ruler template
trouaux a047918
values naming fix
trouaux 5e2d852
update container args + volume mounts
trouaux eda4ccb
clean up
trouaux 8c674b6
remove comment conflict
trouaux 178b31b
thanos ruler with k8s operator
trouaux 350cfd1
CI test with prometheus operator
trouaux 0f6c944
lint fix + chart lock
trouaux 94c51d7
template objectstore volume for store and compactor
trouaux 12e25c7
relocate CI folder
trouaux f83bed9
lint
trouaux 5414f41
values indent
trouaux 28dff8a
split ci test ressources
trouaux 4faa807
clean up
trouaux 058d29b
fix bats test + new specs to ruler
trouaux cbfff2d
test clean up
trouaux 0832396
ruler enabled conditions
trouaux ad72e24
test typo
trouaux 76240be
update thanos ruler tests
trouaux c219a5f
CI bug
trouaux 54b4e52
common matching labels for CI
trouaux 5592cb9
yaml typo
trouaux a33baea
clean up ci yaml values
trouaux f41ce74
fix suggestions
trouaux 82c5944
alertmanager ressources for ruler config
trouaux f74464c
feat alertmanager config templates
trouaux acf165e
fix configmap name
trouaux 1426ac8
rework ruler labels
trouaux 4c832c4
feat: routePrefix
trouaux 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 hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -14,3 +14,9 @@ ci: | |
| thanos: | ||
| ruler: | ||
| matchLabel: thanos | ||
| alertmanagers: | ||
| authentication: | ||
| enabled: true | ||
| ssoCert: | ||
| ssoKey: | ||
| hosts: | ||
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| {{- define "alertmanagers.config" }} | ||
| alertmanagers: | ||
| - scheme: https | ||
| timeout: 10s | ||
| api_version: v2 | ||
| {{- if .Values.thanos.ruler.alertmanagers.authentication.enabled }} | ||
| http_config: | ||
| tls_config: | ||
| cert_file: /etc/thanos/secrets/thanos-ruler-{{ include "release.name" . }}-alertmanager-sso-cert/sso.crt | ||
| key_file: /etc/thanos/secrets/thanos-ruler-{{ include "release.name" . }}-alertmanager-sso-cert/sso.key | ||
| {{- end }} | ||
| static_configs: | ||
| {{ toYaml .Values.thanos.ruler.alertmanagers.hosts | indent 8 }} | ||
| {{- end }} |
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| {{ if .Values.thanos.ruler.enabled }} | ||
| apiVersion: v1 | ||
| kind: Secret | ||
| metadata: | ||
| name: {{ include "release.name" . }}-alertmanager-config | ||
| labels: | ||
| thanos: {{ include "release.name" . }} | ||
| data: | ||
| alertManagerConfig.yaml: | | ||
| {{ template "alertmanagers.config" . }} | ||
| {{ end }} | ||
10 changes: 10 additions & 0 deletions
10
thanos/charts/templates/ruler/alertmanager-sso-secret.yaml
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| {{ if .Values.thanos.ruler.alertmanagers.authentication.enabled }} | ||
| apiVersion: v1 | ||
| kind: Secret | ||
| type: Opaque | ||
| metadata: | ||
| name: thanos-ruler-{{ include "release.name" . }}-alertmanager-sso-cert | ||
| data: | ||
| sso.crt: {{ required ".Values.thanos.ruler.alertmanagers.authentication.ssoCert missing" .Values.thanos.ruler.alertmanagers.authentication.ssoCert }} | ||
| sso.key: {{ required ".Values.thanos.ruler.alertmanagers.authentication.ssoKey missing" .Values.thanos.ruler.alertmanagers.authentication.ssoKey }} | ||
| {{ end }} |
This file contains hidden or 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 hidden or 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 hidden or 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.
Uh oh!
There was an error while loading. Please reload this page.