X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=blobdiff_plain;f=deploy%2Fcluster%2Ftemplates%2Fflux-addon.yaml;h=870292063a4587bd9b68db6beea28bb40e7a00a3;hb=41cb4be441a1e391a6547becbdcc1141b912a236;hp=81322e228e11ca28f23890a49c9f76ef2bbdff6c;hpb=7f5b95aaf15bca22ac6506ac5e1b5db0d0437222;p=icn.git diff --git a/deploy/cluster/templates/flux-addon.yaml b/deploy/cluster/templates/flux-addon.yaml index 81322e2..8702920 100644 --- a/deploy/cluster/templates/flux-addon.yaml +++ b/deploy/cluster/templates/flux-addon.yaml @@ -4117,6 +4117,17 @@ data: - Ingress --- sync.yaml: | + {{- if .Values.flux.decryptionSecret }} + --- + apiVersion: v1 + type: Opaque + kind: Secret + metadata: + name: {{ .Values.flux.repositoryName }}-{{ .Values.flux.branch }}-sops-gpg + namespace: flux-system + data: + sops.asc: {{ .Values.flux.decryptionSecret | b64enc }} + {{- end }} --- apiVersion: source.toolkit.fluxcd.io/v1beta1 kind: GitRepository @@ -4143,6 +4154,12 @@ data: sourceRef: kind: GitRepository name: {{ .Values.flux.repositoryName }} + {{- if .Values.flux.decryptionSecret }} + decryption: + provider: sops + secretRef: + name: {{ .Values.flux.repositoryName }}-{{ .Values.flux.branch }}-sops-gpg + {{- end }} kind: ConfigMap metadata: creationTimestamp: null