From 21da1f5a6414527942d51be083dd0684e3a603d3 Mon Sep 17 00:00:00 2001 From: Yurii Kryvosheia Date: Fri, 6 Oct 2023 13:11:39 +0300 Subject: [PATCH] chore: add controller node selector Signed-off-by: Yurii Kryvosheia --- charts/prom-aggregation-gateway/Chart.yaml | 2 +- charts/prom-aggregation-gateway/templates/controller.yaml | 4 ++++ charts/prom-aggregation-gateway/values.schema.json | 3 +++ charts/prom-aggregation-gateway/values.yaml | 2 ++ 4 files changed, 10 insertions(+), 1 deletion(-) diff --git a/charts/prom-aggregation-gateway/Chart.yaml b/charts/prom-aggregation-gateway/Chart.yaml index 04a17cb..58afbc4 100644 --- a/charts/prom-aggregation-gateway/Chart.yaml +++ b/charts/prom-aggregation-gateway/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v2 name: prom-aggregation-gateway -version: 0.5.3 +version: 0.5.4 home: https://github.com/zapier/prom-aggregation-gateway maintainers: - name: djeebus diff --git a/charts/prom-aggregation-gateway/templates/controller.yaml b/charts/prom-aggregation-gateway/templates/controller.yaml index 96c09a6..e3e57f4 100644 --- a/charts/prom-aggregation-gateway/templates/controller.yaml +++ b/charts/prom-aggregation-gateway/templates/controller.yaml @@ -56,6 +56,10 @@ spec: {{- with .Values.controller.resources }} resources: {{ . | toYaml | nindent 12 }} {{- end }} + {{- with .Values.controller.nodeSelector }} + nodeSelector: + {{- toYaml . | nindent 8 }} + {{- end }} {{- if .Values.controller.tolerations }} tolerations: {{- with .Values.controller.tolerations }} diff --git a/charts/prom-aggregation-gateway/values.schema.json b/charts/prom-aggregation-gateway/values.schema.json index 7ea8148..f41efda 100644 --- a/charts/prom-aggregation-gateway/values.schema.json +++ b/charts/prom-aggregation-gateway/values.schema.json @@ -49,6 +49,9 @@ ".*": {"type": "string"} } }, + "nodeSelector": { + "type": "object" + }, "tolerations": { "type": "array" } diff --git a/charts/prom-aggregation-gateway/values.yaml b/charts/prom-aggregation-gateway/values.yaml index be43e81..ed943fc 100644 --- a/charts/prom-aggregation-gateway/values.yaml +++ b/charts/prom-aggregation-gateway/values.yaml @@ -15,6 +15,8 @@ controller: tolerations: [] + nodeSelector: {} + podMonitor: create: true