This repository has been archived by the owner on Oct 8, 2024. It is now read-only.
generated from giantswarm/template-app
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add grafana-agent-logging-secret in the chart to store logging write …
…credentials (#21) * Add grafana-agent-logging-secret in the chart to store logging write credentials * EOF * Fix tpl * Fix values to handle loggingSecret * Fix secret * Rename default secret name * Update schema
- Loading branch information
1 parent
7fc92a7
commit 56e8cf0
Showing
5 changed files
with
88 additions
and
4 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
14 changes: 14 additions & 0 deletions
14
helm/grafana-agent/templates/logging-credentials-secret.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.loggingSecret.enabled }} | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: {{ .Values.loggingSecret.secretName | default "grafana-agent-secret" }} | ||
namespace: {{ .Release.Namespace }} | ||
labels: | ||
{{- include "grafana-agent.labels" . | nindent 4 }} | ||
stringData: | ||
logging-url: {{ .Values.loggingSecret.url }} | ||
logging-tenant-id: {{ .Values.loggingSecret.tenantId }} | ||
logging-username: {{ .Values.loggingSecret.username }} | ||
logging-password: {{ .Values.loggingSecret.password }} | ||
{{- 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
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