Skip to content

Commit a33757a

Browse files
committed
moved "codefresh-gitops-runtime.argocd-token-auth" into "gitops-operator.resources.environment-variables.calculated"
1 parent 7dd5b65 commit a33757a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

charts/gitops-runtime/templates/_components/gitops-operator/_deployment.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,8 @@
33
{{/* Merge environment variables from calculated, defaults and overwrites */}}
44
{{- $defaults := (include "gitops-operator.resources.environment-variables.defaults" . | fromYaml) }}
55
{{- $calculated := (include "gitops-operator.resources.environment-variables.calculated" . | fromYaml) }}
6-
{{- $argoCdAuth := (include "codefresh-gitops-runtime.argocd-token-auth" . | fromYaml) }}
76
{{- $overrides := .Values.env }}
8-
{{- $mergedValues := mergeOverwrite $defaults $calculated $argoCdAuth $overrides }}
7+
{{- $mergedValues := mergeOverwrite $defaults $calculated $overrides }}
98
apiVersion: apps/v1
109
kind: Deployment
1110
metadata:

charts/gitops-runtime/templates/_components/gitops-operator/_env.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ Some environment variables are determined by values provided in other components
33
to keep the separation of components as pseudo library charts, they are defined here to be merged when components are generated.
44
*/}}
55
{{- define "gitops-operator.resources.environment-variables.calculated" }}
6+
{{- include "codefresh-gitops-runtime.argocd-token-auth" . }}
67
{{/* if custom certificates are provided */}}
78
{{- if .Values.global.codefresh.tls.caCerts.secretKeyRef }}
89
CF_CA_CERT: {{ printf "/app/config/codefresh-tls/%s" .Values.global.codefresh.tls.caCerts.secretKeyRef.key }}

0 commit comments

Comments
 (0)