From dcf2e65ac6a29c6d8b7d54f83b900325baba53a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Weber?= Date: Wed, 23 Aug 2023 12:07:39 +1000 Subject: [PATCH 1/3] add the ability to set the operator nodeSelector --- charts/community-operator/templates/operator.yaml | 4 ++++ charts/community-operator/values.yaml | 3 +++ 2 files changed, 7 insertions(+) diff --git a/charts/community-operator/templates/operator.yaml b/charts/community-operator/templates/operator.yaml index 15af4014..dd2242d3 100644 --- a/charts/community-operator/templates/operator.yaml +++ b/charts/community-operator/templates/operator.yaml @@ -76,6 +76,10 @@ spec: securityContext: {{- toYaml .Values.operator.securityContext | nindent 12 }} {{- end }} + {{- if .Values.operator.nodeSelector }} + nodeSelector: + {{- toYaml .Values.operator.nodeSelector | nindent 8 }} + {{- end }} {{- if .Values.operator.podSecurityContext }} securityContext: {{- toYaml .Values.operator.podSecurityContext | nindent 8 }} diff --git a/charts/community-operator/values.yaml b/charts/community-operator/values.yaml index 66775abc..020f8c51 100644 --- a/charts/community-operator/values.yaml +++ b/charts/community-operator/values.yaml @@ -118,3 +118,6 @@ resource: # - name: dbAdminAnyDatabase # db: admin # scramCredentialsSecretName: my-scram + +nodeSelector: + kubernetes.io/os: linux From 152177ebfdd42b36c66b1c88acaf6bd6ae13d035 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Weber?= Date: Wed, 23 Aug 2023 12:53:11 +1000 Subject: [PATCH 2/3] wrong spot --- charts/community-operator/values.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/charts/community-operator/values.yaml b/charts/community-operator/values.yaml index 020f8c51..9886a37a 100644 --- a/charts/community-operator/values.yaml +++ b/charts/community-operator/values.yaml @@ -20,6 +20,9 @@ operator: # Uncomment this line to watch all namespaces # watchNamespace: "*" + nodeSelector: + kubernetes.io/os: linux + # Resources allocated to Operator Pod resources: limits: @@ -118,6 +121,3 @@ resource: # - name: dbAdminAnyDatabase # db: admin # scramCredentialsSecretName: my-scram - -nodeSelector: - kubernetes.io/os: linux From 4fb6d9b2f3999c6a0fc84657bb9d40ee9f75459f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Weber?= Date: Fri, 25 Aug 2023 10:53:10 +1000 Subject: [PATCH 3/3] We want amd for this --- charts/community-operator/values.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/charts/community-operator/values.yaml b/charts/community-operator/values.yaml index 9886a37a..9fcf4613 100644 --- a/charts/community-operator/values.yaml +++ b/charts/community-operator/values.yaml @@ -22,6 +22,7 @@ operator: nodeSelector: kubernetes.io/os: linux + kubernetes.io/arch: amd64 # Resources allocated to Operator Pod resources: