UNCLASSIFIED - NO CUI

Skip to content
Snippets Groups Projects
Commit 2ba6901f authored by Andrew Shoell's avatar Andrew Shoell Committed by Ryan Garcia
Browse files

Updating thanos to package specific git creds

parent fc44c1a7
No related branches found
No related tags found
1 merge request!3445Updating thanos to package specific git creds
{{- $gitCredsSecretDict := dict
"name" "tempo"
"targetScope" .Values.addons.thanos
"releaseName" .Release.Name
"releaseNamespace" .Release.Namespace
}}
{{- include "gitCredsSecret" $gitCredsSecretDict | nindent 0 -}}
{{- $pkg := "thanos" }}
{{- if and (eq (get .Values.addons $pkg).sourceType "git") (not .Values.offline) (get .Values.addons $pkg).enabled }}
{{- $gitCredsDict := dict
"name" "thanos"
"packageGitScope" .Values.addons.thanos.git
"rootScope" .
"releaseName" .Release.Name
}}
apiVersion: source.toolkit.fluxcd.io/v1
kind: GitRepository
metadata:
......@@ -11,5 +17,5 @@ spec:
ref:
{{- include "validRef" (get .Values.addons $pkg).git | nindent 4 }}
{{ include "gitIgnore" . }}
{{- include "gitCreds" . | nindent 2 }}
{{- include "gitCredsExtended" $gitCredsDict | nindent 2 }}
{{- end }}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment