-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy path_env.yaml
More file actions
102 lines (97 loc) · 3.49 KB
/
Copy path_env.yaml
File metadata and controls
102 lines (97 loc) · 3.49 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
{{- define "argo-gateway.resources.environment-variables.calculated" }}
HTTP_PROXY: {{ .Values.global.httpProxy | squote}}
HTTPS_PROXY: {{ .Values.global.httpsProxy | squote }}
NO_PROXY: {{ .Values.global.noProxy | squote }}
{{- if and (eq (index .Values "global" "integrations" "argo-cd" "server" "auth" "type") "token") }}
{{- if not (index .Values "global" "integrations" "argo-cd" "server" "auth" "token") }}
ARGO_CD_TOKEN_SECRET_NAME: {{ required ".Values.global.integrations.argo-cd.server.auth.type is set to 'token' therefore .Values.global.integrations.argo-cd.server.auth.tokenSecretKeyRef.name is required" (index .Values "global" "integrations" "argo-cd" "server" "auth" "tokenSecretKeyRef" "name") }}
ARGO_CD_TOKEN_SECRET_KEY: {{ required ".Values.global.integrations.argo-cd.server.auth.type is set to 'token' therefore .Values.global.integrations.argo-cd.server.auth.tokenSecretKeyRef.key is required" (index .Values "global" "integrations" "argo-cd" "server" "auth" "tokenSecretKeyRef" "key" ) }}
{{- else }}
ARGO_CD_TOKEN_SECRET_NAME: "gitops-runtime-argo-cd-token"
ARGO_CD_TOKEN_SECRET_KEY: "token"
{{- end }}
{{- end }}
ARGOCD_SERVER_ROOTPATH: {{ dig "server" "rootpath" "/" (index .Values "global" "external-argo-cd") | quote }}
{{- if or .Values.global.codefresh.tls.caCerts.secret.create (and .Values.global.codefresh.tls.caCerts.secretKeyRef.key .Values.global.codefresh.tls.caCerts.secretKeyRef.name) }}
{{- $secretKey := .Values.global.codefresh.tls.caCerts.secret.create | ternary (default "ca-bundle.crt" .Values.global.codefresh.tls.caCerts.secret.key) .Values.global.codefresh.tls.caCerts.secretKeyRef.key }}
CODEFRESH_SSL_CERT_PATH: {{ printf "/app/config/codefresh-tls-certs/%s" $secretKey }}
{{- end }}
{{- end }}
{{- define "argo-gateway.resources.environment-variables.defaults" -}}
ARGOCD_SERVER:
valueFrom:
configMapKeyRef:
name: argo-gateway-cmd-params-cm
key: argocd.server
ARGO_CD_TOKEN_SECRET_NAME: argocd-token
ARGO_CD_TOKEN_SECRET_KEY: token
ARGOCD_SERVER_ROOTPATH:
valueFrom:
configMapKeyRef:
name: argocd-cmd-params-cm
key: server.rootpath
optional: true
BINARY_NAME: argo-gateway
CODEFRESH_SSL_CERT_PATH: ""
CODEFRESH_TLS_INSECURE:
valueFrom:
configMapKeyRef:
name: argocd-cmd-params-cm
key: codefresh.tls.insecure
optional: true
CODEFRESH_TOKEN:
valueFrom:
secretKeyRef:
key: token
name: codefresh-token
CODEFRESH_URL:
valueFrom:
configMapKeyRef:
key: base-url
name: codefresh-cm
LISTEN_ADDRESS:
valueFrom:
configMapKeyRef:
name: argo-gateway-cmd-params-cm
key: server.listen.address
optional: true
REDISDB:
valueFrom:
configMapKeyRef:
name: argo-gateway-cmd-params-cm
key: redis.db
optional: true
REDIS_COMPRESSION:
valueFrom:
configMapKeyRef:
name: argo-gateway-cmd-params-cm
key: redis.compression
optional: true
REDIS_PASSWORD:
valueFrom:
secretKeyRef:
name: gitops-runtime-redis
key: auth
REDIS_SERVER:
valueFrom:
configMapKeyRef:
name: argo-gateway-cmd-params-cm
key: redis.server
REDIS_USERNAME:
valueFrom:
secretKeyRef:
name: argo-gateway-cmd-params-cm
key: redis-username
optional: true
REPO_SERVER:
valueFrom:
configMapKeyRef:
name: argo-gateway-cmd-params-cm
key: repo.server
REPO_SERVER_TIMEOUT_SECONDS:
valueFrom:
configMapKeyRef:
name: argo-gateway-cmd-params-cm
key: repo.server.timeout.seconds
optional: true
{{- end -}}