-
Notifications
You must be signed in to change notification settings - Fork 550
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Helm: add ruler specific service account (#7132)
* Helm: add ruler specific service account Signed-off-by: QuantumEnigmaa <[email protected]> * add suggestions from review Signed-off-by: QuantumEnigmaa <[email protected]> * disable ruler sa by default * add rolebinding to ruler sa Signed-off-by: QuantumEnigmaa <[email protected]> * remove trailing space Signed-off-by: QuantumEnigmaa <[email protected]> * update handling of ruler sa name Signed-off-by: QuantumEnigmaa <[email protected]> * add doc comment for ruler sa name Signed-off-by: QuantumEnigmaa <[email protected]> --------- Signed-off-by: QuantumEnigmaa <[email protected]>
- Loading branch information
1 parent
6ca9b40
commit acc6e7e
Showing
6 changed files
with
46 additions
and
2 deletions.
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
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
14 changes: 14 additions & 0 deletions
14
operations/helm/charts/mimir-distributed/templates/ruler/ruler-sa.yaml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{{- if .Values.ruler.serviceAccount.create }} | ||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
name: {{ template "mimir.ruler.serviceAccountName" . }} | ||
labels: | ||
{{- include "mimir.labels" (dict "ctx" .) | nindent 4 }} | ||
{{- with .Values.ruler.serviceAccount.labels }} | ||
{{- toYaml . | nindent 4 }} | ||
{{- end }} | ||
annotations: | ||
{{- toYaml .Values.ruler.serviceAccount.annotations | nindent 4 }} | ||
namespace: {{ .Release.Namespace | quote }} | ||
{{- end }} |
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