69 lines
3 KiB
YAML
69 lines
3 KiB
YAML
apiVersion: v1
|
|
kind: ConfigMap
|
|
metadata:
|
|
name: {{ .Release.Name }}-{{ .Values.controller.name }}-configmap
|
|
labels:
|
|
chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
|
|
release: {{ .Release.Name }}
|
|
heritage: {{ .Release.Service }}
|
|
data:
|
|
config: |
|
|
{{- if .Values.controller.instanceID.enabled }}
|
|
{{- if .Values.controller.instanceID.useReleaseName }}
|
|
instanceID: {{ .Release.Name }}
|
|
{{- else }}
|
|
instanceID: {{ .Values.controller.instanceID.explicitID }}
|
|
{{- end }}
|
|
{{- end }}
|
|
containerRuntimeExecutor: {{ .Values.controller.containerRuntimeExecutor }}
|
|
{{- if or .Values.executor.resources .Values.executor.env }}
|
|
executor:
|
|
{{- with .Values.executor.resources }}
|
|
resources: {{- toYaml . | nindent 8 }}
|
|
{{- end }}
|
|
{{- with .Values.executor.env }}
|
|
env: {{- toYaml . | nindent 8 }}
|
|
{{- end }}
|
|
{{- end }}
|
|
artifactRepository:
|
|
{{- if or .Values.minio.install .Values.useDefaultArtifactRepo }}
|
|
{{- if .Values.artifactRepository.archiveLogs }}
|
|
archiveLogs: {{ .Values.artifactRepository.archiveLogs }}
|
|
{{- end }}
|
|
s3:
|
|
{{- if .Values.useStaticCredentials }}
|
|
accessKeySecret:
|
|
key: {{ .Values.artifactRepository.s3.accessKeySecret.key }}
|
|
name: {{ .Values.artifactRepository.s3.accessKeySecret.name | default (printf "%s-%s" .Release.Name "minio") }}
|
|
secretKeySecret:
|
|
key: {{ .Values.artifactRepository.s3.secretKeySecret.key }}
|
|
name: {{ .Values.artifactRepository.s3.secretKeySecret.name | default (printf "%s-%s" .Release.Name "minio") }}
|
|
{{- end }}
|
|
bucket: {{ .Values.artifactRepository.s3.bucket | default .Values.minio.defaultBucket.name }}
|
|
endpoint: {{ .Values.artifactRepository.s3.endpoint | default (printf "%s-%s" .Release.Name "minio:9000") }}
|
|
insecure: {{ .Values.artifactRepository.s3.insecure }}
|
|
{{- if .Values.artifactRepository.s3.keyFormat }}
|
|
keyFormat: {{ .Values.artifactRepository.s3.keyFormat }}
|
|
{{- end }}
|
|
{{- if .Values.artifactRepository.s3.region }}
|
|
region: {{ .Values.artifactRepository.s3.region }}
|
|
{{- end }}
|
|
{{- if .Values.artifactRepository.s3.roleARN }}
|
|
roleARN: {{ .Values.artifactRepository.s3.roleARN }}
|
|
{{- end }}
|
|
{{- if .Values.artifactRepository.s3.useSDKCreds }}
|
|
useSDKCreds: {{ .Values.artifactRepository.s3.useSDKCreds }}
|
|
{{- end }}
|
|
{{- end}}
|
|
{{- if .Values.controller.metricsConfig.enabled }}
|
|
metricsConfig:
|
|
{{ toYaml .Values.controller.metricsConfig | indent 6}}{{- end }}
|
|
{{- if .Values.controller.telemetryConfig.enabled }}
|
|
telemetryConfig:
|
|
{{ toYaml .Values.controller.telemetryConfig | indent 6}}{{- end }}
|
|
{{- if .Values.controller.persistence }}
|
|
persistence:
|
|
{{ toYaml .Values.controller.persistence | indent 6 }}{{- end }}
|
|
{{- if .Values.controller.workflowDefaults }}
|
|
workflowDefaults:
|
|
{{ toYaml .Values.controller.workflowDefaults | indent 6 }}{{- end }}
|