UNCLASSIFIED - NO CUI

Skip to content
Snippets Groups Projects
Commit 5d8f4e3a authored by Ryan Garcia's avatar Ryan Garcia :dizzy:
Browse files

Merge branch '1712-fix-git-credential-scoping' into 'master'

fix: git credential scoping issue for `packages`

Closes #1712

See merge request !3149
parents 3d2d9143 2985e448
No related branches found
No related tags found
1 merge request!3149fix: git credential scoping issue for `packages`
Pipeline #2240514 passed with warnings
{{- /* Used for GitOps on Helm charts. One per namespace */ -}}
{{- if not (dig "existingSecret" nil .Values.git) -}}
{{- with (dig "credentials" dict .Values.git) -}}
{{- if or .username .password .caFile .privateKey .publicKey .knownHosts -}}
{{- range $ns := compact (splitList " " (include "uniqueNamespaces" (merge (dict "default" true) $))) -}}
{{- with (dig "credentials" dict $.Values.git) -}}
{{- if or .username .password .caFile .privateKey .publicKey .knownHosts -}}
apiVersion: v1
kind: Secret
metadata:
name: git-credentials
name: {{ $.Release.Name }}-git-credentials
namespace: {{ $ns }}
labels:
app.kubernetes.io/name: git-credentials
{{- include "commonLabels" . | nindent 4 }}
app.kubernetes.io/name: {{ $.Release.Name }}-git-credentials
{{- include "commonLabels" $ | nindent 4 }}
type: Opaque
data:
{{- if .caFile }}
......
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