2023-11-27 17:44:58 +00:00
|
|
|
{{- if .Values.controller.configMap.create }}
|
2021-05-21 12:19:05 +00:00
|
|
|
apiVersion: v1
|
|
|
|
kind: ConfigMap
|
|
|
|
metadata:
|
2023-11-27 17:44:58 +00:00
|
|
|
name: {{ template "argo-workflows.controller.config-map.name" . }}
|
2023-04-13 09:25:06 +00:00
|
|
|
namespace: {{ .Release.Namespace | quote }}
|
2021-05-21 12:19:05 +00:00
|
|
|
labels:
|
|
|
|
{{- include "argo-workflows.labels" (dict "context" . "component" .Values.controller.name "name" "cm") | nindent 4 }}
|
|
|
|
data:
|
|
|
|
config: |
|
|
|
|
{{- if .Values.controller.instanceID.enabled }}
|
2021-07-20 18:10:29 +00:00
|
|
|
{{- if .Values.controller.instanceID.useReleaseName }}
|
2021-05-21 12:19:05 +00:00
|
|
|
instanceID: {{ .Release.Name }}
|
2021-07-20 18:10:29 +00:00
|
|
|
{{- else }}
|
2021-05-21 12:19:05 +00:00
|
|
|
instanceID: {{ .Values.controller.instanceID.explicitID }}
|
2021-07-20 18:10:29 +00:00
|
|
|
{{- end }}
|
2021-05-21 12:19:05 +00:00
|
|
|
{{- end }}
|
|
|
|
{{- if .Values.controller.parallelism }}
|
|
|
|
parallelism: {{ .Values.controller.parallelism }}
|
|
|
|
{{- end }}
|
2021-11-22 09:32:27 +00:00
|
|
|
{{- if .Values.controller.resourceRateLimit }}
|
|
|
|
resourceRateLimit: {{ toYaml .Values.controller.resourceRateLimit | nindent 6 }}
|
|
|
|
{{- end }}
|
2021-08-27 12:59:29 +00:00
|
|
|
{{- with .Values.controller.namespaceParallelism }}
|
|
|
|
namespaceParallelism: {{ . }}
|
|
|
|
{{- end }}
|
2021-09-15 22:27:03 +00:00
|
|
|
{{- with .Values.controller.initialDelay }}
|
|
|
|
initialDelay: {{ . }}
|
|
|
|
{{- end }}
|
2022-12-30 05:20:47 +00:00
|
|
|
{{- if or .Values.mainContainer.resources .Values.mainContainer.env .Values.mainContainer.envFrom .Values.mainContainer.securityContext}}
|
2022-06-10 16:50:01 +00:00
|
|
|
mainContainer:
|
2022-10-25 06:18:59 +00:00
|
|
|
imagePullPolicy: {{ default (.Values.images.pullPolicy) .Values.mainContainer.imagePullPolicy }}
|
2022-06-10 16:50:01 +00:00
|
|
|
{{- with .Values.mainContainer.resources }}
|
|
|
|
resources: {{- toYaml . | nindent 8 }}
|
|
|
|
{{- end }}
|
|
|
|
{{- with .Values.mainContainer.env }}
|
|
|
|
env: {{- toYaml . | nindent 8 }}
|
|
|
|
{{- end }}
|
2022-12-30 05:20:47 +00:00
|
|
|
{{- with .Values.mainContainer.envFrom }}
|
|
|
|
envFrom: {{- toYaml . | nindent 8 }}
|
|
|
|
{{- end }}
|
2022-06-10 16:50:01 +00:00
|
|
|
{{- with .Values.mainContainer.securityContext }}
|
|
|
|
securityContext: {{- toYaml . | nindent 8 }}
|
|
|
|
{{- end }}
|
|
|
|
{{- end }}
|
2023-07-27 13:57:46 +00:00
|
|
|
{{- if or .Values.executor.resources .Values.executor.env .Values.executor.args .Values.executor.securityContext}}
|
2021-05-21 12:19:05 +00:00
|
|
|
executor:
|
2022-10-25 06:18:59 +00:00
|
|
|
imagePullPolicy: {{ default (.Values.images.pullPolicy) .Values.executor.image.pullPolicy }}
|
2021-05-21 12:19:05 +00:00
|
|
|
{{- with .Values.executor.resources }}
|
|
|
|
resources: {{- toYaml . | nindent 8 }}
|
|
|
|
{{- end }}
|
2023-07-27 13:57:46 +00:00
|
|
|
{{- with .Values.executor.args }}
|
|
|
|
args: {{- toYaml . | nindent 8 }}
|
|
|
|
{{- end }}
|
2021-05-21 12:19:05 +00:00
|
|
|
{{- with .Values.executor.env }}
|
|
|
|
env: {{- toYaml . | nindent 8 }}
|
|
|
|
{{- end }}
|
|
|
|
{{- with .Values.executor.securityContext }}
|
|
|
|
securityContext: {{- toYaml . | nindent 8 }}
|
|
|
|
{{- end }}
|
|
|
|
{{- end }}
|
2023-06-24 22:28:46 +00:00
|
|
|
{{- if or .Values.artifactRepository.s3 .Values.artifactRepository.gcs .Values.artifactRepository.azure .Values.customArtifactRepository }}
|
2021-05-21 12:19:05 +00:00
|
|
|
artifactRepository:
|
|
|
|
{{- if .Values.artifactRepository.archiveLogs }}
|
|
|
|
archiveLogs: {{ .Values.artifactRepository.archiveLogs }}
|
|
|
|
{{- end }}
|
2022-09-26 04:11:00 +00:00
|
|
|
{{- with .Values.artifactRepository.gcs }}
|
2023-05-11 00:09:33 +00:00
|
|
|
gcs: {{- tpl (toYaml .) $ | nindent 8 }}
|
2022-09-26 04:11:00 +00:00
|
|
|
{{- end }}
|
|
|
|
{{- with .Values.artifactRepository.azure }}
|
2023-05-11 00:09:33 +00:00
|
|
|
azure: {{- tpl (toYaml .) $ | nindent 8 }}
|
2022-09-26 04:11:00 +00:00
|
|
|
{{- end }}
|
2023-06-24 22:28:46 +00:00
|
|
|
{{- if .Values.artifactRepository.s3 }}
|
2021-05-21 12:19:05 +00:00
|
|
|
s3:
|
|
|
|
{{- if .Values.useStaticCredentials }}
|
|
|
|
accessKeySecret:
|
2023-05-11 00:09:33 +00:00
|
|
|
key: {{ tpl .Values.artifactRepository.s3.accessKeySecret.key . }}
|
|
|
|
name: {{ tpl .Values.artifactRepository.s3.accessKeySecret.name . }}
|
2021-05-21 12:19:05 +00:00
|
|
|
secretKeySecret:
|
2023-05-11 00:09:33 +00:00
|
|
|
key: {{ tpl .Values.artifactRepository.s3.secretKeySecret.key . }}
|
|
|
|
name: {{ tpl .Values.artifactRepository.s3.secretKeySecret.name . }}
|
2021-05-21 12:19:05 +00:00
|
|
|
{{- end }}
|
2023-05-11 00:09:33 +00:00
|
|
|
bucket: {{ tpl (.Values.artifactRepository.s3.bucket | default "") . }}
|
|
|
|
endpoint: {{ tpl (.Values.artifactRepository.s3.endpoint | default "") . }}
|
2021-05-21 12:19:05 +00:00
|
|
|
insecure: {{ .Values.artifactRepository.s3.insecure }}
|
|
|
|
{{- if .Values.artifactRepository.s3.keyFormat }}
|
|
|
|
keyFormat: {{ .Values.artifactRepository.s3.keyFormat | quote }}
|
|
|
|
{{- end }}
|
|
|
|
{{- if .Values.artifactRepository.s3.region }}
|
2023-05-11 00:09:33 +00:00
|
|
|
region: {{ tpl .Values.artifactRepository.s3.region $ }}
|
2021-05-21 12:19:05 +00:00
|
|
|
{{- end }}
|
|
|
|
{{- if .Values.artifactRepository.s3.roleARN }}
|
|
|
|
roleARN: {{ .Values.artifactRepository.s3.roleARN }}
|
|
|
|
{{- end }}
|
|
|
|
{{- if .Values.artifactRepository.s3.useSDKCreds }}
|
|
|
|
useSDKCreds: {{ .Values.artifactRepository.s3.useSDKCreds }}
|
|
|
|
{{- end }}
|
2022-03-12 17:55:33 +00:00
|
|
|
{{- with .Values.artifactRepository.s3.encryptionOptions }}
|
|
|
|
encryptionOptions:
|
|
|
|
{{- toYaml . | nindent 10 }}
|
|
|
|
{{- end }}
|
2021-05-21 12:19:05 +00:00
|
|
|
{{- end }}
|
2023-06-24 22:28:46 +00:00
|
|
|
{{- if .Values.customArtifactRepository }}
|
|
|
|
{{- toYaml .Values.customArtifactRepository | nindent 6 }}
|
|
|
|
{{- end }}
|
2022-09-26 04:11:00 +00:00
|
|
|
{{- end }}
|
2021-05-21 12:19:05 +00:00
|
|
|
{{- if .Values.controller.metricsConfig.enabled }}
|
|
|
|
metricsConfig:
|
2022-09-19 16:10:20 +00:00
|
|
|
enabled: {{ .Values.controller.metricsConfig.enabled }}
|
|
|
|
path: {{ .Values.controller.metricsConfig.path }}
|
|
|
|
port: {{ .Values.controller.metricsConfig.port }}
|
|
|
|
{{- if .Values.controller.metricsConfig.metricsTTL }}
|
|
|
|
metricsTTL: {{ .Values.controller.metricsConfig.metricsTTL }}
|
|
|
|
{{- end }}
|
|
|
|
ignoreErrors: {{ .Values.controller.metricsConfig.ignoreErrors }}
|
|
|
|
secure: {{ .Values.controller.metricsConfig.secure }}
|
|
|
|
{{- end }}
|
2021-05-21 12:19:05 +00:00
|
|
|
{{- if .Values.controller.telemetryConfig.enabled }}
|
|
|
|
telemetryConfig:
|
2022-09-19 16:10:20 +00:00
|
|
|
enabled: {{ .Values.controller.telemetryConfig.enabled }}
|
|
|
|
path: {{ .Values.controller.telemetryConfig.path }}
|
|
|
|
port: {{ .Values.controller.telemetryConfig.port }}
|
|
|
|
{{- if .Values.controller.telemetryConfig.metricsTTL }}
|
|
|
|
metricsTTL: {{ .Values.controller.telemetryConfig.metricsTTL }}
|
|
|
|
{{- end }}
|
|
|
|
ignoreErrors: {{ .Values.controller.telemetryConfig.ignoreErrors }}
|
|
|
|
secure: {{ .Values.controller.telemetryConfig.secure }}
|
|
|
|
{{- end }}
|
2021-05-21 12:19:05 +00:00
|
|
|
{{- if .Values.controller.persistence }}
|
|
|
|
persistence:
|
|
|
|
{{ toYaml .Values.controller.persistence | indent 6 }}{{- end }}
|
|
|
|
{{- if .Values.controller.workflowDefaults }}
|
|
|
|
workflowDefaults:
|
|
|
|
{{ toYaml .Values.controller.workflowDefaults | indent 6 }}{{- end }}
|
2023-06-03 14:40:50 +00:00
|
|
|
{{- if .Values.server.sso.enabled }}
|
2022-09-24 00:03:36 +00:00
|
|
|
sso:
|
2023-06-03 14:40:50 +00:00
|
|
|
issuer: {{ .Values.server.sso.issuer }}
|
2022-09-24 00:03:36 +00:00
|
|
|
clientId:
|
2023-06-03 14:40:50 +00:00
|
|
|
name: {{ .Values.server.sso.clientId.name }}
|
|
|
|
key: {{ .Values.server.sso.clientId.key }}
|
2022-09-24 00:03:36 +00:00
|
|
|
clientSecret:
|
2023-06-03 14:40:50 +00:00
|
|
|
name: {{ .Values.server.sso.clientSecret.name }}
|
|
|
|
key: {{ .Values.server.sso.clientSecret.key }}
|
|
|
|
redirectUrl: {{ .Values.server.sso.redirectUrl }}
|
2022-11-14 11:20:11 +00:00
|
|
|
rbac:
|
2023-06-03 14:40:50 +00:00
|
|
|
enabled: {{ .Values.server.sso.rbac.enabled }}
|
|
|
|
{{- with .Values.server.sso.scopes }}
|
2023-12-24 00:28:35 +00:00
|
|
|
scopes: {{- toYaml . | nindent 8 }}
|
2022-11-14 11:20:11 +00:00
|
|
|
{{- end }}
|
2023-06-03 14:40:50 +00:00
|
|
|
{{- with .Values.server.sso.issuerAlias }}
|
|
|
|
issuerAlias: {{ toYaml . }}
|
2022-09-24 00:03:36 +00:00
|
|
|
{{- end }}
|
2023-06-03 14:40:50 +00:00
|
|
|
{{- with .Values.server.sso.sessionExpiry }}
|
|
|
|
sessionExpiry: {{ toYaml . }}
|
2022-09-24 00:03:36 +00:00
|
|
|
{{- end }}
|
2023-06-03 14:40:50 +00:00
|
|
|
{{- with .Values.server.sso.customGroupClaimName }}
|
|
|
|
customGroupClaimName: {{ toYaml . }}
|
2022-09-24 00:03:36 +00:00
|
|
|
{{- end }}
|
2023-06-03 14:40:50 +00:00
|
|
|
{{- with .Values.server.sso.userInfoPath }}
|
|
|
|
userInfoPath: {{ toYaml . }}
|
2022-09-24 00:03:36 +00:00
|
|
|
{{- end }}
|
2023-06-03 14:40:50 +00:00
|
|
|
{{- with .Values.server.sso.insecureSkipVerify }}
|
|
|
|
insecureSkipVerify: {{ toYaml . }}
|
2022-09-24 00:03:36 +00:00
|
|
|
{{- end }}
|
2023-12-08 22:44:59 +00:00
|
|
|
{{- with .Values.server.sso.filterGroupsRegex }}
|
2023-12-24 00:28:35 +00:00
|
|
|
filterGroupsRegex: {{- toYaml . | nindent 8 }}
|
2023-12-08 22:44:59 +00:00
|
|
|
{{- end }}
|
2021-05-21 12:19:05 +00:00
|
|
|
{{- end }}
|
|
|
|
{{- with .Values.controller.workflowRestrictions }}
|
|
|
|
workflowRestrictions: {{- toYaml . | nindent 6 }}
|
|
|
|
{{- end }}
|
|
|
|
{{- with .Values.controller.links }}
|
|
|
|
links: {{- toYaml . | nindent 6 }}
|
|
|
|
{{- end }}
|
2023-06-08 03:48:05 +00:00
|
|
|
{{- with .Values.controller.columns }}
|
|
|
|
columns: {{- toYaml . | nindent 6 }}
|
|
|
|
{{- end }}
|
2022-05-25 09:30:08 +00:00
|
|
|
{{- with .Values.controller.navColor }}
|
|
|
|
navColor: {{ . }}
|
|
|
|
{{- end }}
|
2022-11-26 01:08:11 +00:00
|
|
|
{{- with .Values.controller.retentionPolicy }}
|
|
|
|
retentionPolicy: {{- toYaml . | nindent 6 }}
|
|
|
|
{{- end }}
|
2022-12-18 23:41:56 +00:00
|
|
|
{{- with .Values.emissary.images }}
|
|
|
|
images: {{- toYaml . | nindent 6 }}
|
|
|
|
{{- end }}
|
2022-12-19 09:07:44 +00:00
|
|
|
nodeEvents:
|
|
|
|
enabled: {{ .Values.controller.nodeEvents.enabled }}
|
|
|
|
{{- with .Values.controller.kubeConfig }}
|
|
|
|
kubeConfig: {{- toYaml . | nindent 6 }}
|
|
|
|
{{- end }}
|
2023-01-03 01:46:01 +00:00
|
|
|
{{- with .Values.controller.podGCGracePeriodSeconds }}
|
|
|
|
podGCGracePeriodSeconds: {{ . }}
|
|
|
|
{{- end }}
|
|
|
|
{{- with .Values.controller.podGCDeleteDelayDuration }}
|
|
|
|
podGCDeleteDelayDuration: {{ . }}
|
2023-06-03 14:40:50 +00:00
|
|
|
{{- end }}
|
2023-11-27 17:44:58 +00:00
|
|
|
{{- end }}
|