diff --git a/charts/argo-events/templates/gateway-controller-deployment.yaml b/charts/argo-events/templates/gateway-controller-deployment.yaml index 63350fbf..cf6deefe 100644 --- a/charts/argo-events/templates/gateway-controller-deployment.yaml +++ b/charts/argo-events/templates/gateway-controller-deployment.yaml @@ -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 }} diff --git a/charts/argo-events/templates/sensor-controller-deployment.yaml b/charts/argo-events/templates/sensor-controller-deployment.yaml index 2dd9602e..f6f95690 100644 --- a/charts/argo-events/templates/sensor-controller-deployment.yaml +++ b/charts/argo-events/templates/sensor-controller-deployment.yaml @@ -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 }} diff --git a/charts/argo-events/values.yaml b/charts/argo-events/values.yaml index 4ac26da1..385801d0 100644 --- a/charts/argo-events/values.yaml +++ b/charts/argo-events/values.yaml @@ -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: {}