From 153455082c465cf962914255759fcd945abd52db Mon Sep 17 00:00:00 2001 From: Nicholas Lockhart Date: Fri, 24 Apr 2020 09:36:59 -0400 Subject: [PATCH] adding resources and tolerations to Argo-events --- .../templates/gateway-controller-deployment.yaml | 14 ++++++++++++++ .../templates/sensor-controller-deployment.yaml | 14 ++++++++++++++ charts/argo-events/values.yaml | 8 ++++++++ 3 files changed, 36 insertions(+) diff --git a/charts/argo-events/templates/gateway-controller-deployment.yaml b/charts/argo-events/templates/gateway-controller-deployment.yaml index fba3bd1f..dd37f3ff 100644 --- a/charts/argo-events/templates/gateway-controller-deployment.yaml +++ b/charts/argo-events/templates/gateway-controller-deployment.yaml @@ -31,3 +31,17 @@ spec: fieldPath: metadata.namespace - name: GATEWAY_CONTROLLER_CONFIG_MAP value: {{ .Release.Name }}-{{ .Values.gatewayController.name }}-configmap + resources: +{{ toYaml .Values.gatewayController.resources | indent 12 }} + {{- with .Values.gatewatController.nodeSelector }} + nodeSelector: +{{ toYaml . | indent 8 }} + {{- end }} + {{- with .Values.gatewayController.affinity }} + affinity: +{{ toYaml . | indent 8 }} + {{- end }} + {{- with .Values.gatewayController.tolerations }} + tolerations: +{{ toYaml . | indent 8 }} + {{- end }} diff --git a/charts/argo-events/templates/sensor-controller-deployment.yaml b/charts/argo-events/templates/sensor-controller-deployment.yaml index c5a260fe..c740366b 100644 --- a/charts/argo-events/templates/sensor-controller-deployment.yaml +++ b/charts/argo-events/templates/sensor-controller-deployment.yaml @@ -31,3 +31,17 @@ spec: fieldPath: metadata.namespace - name: SENSOR_CONFIG_MAP value: {{ .Release.Name }}-{{ .Values.sensorController.name }}-configmap + resources: +{{ toYaml .Values.sensorController.resources | indent 12 }} + {{- with .Values.sensorController.nodeSelector }} + nodeSelector: +{{ toYaml . | indent 8 }} + {{- end }} + {{- with .Values.sensorController.affinity }} + affinity: +{{ toYaml . | indent 8 }} + {{- end }} + {{- with .Values.sensorController.tolerations }} + tolerations: +{{ toYaml . | indent 8 }} + {{- end }} diff --git a/charts/argo-events/values.yaml b/charts/argo-events/values.yaml index 1ee2fa5a..d4153740 100644 --- a/charts/argo-events/values.yaml +++ b/charts/argo-events/values.yaml @@ -28,9 +28,17 @@ sensorController: image: sensor-controller tag: v0.11 replicaCount: 1 + resources: {} + nodeSelector: {} + tolerations: [] + affinity: {} gatewayController: name: gateway-controller image: gateway-controller tag: v0.11 replicaCount: 1 + resources: {} + nodeSelector: {} + tolerations: [] + affinity: {}