Make the ConfigMap for the Argo Workflow Controller optional and allow a name override
Signed-off-by: Florian Wende <florian.wende@qaware.de>
This commit is contained in:
parent
c183652889
commit
d82140b23f
6 changed files with 20 additions and 3 deletions
|
@ -142,6 +142,8 @@ Fields to note:
|
||||||
| controller.affinity | object | `{}` | Assign custom [affinity] rules |
|
| controller.affinity | object | `{}` | Assign custom [affinity] rules |
|
||||||
| controller.clusterWorkflowTemplates.enabled | bool | `true` | Create a ClusterRole and CRB for the controller to access ClusterWorkflowTemplates. |
|
| controller.clusterWorkflowTemplates.enabled | bool | `true` | Create a ClusterRole and CRB for the controller to access ClusterWorkflowTemplates. |
|
||||||
| controller.columns | list | `[]` | Configure Argo Server to show custom [columns] |
|
| controller.columns | list | `[]` | Configure Argo Server to show custom [columns] |
|
||||||
|
| controller.configMap.create | bool | `true` | Create a ConfigMap for the controller |
|
||||||
|
| controller.configMap.name | string | `""` | ConfigMap name |
|
||||||
| controller.cronWorkflowWorkers | string | `nil` | Number of cron workflow workers Only valid for 3.5+ |
|
| controller.cronWorkflowWorkers | string | `nil` | Number of cron workflow workers Only valid for 3.5+ |
|
||||||
| controller.deploymentAnnotations | object | `{}` | deploymentAnnotations is an optional map of annotations to be applied to the controller Deployment |
|
| controller.deploymentAnnotations | object | `{}` | deploymentAnnotations is an optional map of annotations to be applied to the controller Deployment |
|
||||||
| controller.extraArgs | list | `[]` | Extra arguments to be added to the controller |
|
| controller.extraArgs | list | `[]` | Extra arguments to be added to the controller |
|
||||||
|
|
|
@ -97,6 +97,13 @@ app.kubernetes.io/component: {{ .component }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Create the name of the controller configMap
|
||||||
|
*/}}
|
||||||
|
{{- define "argo-workflows.controller.config-map.name" -}}
|
||||||
|
{{- .Values.controller.configMap.name | default (printf "%s-%s" (include "argo-workflows.controller.fullname" .) "configmap") | trunc 63 | trimSuffix "-" -}}
|
||||||
|
{{- end -}}
|
||||||
|
|
||||||
{{/*
|
{{/*
|
||||||
Create the name of the server service account to use
|
Create the name of the server service account to use
|
||||||
*/}}
|
*/}}
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
|
{{- if .Values.controller.configMap.create }}
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: ConfigMap
|
kind: ConfigMap
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ template "argo-workflows.controller.fullname" . }}-configmap
|
name: {{ template "argo-workflows.controller.config-map.name" . }}
|
||||||
namespace: {{ .Release.Namespace | quote }}
|
namespace: {{ .Release.Namespace | quote }}
|
||||||
labels:
|
labels:
|
||||||
{{- include "argo-workflows.labels" (dict "context" . "component" .Values.controller.name "name" "cm") | nindent 4 }}
|
{{- include "argo-workflows.labels" (dict "context" . "component" .Values.controller.name "name" "cm") | nindent 4 }}
|
||||||
|
@ -191,3 +192,4 @@ data:
|
||||||
{{- with .Values.controller.podGCDeleteDelayDuration }}
|
{{- with .Values.controller.podGCDeleteDelayDuration }}
|
||||||
podGCDeleteDelayDuration: {{ . }}
|
podGCDeleteDelayDuration: {{ . }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
|
|
@ -45,7 +45,7 @@ spec:
|
||||||
command: [ "workflow-controller" ]
|
command: [ "workflow-controller" ]
|
||||||
args:
|
args:
|
||||||
- "--configmap"
|
- "--configmap"
|
||||||
- "{{ template "argo-workflows.controller.fullname" . }}-configmap"
|
- {{ template "argo-workflows.controller.config-map.name" . | quote }}
|
||||||
- "--executor-image"
|
- "--executor-image"
|
||||||
- "{{- include "argo-workflows.image" (dict "context" . "image" .Values.executor.image) }}:{{ default (include "argo-workflows.defaultTag" .) .Values.executor.image.tag }}"
|
- "{{- include "argo-workflows.image" (dict "context" . "image" .Values.executor.image) }}:{{ default (include "argo-workflows.defaultTag" .) .Values.executor.image.tag }}"
|
||||||
- "--loglevel"
|
- "--loglevel"
|
||||||
|
|
|
@ -49,7 +49,7 @@ spec:
|
||||||
{{- toYaml .Values.server.securityContext | nindent 12 }}
|
{{- toYaml .Values.server.securityContext | nindent 12 }}
|
||||||
args:
|
args:
|
||||||
- server
|
- server
|
||||||
- --configmap={{ template "argo-workflows.controller.fullname" . }}-configmap
|
- --configmap={{ template "argo-workflows.controller.config-map.name" . }}
|
||||||
{{- with .Values.server.extraArgs }}
|
{{- with .Values.server.extraArgs }}
|
||||||
{{- toYaml . | nindent 10 }}
|
{{- toYaml . | nindent 10 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
|
@ -91,6 +91,12 @@ controller:
|
||||||
# -- Allows controller to create and update ConfigMaps. Enables memoization feature
|
# -- Allows controller to create and update ConfigMaps. Enables memoization feature
|
||||||
writeConfigMaps: false
|
writeConfigMaps: false
|
||||||
|
|
||||||
|
configMap:
|
||||||
|
# -- Create a ConfigMap for the controller
|
||||||
|
create: true
|
||||||
|
# -- ConfigMap name
|
||||||
|
name: ""
|
||||||
|
|
||||||
# -- Limits the maximum number of incomplete workflows in a namespace
|
# -- Limits the maximum number of incomplete workflows in a namespace
|
||||||
namespaceParallelism:
|
namespaceParallelism:
|
||||||
# -- Resolves ongoing, uncommon AWS EKS bug: https://github.com/argoproj/argo-workflows/pull/4224
|
# -- Resolves ongoing, uncommon AWS EKS bug: https://github.com/argoproj/argo-workflows/pull/4224
|
||||||
|
|
Loading…
Reference in a new issue