diff --git a/charts/argo-events/templates/gateway-controller-deployment.yaml b/charts/argo-events/templates/gateway-controller-deployment.yaml index 63350fbf..85338538 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: 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 2dd9602e..b3adee4d 100644 --- a/charts/argo-events/templates/sensor-controller-deployment.yaml +++ b/charts/argo-events/templates/sensor-controller-deployment.yaml @@ -31,3 +31,18 @@ spec: fieldPath: metadata.namespace - name: CONTROLLER_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 4ac26da1..6bdc3599 100644 --- a/charts/argo-events/values.yaml +++ b/charts/argo-events/values.yaml @@ -44,9 +44,19 @@ sensorController: image: sensor-controller tag: v0.14.0 replicaCount: 1 + resources: {} + nodeSelector: {} + tolerations: [] + affinity: {} + gatewayController: name: gateway-controller image: gateway-controller tag: v0.14.0 replicaCount: 1 + resources: {} + nodeSelector: {} + tolerations: [] + affinity: {} +