feat: Support for customizing more Argo Events controller pod attributes.

This commit is contained in:
Vlad Losev 2020-03-31 09:40:16 -07:00
parent 2ad0ce8f3e
commit fca3fb60f2
No known key found for this signature in database
GPG key ID: 3A3C3B9FAA3AB7AE
3 changed files with 44 additions and 0 deletions

View file

@ -18,6 +18,12 @@ spec:
labels:
app: {{ .Release.Name }}-{{ .Values.gatewayController.name }}
release: {{ .Release.Name }}
{{- if .Values.gatewayController.podLabels -}}
{{ toYaml .Values.gatewayController.podLabels | nindent 8}}
{{- end }}
{{- if .Values.gatewayController.podAnnotations }}
annotations: {{- toYaml .Values.gatewayController.podAnnotations | nindent 8 }}
{{- end }}
spec:
serviceAccountName: {{ .Values.serviceAccount }}
containers:
@ -31,3 +37,7 @@ spec:
fieldPath: metadata.namespace
- name: CONTROLLER_CONFIG_MAP
value: {{ .Release.Name }}-{{ .Values.gatewayController.name }}-configmap
resources: {{- toYaml .Values.gatewayController.resources | nindent 12 }}
nodeSelector: {{- toYaml .Values.gatewayController.nodeSelector | nindent 8 }}
tolerations: {{- toYaml .Values.gatewayController.tolerations | nindent 8 }}
affinity: {{- toYaml .Values.gatewayController.affinity | nindent 8 }}

View file

@ -18,6 +18,12 @@ spec:
labels:
app: {{ .Release.Name }}-{{ .Values.sensorController.name }}
release: {{ .Release.Name }}
{{- if .Values.sensorController.podLabels -}}
{{ toYaml .Values.sensorController.podLabels | nindent 8}}
{{- end }}
{{- if .Values.sensorController.podAnnotations }}
annotations: {{- toYaml .Values.sensorController.podAnnotations | nindent 8 }}
{{- end }}
spec:
serviceAccountName: {{ .Values.serviceAccount }}
containers:
@ -31,3 +37,7 @@ spec:
fieldPath: metadata.namespace
- name: CONTROLLER_CONFIG_MAP
value: {{ .Release.Name }}-{{ .Values.sensorController.name }}-configmap
resources: {{- toYaml .Values.sensorController.resources | nindent 12 }}
nodeSelector: {{- toYaml .Values.sensorController.nodeSelector | nindent 8 }}
tolerations: {{- toYaml .Values.sensorController.tolerations | nindent 8 }}
affinity: {{- toYaml .Values.sensorController.affinity | nindent 8 }}

View file

@ -44,9 +44,33 @@ sensorController:
image: sensor-controller
tag: v0.14.0
replicaCount: 1
# Optional labels to add to the controller pods
podLabels: {}
# Annotations to add to the controller pods
podAnnotations: {}
# Resources to request for the controller's container
resources: {}
# Optional constraints on controller's pod scheduling
# See https://kubernetes.io/docs/concepts/configuration/assign-pod-node/
# and https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/.
nodeSelector: {}
tolerations: []
affinity: {}
gatewayController:
name: gateway-controller
image: gateway-controller
tag: v0.14.0
replicaCount: 1
# Optional labels to add to the controller pods
podLabels: {}
# Annotations to add to the controller pods
podAnnotations: {}
# Resources to request for the controller's container
resources: {}
# Optional constraints on controller's pod scheduling
# See https://kubernetes.io/docs/concepts/configuration/assign-pod-node/
# and https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/.
nodeSelector: {}
tolerations: []
affinity: {}