-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy path_env.yaml
More file actions
33 lines (30 loc) · 1.62 KB
/
_env.yaml
File metadata and controls
33 lines (30 loc) · 1.62 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
{{- define "installer.validate-usage.environment-variables.defaults" -}}
NAMESPACE:
valueFrom:
fieldRef:
fieldPath: metadata.namespace
{{- end -}}
{{- define "installer.validate-usage.environment-variables" -}}
{{- $defaults := (include "installer.validate-usage.environment-variables.defaults" . | fromYaml) }}
{{- $globalProxyEnv := (include "codefresh-gitops-runtime.get-proxy-env-vars" . | fromYaml) }}
{{- $mergedValues := mergeOverwrite $defaults $globalProxyEnv }}
{{- include "codefresh-gitops-runtime.components.common_helpers.container-templates.env-vars" $mergedValues }}
{{- end -}}
{{- define "installer.validate-values.environment-variables.defaults" -}}
ARGOCD_CHECK_VERSION: {{ not (get .Values "argo-cd").enabled | quote }}
ARGOCD_LABELS: "{{ range $k, $v := .Values.installer.argoCdVersionCheck.argoServerLabels }}{{ $k }}={{ $v }},{{ end }}"
ARGOCD_SERVER_ROOTPATH: {{ dig "server" "rootpath" "/" (index .Values "global" "integrations" "argo-cd") | quote }}
ARGOCD_VERSION_PATH: "/api/version"
CHART_VERSION: {{ .Chart.Version }}
NAMESPACE:
valueFrom:
fieldRef:
fieldPath: metadata.namespace
REQUIRED_VERSION_CONSTRAINT: ">=3 <=3.3"
{{- end -}}
{{- define "installer.validate-values.environment-variables" -}}
{{- $defaults := (include "installer.validate-values.environment-variables.defaults" . | fromYaml) }}
{{- $globalProxyEnv := (include "codefresh-gitops-runtime.get-proxy-env-vars" . | fromYaml) }}
{{- $mergedValues := mergeOverwrite $defaults $globalProxyEnv }}
{{- include "codefresh-gitops-runtime.components.common_helpers.container-templates.env-vars" $mergedValues }}
{{- end -}}