2018-01-02 16:45:35 -08:00
|
|
|
apiVersion: v1
|
|
|
|
|
kind: ConfigMap
|
|
|
|
|
metadata:
|
2018-06-04 10:39:53 -04:00
|
|
|
name: {{ .Release.Name }}-{{ .Values.controller.name }}-configmap
|
2018-01-02 16:45:35 -08:00
|
|
|
labels:
|
|
|
|
|
chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
|
|
|
|
|
release: {{ .Release.Name }}
|
|
|
|
|
heritage: {{ .Release.Service }}
|
|
|
|
|
data:
|
|
|
|
|
config: |
|
2018-08-16 00:39:27 -07:00
|
|
|
{{- if .Values.controller.instanceID.enabled }}
|
|
|
|
|
{{- if .Values.controller.instanceID.useReleaseName }}
|
2018-01-05 11:11:40 -08:00
|
|
|
instanceID: {{ .Release.Name }}
|
2018-03-23 21:10:05 -07:00
|
|
|
{{- else }}
|
2018-08-16 00:39:27 -07:00
|
|
|
instanceID: {{ .Values.controller.instanceID.explicitID }}
|
|
|
|
|
{{- end }}
|
2018-03-23 21:10:05 -07:00
|
|
|
{{- end }}
|
2019-06-18 01:33:17 +09:00
|
|
|
containerRuntimeExecutor: {{ .Values.controller.containerRuntimeExecutor }}
|
2020-11-17 13:32:02 -05:00
|
|
|
{{- if .Values.controller.parallelism }}
|
|
|
|
|
parallelism: {{ .Values.controller.parallelism }}
|
|
|
|
|
{{- end }}
|
2020-09-02 18:09:17 +02:00
|
|
|
{{- if or .Values.executor.resources .Values.executor.env .Values.executor.securityContext}}
|
2020-04-30 22:00:07 +01:00
|
|
|
executor:
|
2020-05-14 17:04:21 -07:00
|
|
|
{{- with .Values.executor.resources }}
|
|
|
|
|
resources: {{- toYaml . | nindent 8 }}
|
|
|
|
|
{{- end }}
|
|
|
|
|
{{- with .Values.executor.env }}
|
|
|
|
|
env: {{- toYaml . | nindent 8 }}
|
|
|
|
|
{{- end }}
|
2020-09-02 18:09:17 +02:00
|
|
|
{{- with .Values.executor.securityContext }}
|
|
|
|
|
securityContext: {{- toYaml . | nindent 8 }}
|
|
|
|
|
{{- end }}
|
2020-04-30 22:00:07 +01:00
|
|
|
{{- end }}
|
2020-06-18 21:36:53 +02:00
|
|
|
{{- if or .Values.minio.install .Values.useDefaultArtifactRepo }}
|
2018-01-02 16:45:35 -08:00
|
|
|
artifactRepository:
|
2019-05-07 22:45:50 +08:00
|
|
|
{{- if .Values.artifactRepository.archiveLogs }}
|
|
|
|
|
archiveLogs: {{ .Values.artifactRepository.archiveLogs }}
|
|
|
|
|
{{- end }}
|
2020-09-04 23:23:16 +01:00
|
|
|
{{- if .Values.artifactRepository.gcs }}
|
|
|
|
|
gcs:
|
|
|
|
|
{{ toYaml .Values.artifactRepository.gcs | indent 8}}
|
|
|
|
|
{{- else }}
|
2018-01-02 16:45:35 -08:00
|
|
|
s3:
|
2018-03-23 21:10:05 -07:00
|
|
|
{{- if .Values.useStaticCredentials }}
|
2018-01-02 16:45:35 -08:00
|
|
|
accessKeySecret:
|
2018-03-23 21:10:05 -07:00
|
|
|
key: {{ .Values.artifactRepository.s3.accessKeySecret.key }}
|
2018-08-16 00:39:27 -07:00
|
|
|
name: {{ .Values.artifactRepository.s3.accessKeySecret.name | default (printf "%s-%s" .Release.Name "minio") }}
|
2018-01-02 16:45:35 -08:00
|
|
|
secretKeySecret:
|
2018-03-23 21:10:05 -07:00
|
|
|
key: {{ .Values.artifactRepository.s3.secretKeySecret.key }}
|
2018-08-16 00:39:27 -07:00
|
|
|
name: {{ .Values.artifactRepository.s3.secretKeySecret.name | default (printf "%s-%s" .Release.Name "minio") }}
|
2018-03-23 21:10:05 -07:00
|
|
|
{{- end }}
|
2018-06-04 10:39:53 -04:00
|
|
|
bucket: {{ .Values.artifactRepository.s3.bucket | default .Values.minio.defaultBucket.name }}
|
2018-08-16 00:39:27 -07:00
|
|
|
endpoint: {{ .Values.artifactRepository.s3.endpoint | default (printf "%s-%s" .Release.Name "minio:9000") }}
|
2018-03-23 21:10:05 -07:00
|
|
|
insecure: {{ .Values.artifactRepository.s3.insecure }}
|
2020-05-18 08:35:30 -07:00
|
|
|
{{- if .Values.artifactRepository.s3.keyFormat }}
|
|
|
|
|
keyFormat: {{ .Values.artifactRepository.s3.keyFormat }}
|
2019-06-17 12:04:39 -05:00
|
|
|
{{- end }}
|
2020-04-23 12:25:08 -07:00
|
|
|
{{- if .Values.artifactRepository.s3.region }}
|
|
|
|
|
region: {{ .Values.artifactRepository.s3.region }}
|
|
|
|
|
{{- end }}
|
2020-04-29 22:04:07 -04:00
|
|
|
{{- if .Values.artifactRepository.s3.roleARN }}
|
|
|
|
|
roleARN: {{ .Values.artifactRepository.s3.roleARN }}
|
|
|
|
|
{{- end }}
|
|
|
|
|
{{- if .Values.artifactRepository.s3.useSDKCreds }}
|
|
|
|
|
useSDKCreds: {{ .Values.artifactRepository.s3.useSDKCreds }}
|
|
|
|
|
{{- end }}
|
2020-09-04 23:23:16 +01:00
|
|
|
{{- end }}
|
2020-06-18 21:36:53 +02:00
|
|
|
{{- end}}
|
2019-04-16 18:27:40 -04:00
|
|
|
{{- if .Values.controller.metricsConfig.enabled }}
|
|
|
|
|
metricsConfig:
|
|
|
|
|
{{ toYaml .Values.controller.metricsConfig | indent 6}}{{- end }}
|
2019-07-02 22:41:28 +02:00
|
|
|
{{- if .Values.controller.telemetryConfig.enabled }}
|
|
|
|
|
telemetryConfig:
|
|
|
|
|
{{ toYaml .Values.controller.telemetryConfig | indent 6}}{{- end }}
|
2019-10-22 17:08:29 -05:00
|
|
|
{{- if .Values.controller.persistence }}
|
|
|
|
|
persistence:
|
|
|
|
|
{{ toYaml .Values.controller.persistence | indent 6 }}{{- end }}
|
2020-04-28 10:15:23 -07:00
|
|
|
{{- if .Values.controller.workflowDefaults }}
|
|
|
|
|
workflowDefaults:
|
|
|
|
|
{{ toYaml .Values.controller.workflowDefaults | indent 6 }}{{- end }}
|
2020-06-22 10:44:50 -07:00
|
|
|
{{- with .Values.server.sso }}
|
|
|
|
|
sso: {{- toYaml . | nindent 6 }}
|
|
|
|
|
{{- end }}
|
2020-09-16 12:46:13 -07:00
|
|
|
{{- with .Values.controller.workflowRestrictions }}
|
|
|
|
|
workflowRestrictions: {{- toYaml . | nindent 6 }}
|
|
|
|
|
{{- end }}
|
2020-11-16 22:49:59 +01:00
|
|
|
{{- with .Values.controller.links }}
|
|
|
|
|
links: {{- toYaml . | nindent 6 }}
|
|
|
|
|
{{- end }}
|