argocd-helm/charts/argo-workflows/templates/controller/workflow-controller-config-map.yaml
Prateek Khera 5112c77824
feat(argo-workflows): Add mainContainer config in configmap (#1310)
* Specify logformat for Argo-CD notifications component (#1303)

* Add: Specify logformat for Argo-CD notifications component

Signed-off-by: Nicolas Lamirault <nicolas.lamirault@gmail.com>

* Update: Chart changelog

Signed-off-by: Nicolas Lamirault <nicolas.lamirault@gmail.com>

* Fix: documentation

Signed-off-by: Nicolas Lamirault <nicolas.lamirault@gmail.com>
Signed-off-by: Prateek Khera <mail.prateekkhera@gmail.com>

* feat(argo-rollouts): readonly dashboard (#1304)

* feat-argo-rollouts-readonly-dashboard

Signed-off-by: foxtel-temujincabigao
<86087373+foxtel-temujincabigao@users.noreply.github.com>"
Signed-off-by: foxtel-temujincabigao <86087373+foxtel-temujincabigao@users.noreply.github.com>

* fixing readme values version link

Signed-off-by: foxtel-temujincabigao
<86087373+foxtel-temujincabigao@users.noreply.github.com>
Signed-off-by: foxtel-temujincabigao <86087373+foxtel-temujincabigao@users.noreply.github.com>

Co-authored-by: Marco Kilchhofer <mkilchhofer@users.noreply.github.com>
Signed-off-by: Prateek Khera <mail.prateekkhera@gmail.com>

* fix(argo-workflows): Remove unsupported value (#1302)

* fix(argo-workflows): Add comment about removed flag

Signed-off-by: yu-croco <yuki.kita22@gmail.com>

* fix(argo-workflows): Remove unsupported value
Signed-off-by: yu-croco <yuki.kita22@gmail.com>
Signed-off-by: Prateek Khera <mail.prateekkhera@gmail.com>

* add mainContainer config in configmap

Signed-off-by: Prateek Khera <mail.prateekkhera@gmail.com>

* update version

Signed-off-by: Prateek Khera <mail.prateekkhera@gmail.com>

* add mainContainer to values

Signed-off-by: Prateek Khera <mail.prateekkhera@gmail.com>

* add mainContainer to readme

Signed-off-by: Prateek Khera <mail.prateekkhera@gmail.com>

* add changelog

Signed-off-by: Prateek Khera <mail.prateekkhera@gmail.com>

* add Workflow Main Container key

Signed-off-by: Prateek Khera <mail.prateekkhera@gmail.com>

* fix(argo-cd): AppSet and Notifications respect global.podAnnotations (#1308)

Signed-off-by: Marco Kilchhofer <mkilchhofer@users.noreply.github.com>
Signed-off-by: Prateek Khera <mail.prateekkhera@gmail.com>

* feat(argo-cd): support separate imagePullSecrets (#1311)

Signed-off-by: yu-croco <yuki.kita22@gmail.com>

Co-authored-by: Marco Kilchhofer <mkilchhofer@users.noreply.github.com>
Signed-off-by: Prateek Khera <mail.prateekkhera@gmail.com>

* chore: Update some tools' version on GitHub Actions (#1312)

Signed-off-by: yu-croco <yuki.kita22@gmail.com>
Signed-off-by: Prateek Khera <mail.prateekkhera@gmail.com>

* chore(CODEOWNERS): Add jmeridth as approver (#1271)

Signed-off-by: jmeridth <jmeridth@gmail.com>

Co-authored-by: Marco Kilchhofer <mkilchhofer@users.noreply.github.com>
Signed-off-by: Prateek Khera <mail.prateekkhera@gmail.com>

* feat(argo-cd): Support annotations in argocd-configs secrets (#1314)

* feat(argo-cd): support annotations in argocd-configs secrets
Signed-off-by: yu-croco <yuki.kita22@gmail.com>

* fix(argo-cd): align to exitsing format

Signed-off-by: yu-croco <yuki.kita22@gmail.com>
Signed-off-by: Prateek Khera <mail.prateekkhera@gmail.com>

* add new line to fix failed liniting

Signed-off-by: Prateek Khera <mail.prateekkhera@gmail.com>

* remove auto-generating readme

Signed-off-by: Prateek Khera <mail.prateekkhera@gmail.com>

* match readme as per the comment in values file

Signed-off-by: Prateek Khera <mail.prateekkhera@gmail.com>

* add image pullpolicy to values.yaml

Signed-off-by: Prateek Khera <mail.prateekkhera@gmail.com>

* add image pullpolicy to values.yaml

Signed-off-by: Prateek Khera <mail.prateekkhera@gmail.com>

* add image pullpolicy to readme

Signed-off-by: Prateek Khera <mail.prateekkhera@gmail.com>

* fix ordering in readme

Signed-off-by: Prateek Khera <mail.prateekkhera@gmail.com>

* Exclude "mainContainer" prefix from General parameters

Signed-off-by: Marco Kilchhofer <mkilchhofer@users.noreply.github.com>

Co-authored-by: Nicolas Lamirault <nicolas.lamirault@gmail.com>
Co-authored-by: foxtel-temujincabigao <86087373+foxtel-temujincabigao@users.noreply.github.com>
Co-authored-by: Marco Kilchhofer <mkilchhofer@users.noreply.github.com>
Co-authored-by: Aikawa <yuki.kita22@gmail.com>
Co-authored-by: Prateek Khera <mail.prateekkhera@gmail.com>
Co-authored-by: JM" (Jason Meridth) <jmeridth@gmail.com>
2022-06-10 17:50:01 +01:00

121 lines
4.8 KiB
YAML

apiVersion: v1
kind: ConfigMap
metadata:
name: {{ template "argo-workflows.controller.fullname" . }}-configmap
labels:
{{- include "argo-workflows.labels" (dict "context" . "component" .Values.controller.name "name" "cm") | nindent 4 }}
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 }}
{{- with .Values.controller.containerRuntimeExecutors }}
containerRuntimeExecutors:
{{- toYaml . | nindent 6 }}
{{- end }}
{{- if .Values.controller.parallelism }}
parallelism: {{ .Values.controller.parallelism }}
{{- end }}
{{- if .Values.controller.resourceRateLimit }}
resourceRateLimit: {{ toYaml .Values.controller.resourceRateLimit | nindent 6 }}
{{- end }}
{{- with .Values.controller.namespaceParallelism }}
namespaceParallelism: {{ . }}
{{- end }}
{{- with .Values.controller.initialDelay }}
initialDelay: {{ . }}
{{- end }}
{{- if or .Values.mainContainer.resources .Values.mainContainer.env .Values.mainContainer.securityContext}}
mainContainer:
imagePullPolicy: {{ .Values.images.pullPolicy }}
{{- with .Values.mainContainer.resources }}
resources: {{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.mainContainer.env }}
env: {{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.mainContainer.securityContext }}
securityContext: {{- toYaml . | nindent 8 }}
{{- end }}
{{- end }}
{{- if or .Values.executor.resources .Values.executor.env .Values.executor.securityContext}}
executor:
imagePullPolicy: {{ .Values.images.pullPolicy }}
{{- with .Values.executor.resources }}
resources: {{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.executor.env }}
env: {{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.executor.securityContext }}
securityContext: {{- toYaml . | nindent 8 }}
{{- end }}
{{- end }}
{{- if .Values.useDefaultArtifactRepo }}
artifactRepository:
{{- if .Values.artifactRepository.archiveLogs }}
archiveLogs: {{ .Values.artifactRepository.archiveLogs }}
{{- end }}
{{- if .Values.artifactRepository.gcs }}
gcs:
{{ toYaml .Values.artifactRepository.gcs | indent 8}}
{{- else }}
s3:
{{- if .Values.useStaticCredentials }}
accessKeySecret:
key: {{ .Values.artifactRepository.s3.accessKeySecret.key }}
name: {{ .Values.artifactRepository.s3.accessKeySecret.name }}
secretKeySecret:
key: {{ .Values.artifactRepository.s3.secretKeySecret.key }}
name: {{ .Values.artifactRepository.s3.secretKeySecret.name }}
{{- end }}
bucket: {{ .Values.artifactRepository.s3.bucket }}
endpoint: {{ .Values.artifactRepository.s3.endpoint }}
insecure: {{ .Values.artifactRepository.s3.insecure }}
{{- if .Values.artifactRepository.s3.keyFormat }}
keyFormat: {{ .Values.artifactRepository.s3.keyFormat | quote }}
{{- 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 }}
{{- with .Values.artifactRepository.s3.encryptionOptions }}
encryptionOptions:
{{- toYaml . | nindent 10 }}
{{- end }}
{{- 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 }}
{{- with .Values.server.sso }}
sso: {{- toYaml . | nindent 6 }}
{{- end }}
{{- with .Values.controller.workflowRestrictions }}
workflowRestrictions: {{- toYaml . | nindent 6 }}
{{- end }}
{{- with .Values.controller.links }}
links: {{- toYaml . | nindent 6 }}
{{- end }}
{{- with .Values.controller.navColor }}
navColor: {{ . }}
{{- end }}