-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy path_env.yaml
More file actions
46 lines (45 loc) · 1.74 KB
/
_env.yaml
File metadata and controls
46 lines (45 loc) · 1.74 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
{{/*
Some environment variables are determined by values provided in other components,
to keep the separation of components as pseudo library charts, they are defined here to be merged when components are generated.
*/}}
{{- define "gitops-operator.resources.environment-variables.calculated" }}
{{/* if custom certificates are provided */}}
{{- if .Values.global.codefresh.tls.caCerts.secretKeyRef }}
CF_CA_CERT: {{ printf "/app/config/codefresh-tls/%s" .Values.global.codefresh.tls.caCerts.secretKeyRef.key }}
{{- end }}
CF_URL: {{ .Values.global.codefresh.url }}
GITOPS_OPERATOR_VERSION: {{ .Values.image.tag }}
RUNTIME: {{ .Values.global.runtime.name }}
TASK_POLLING_INTERVAL: {{ .Values.config.taskPollingInterval }}
COMMIT_STATUS_POLLING_INTERVAL: {{ .Values.config.commitStatusPollingInterval }}
WORKFLOW_MONITOR_POLLING_INTERVAL: {{ .Values.config.workflowMonitorPollingInterval }}
MAX_CONCURRENT_RELEASES: {{ .Values.config.maxConcurrentReleases }}
PROMOTION_WRAPPER_TEMPLATE: {{ .Values.config.promotionWrapperTemplate | quote }}
IS_NAMESPACED_RUNTIME: {{ .Values.global.runtime.singleNamespace }}
{{- end }}
{{- define "gitops-operator.resources.environment-variables.defaults" -}}
AP_URL: http://cap-app-proxy:3017
ARGO_CD_URL: argo-cd-server:80
ARGO_CD_TOKEN_SECRET_NAME: argocd-token
ARGO_CD_TOKEN_SECRET_KEY: token
ARGO_WF_URL: http://argo-server:2746
CF_TOKEN:
valueFrom:
secretKeyRef:
name: codefresh-token
key: token
HEALTH_PROBE_BIND_ADDRESS: :8081
LEADER_ELECT: true
METRICS_BIND_ADDRESS: :8080
METRICS_SECURE: false
NAMESPACE:
valueFrom:
fieldRef:
fieldPath: metadata.namespace
RUNTIME_VERSION:
valueFrom:
configMapKeyRef:
name: codefresh-cm
key: version
SOURCES_SERVER_URL: http://sources-server
{{- end -}}