From 6476be9cce14df26d174a25d109b39d261636389 Mon Sep 17 00:00:00 2001 From: Juan Ariza Toledano Date: Tue, 22 Aug 2023 16:53:08 +0200 Subject: [PATCH] [bitnami/mxnet] Support for customizing standard labels (#18355) --- bitnami/mxnet/Chart.lock | 6 ++-- bitnami/mxnet/Chart.yaml | 4 +-- bitnami/mxnet/templates/configmap.yaml | 5 +--- .../templates/distributed/headless-svc.yaml | 7 ++--- .../distributed/scheduler/deployment.yaml | 17 ++++------- .../distributed/scheduler/service.yaml | 19 +++++------- .../distributed/server/statefulset.yaml | 30 +++++++------------ .../distributed/worker/statefulset.yaml | 30 +++++++------------ bitnami/mxnet/templates/pvc.yaml | 14 ++------- .../templates/standalone/deployment.yaml | 17 ++++------- 10 files changed, 52 insertions(+), 97 deletions(-) diff --git a/bitnami/mxnet/Chart.lock b/bitnami/mxnet/Chart.lock index 2640e9ba9a..684731192d 100644 --- a/bitnami/mxnet/Chart.lock +++ b/bitnami/mxnet/Chart.lock @@ -1,6 +1,6 @@ dependencies: - name: common repository: oci://registry-1.docker.io/bitnamicharts - version: 2.8.0 -digest: sha256:0119fce6b509ebf3eaf5218f87f6ec0af64ec7da15f272115673b0716c4b6919 -generated: "2023-08-17T17:25:02.634388058Z" + version: 2.9.0 +digest: sha256:416ad278a896f0e9b51d5305bef5d875c7cca6fbb64b75e1f131b04763e2aff9 +generated: "2023-08-22T14:22:35.009418+02:00" diff --git a/bitnami/mxnet/Chart.yaml b/bitnami/mxnet/Chart.yaml index 3ea5d16d8d..fb73197603 100644 --- a/bitnami/mxnet/Chart.yaml +++ b/bitnami/mxnet/Chart.yaml @@ -32,5 +32,5 @@ maintainers: url: https://github.com/bitnami/charts name: mxnet sources: -- https://github.com/bitnami/charts/tree/main/bitnami/mxnet -version: 3.3.10 + - https://github.com/bitnami/charts/tree/main/bitnami/mxnet +version: 3.4.0 diff --git a/bitnami/mxnet/templates/configmap.yaml b/bitnami/mxnet/templates/configmap.yaml index f1ac21856d..13c91b0c1a 100644 --- a/bitnami/mxnet/templates/configmap.yaml +++ b/bitnami/mxnet/templates/configmap.yaml @@ -9,10 +9,7 @@ kind: ConfigMap metadata: name: {{ printf "%s-files" (include "common.names.fullname" .) }} namespace: {{ include "common.names.namespace" . | quote }} - labels: {{- include "common.labels.standard" . | nindent 4 }} - {{- if .Values.commonLabels }} - {{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }} - {{- end }} + labels: {{- include "common.labels.standard" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }} {{- if .Values.commonAnnotations }} annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }} {{- end }} diff --git a/bitnami/mxnet/templates/distributed/headless-svc.yaml b/bitnami/mxnet/templates/distributed/headless-svc.yaml index a1aa8707e6..8599b83ff0 100644 --- a/bitnami/mxnet/templates/distributed/headless-svc.yaml +++ b/bitnami/mxnet/templates/distributed/headless-svc.yaml @@ -9,15 +9,12 @@ kind: Service metadata: name: {{ printf "%s-headless" (include "common.names.fullname" .) }} namespace: {{ include "common.names.namespace" . | quote }} - labels: {{- include "common.labels.standard" . | nindent 4 }} - {{- if .Values.commonLabels }} - {{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }} - {{- end }} + labels: {{- include "common.labels.standard" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }} {{- if .Values.commonAnnotations }} annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }} {{- end }} spec: type: ClusterIP clusterIP: None - selector: {{- include "common.labels.matchLabels" . | nindent 4 }} + selector: {{- include "common.labels.matchLabels" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }} {{- end }} diff --git a/bitnami/mxnet/templates/distributed/scheduler/deployment.yaml b/bitnami/mxnet/templates/distributed/scheduler/deployment.yaml index c49de168cc..9c4a51a057 100644 --- a/bitnami/mxnet/templates/distributed/scheduler/deployment.yaml +++ b/bitnami/mxnet/templates/distributed/scheduler/deployment.yaml @@ -9,11 +9,8 @@ kind: Deployment metadata: name: {{ printf "%s-scheduler" (include "common.names.fullname" .) }} namespace: {{ include "common.names.namespace" . | quote }} - labels: {{- include "common.labels.standard" . | nindent 4 }} + labels: {{- include "common.labels.standard" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }} app.kubernetes.io/component: scheduler - {{- if .Values.commonLabels }} - {{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }} - {{- end }} {{- if .Values.commonAnnotations }} annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }} {{- end }} @@ -22,18 +19,16 @@ spec: {{- if .Values.scheduler.updateStrategy }} strategy: {{- toYaml .Values.scheduler.updateStrategy | nindent 4 }} {{- end }} + {{- $podLabels := merge .Values.scheduler.podLabels .Values.commonLabels }} selector: - matchLabels: {{- include "common.labels.matchLabels" . | nindent 6 }} + matchLabels: {{- include "common.labels.matchLabels" ( dict "customLabels" $podLabels "context" $ ) | nindent 6 }} template: metadata: {{- if .Values.scheduler.podAnnotations }} annotations: {{- include "common.tplvalues.render" (dict "value" .Values.scheduler.podAnnotations "context" $) | nindent 8 }} {{- end }} - labels: {{- include "common.labels.standard" . | nindent 8 }} + labels: {{- include "common.labels.standard" ( dict "customLabels" $podLabels "context" $ ) | nindent 8 }} app.kubernetes.io/component: scheduler - {{- if .Values.scheduler.podLabels }} - {{- include "common.tplvalues.render" (dict "value" .Values.scheduler.podLabels "context" $) | nindent 8 }} - {{- end }} spec: {{- include "mxnet.imagePullSecrets" . | nindent 6 }} {{- if .Values.scheduler.hostAliases }} @@ -43,8 +38,8 @@ spec: affinity: {{- include "common.tplvalues.render" (dict "value" .Values.scheduler.affinity "context" $) | nindent 8 }} {{- else }} affinity: - podAffinity: {{- include "common.affinities.pods" (dict "type" .Values.scheduler.podAffinityPreset "component" "scheduler" "context" $) | nindent 10 }} - podAntiAffinity: {{- include "common.affinities.pods" (dict "type" .Values.scheduler.podAntiAffinityPreset "component" "scheduler" "context" $) | nindent 10 }} + podAffinity: {{- include "common.affinities.pods" (dict "type" .Values.scheduler.podAffinityPreset "component" "scheduler" "customLabels" $podLabels "context" $) | nindent 10 }} + podAntiAffinity: {{- include "common.affinities.pods" (dict "type" .Values.scheduler.podAntiAffinityPreset "component" "scheduler" "customLabels" $podLabels "context" $) | nindent 10 }} nodeAffinity: {{- include "common.affinities.nodes" (dict "type" .Values.scheduler.nodeAffinityPreset.type "key" .Values.scheduler.nodeAffinityPreset.key "values" .Values.scheduler.nodeAffinityPreset.values) | nindent 10 }} {{- end }} {{- if .Values.scheduler.nodeSelector }} diff --git a/bitnami/mxnet/templates/distributed/scheduler/service.yaml b/bitnami/mxnet/templates/distributed/scheduler/service.yaml index 2006ad0426..a974b4ac94 100644 --- a/bitnami/mxnet/templates/distributed/scheduler/service.yaml +++ b/bitnami/mxnet/templates/distributed/scheduler/service.yaml @@ -9,18 +9,12 @@ kind: Service metadata: name: {{ printf "%s-scheduler" (include "common.names.fullname" .) }} namespace: {{ include "common.names.namespace" . | quote }} - labels: {{- include "common.labels.standard" . | nindent 4 }} + labels: {{- include "common.labels.standard" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }} app.kubernetes.io/component: scheduler - {{- if .Values.commonLabels }} - {{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }} - {{- end }} - annotations: - {{- if .Values.commonAnnotations }} - {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }} - {{- end }} - {{- if .Values.scheduler.service.annotations }} - {{- include "common.tplvalues.render" ( dict "value" .Values.scheduler.service.annotations "context" $) | nindent 4 }} - {{- end }} + {{- if or .Values.scheduler.service.annotations .Values.commonAnnotations }} + {{- $annotations := merge .Values.scheduler.service.annotations .Values.commonAnnotations }} + annotations: {{- include "common.tplvalues.render" ( dict "value" $annotations "context" $) | nindent 4 }} + {{- end }} spec: type: {{ .Values.scheduler.service.type }} {{- if and .Values.scheduler.service.clusterIP (eq .Values.scheduler.service.type "ClusterIP") }} @@ -53,6 +47,7 @@ spec: {{- if .Values.scheduler.service.extraPorts }} {{- include "common.tplvalues.render" (dict "value" .Values.scheduler.service.extraPorts "context" $) | nindent 4 }} {{- end }} - selector: {{- include "common.labels.matchLabels" . | nindent 4 }} + {{- $podLabels := merge .Values.scheduler.podLabels .Values.commonLabels }} + selector: {{- include "common.labels.matchLabels" ( dict "customLabels" $podLabels "context" $ ) | nindent 4 }} app.kubernetes.io/component: scheduler {{- end }} diff --git a/bitnami/mxnet/templates/distributed/server/statefulset.yaml b/bitnami/mxnet/templates/distributed/server/statefulset.yaml index 7d47f07604..81a2e4f86f 100644 --- a/bitnami/mxnet/templates/distributed/server/statefulset.yaml +++ b/bitnami/mxnet/templates/distributed/server/statefulset.yaml @@ -9,11 +9,8 @@ kind: StatefulSet metadata: name: {{ printf "%s-server" (include "common.names.fullname" .) }} namespace: {{ include "common.names.namespace" . | quote }} - labels: {{- include "common.labels.standard" . | nindent 4 }} + labels: {{- include "common.labels.standard" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }} app.kubernetes.io/component: server - {{- if .Values.commonLabels }} - {{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }} - {{- end }} {{- if .Values.commonAnnotations }} annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }} {{- end }} @@ -23,8 +20,9 @@ spec: updateStrategy: {{- toYaml .Values.server.updateStrategy | nindent 4 }} {{- end }} podManagementPolicy: {{ .Values.server.podManagementPolicy }} + {{- $podLabels := merge .Values.server.podLabels .Values.commonLabels }} selector: - matchLabels: {{- include "common.labels.matchLabels" . | nindent 6 }} + matchLabels: {{- include "common.labels.matchLabels" ( dict "customLabels" $podLabels "context" $ ) | nindent 6 }} app.kubernetes.io/component: server serviceName: {{ printf "%s-headless" (include "common.names.fullname" .) }} template: @@ -32,19 +30,16 @@ spec: {{- if .Values.server.podAnnotations }} annotations: {{- include "common.tplvalues.render" (dict "value" .Values.server.podAnnotations "context" $) | nindent 8 }} {{- end }} - labels: {{- include "common.labels.standard" . | nindent 8 }} + labels: {{- include "common.labels.standard" ( dict "customLabels" $podLabels "context" $ ) | nindent 8 }} app.kubernetes.io/component: server - {{- if .Values.server.podLabels }} - {{- include "common.tplvalues.render" (dict "value" .Values.server.podLabels "context" $) | nindent 8 }} - {{- end }} spec: {{- include "mxnet.imagePullSecrets" . | nindent 6 }} {{- if .Values.server.affinity }} affinity: {{- include "common.tplvalues.render" (dict "value" .Values.server.affinity "context" $) | nindent 8 }} {{- else }} affinity: - podAffinity: {{- include "common.affinities.pods" (dict "type" .Values.server.podAffinityPreset "component" "server" "context" $) | nindent 10 }} - podAntiAffinity: {{- include "common.affinities.pods" (dict "type" .Values.server.podAntiAffinityPreset "component" "server" "context" $) | nindent 10 }} + podAffinity: {{- include "common.affinities.pods" (dict "type" .Values.server.podAffinityPreset "component" "server" "customLabels" $podLabels "context" $) | nindent 10 }} + podAntiAffinity: {{- include "common.affinities.pods" (dict "type" .Values.server.podAntiAffinityPreset "component" "server" "customLabels" $podLabels "context" $) | nindent 10 }} nodeAffinity: {{- include "common.affinities.nodes" (dict "type" .Values.server.nodeAffinityPreset.type "key" .Values.server.nodeAffinityPreset.key "values" .Values.server.nodeAffinityPreset.values) | nindent 10 }} {{- end }} {{- if .Values.server.hostAliases }} @@ -251,15 +246,12 @@ spec: volumeClaimTemplates: - metadata: name: data - annotations: - {{- if .Values.persistence.annotations }} - {{- include "common.tplvalues.render" (dict "value" .Values.persistence.annotations "context" $) | nindent 10 }} - {{- end }} - {{- if .Values.commonAnnotations }} - {{- include "common.tplvalues.render" (dict "value" .Values.commonAnnotations "context" $) | nindent 10 }} - {{- end }} + {{- if or .Values.persistence.annotations .Values.commonAnnotations }} + {{- $claimAnnotations := merge .Values.persistence.annotations .Values.commonAnnotations }} + annotations: {{- include "common.tplvalues.render" ( dict "value" $claimAnnotations "context" $) | nindent 4 }} + {{- end }} {{- if .Values.commonLabels }} - labels: {{- include "common.tplvalues.render" (dict "value" .Values.commonLabels "context" $) | nindent 10 }} + labels: {{- include "common.labels.matchLabels" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 10 }} {{- end }} spec: accessModes: diff --git a/bitnami/mxnet/templates/distributed/worker/statefulset.yaml b/bitnami/mxnet/templates/distributed/worker/statefulset.yaml index eee5727951..d2b89519ee 100644 --- a/bitnami/mxnet/templates/distributed/worker/statefulset.yaml +++ b/bitnami/mxnet/templates/distributed/worker/statefulset.yaml @@ -9,11 +9,8 @@ kind: StatefulSet metadata: name: {{ printf "%s-worker" (include "common.names.fullname" .) }} namespace: {{ include "common.names.namespace" . | quote }} - labels: {{- include "common.labels.standard" . | nindent 4 }} + labels: {{- include "common.labels.standard" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }} app.kubernetes.io/component: worker - {{- if .Values.commonLabels }} - {{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }} - {{- end }} {{- if .Values.commonAnnotations }} annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }} {{- end }} @@ -24,27 +21,25 @@ spec: updateStrategy: {{- toYaml .Values.worker.updateStrategy | nindent 4 }} {{- end }} serviceName: {{ printf "%s-headless" (include "common.names.fullname" .) }} + {{- $podLabels := merge .Values.worker.podLabels .Values.commonLabels }} selector: - matchLabels: {{- include "common.labels.matchLabels" . | nindent 6 }} + matchLabels: {{- include "common.labels.matchLabels" ( dict "customLabels" $podLabels "context" $ ) | nindent 6 }} app.kubernetes.io/component: worker template: metadata: {{- if .Values.worker.podAnnotations }} annotations: {{- include "common.tplvalues.render" (dict "value" .Values.worker.podAnnotations "context" $) | nindent 8 }} {{- end }} - labels: {{- include "common.labels.standard" . | nindent 8 }} + labels: {{- include "common.labels.standard" ( dict "customLabels" $podLabels "context" $ ) | nindent 8 }} app.kubernetes.io/component: worker - {{- if .Values.worker.podLabels }} - {{- include "common.tplvalues.render" (dict "value" .Values.worker.podLabels "context" $) | nindent 8 }} - {{- end }} spec: {{- include "mxnet.imagePullSecrets" . | nindent 6 }} {{- if .Values.worker.affinity }} affinity: {{- include "common.tplvalues.render" (dict "value" .Values.worker.affinity "context" $) | nindent 8 }} {{- else }} affinity: - podAffinity: {{- include "common.affinities.pods" (dict "type" .Values.worker.podAffinityPreset "component" "worker" "context" $) | nindent 10 }} - podAntiAffinity: {{- include "common.affinities.pods" (dict "type" .Values.worker.podAntiAffinityPreset "component" "worker" "context" $) | nindent 10 }} + podAffinity: {{- include "common.affinities.pods" (dict "type" .Values.worker.podAffinityPreset "component" "worker" "customLabels" $podLabels "context" $) | nindent 10 }} + podAntiAffinity: {{- include "common.affinities.pods" (dict "type" .Values.worker.podAntiAffinityPreset "component" "worker" "customLabels" $podLabels "context" $) | nindent 10 }} nodeAffinity: {{- include "common.affinities.nodes" (dict "type" .Values.worker.nodeAffinityPreset.type "key" .Values.worker.nodeAffinityPreset.key "values" .Values.worker.nodeAffinityPreset.values) | nindent 10 }} {{- end }} {{- if .Values.worker.hostAliases }} @@ -249,15 +244,12 @@ spec: volumeClaimTemplates: - metadata: name: data - annotations: - {{- if .Values.persistence.annotations }} - {{- include "common.tplvalues.render" (dict "value" .Values.persistence.annotations "context" $) | nindent 10 }} - {{- end }} - {{- if .Values.commonAnnotations }} - {{- include "common.tplvalues.render" (dict "value" .Values.commonAnnotations "context" $) | nindent 10 }} - {{- end }} + {{- if or .Values.persistence.annotations .Values.commonAnnotations }} + {{- $claimAnnotations := merge .Values.persistence.annotations .Values.commonAnnotations }} + annotations: {{- include "common.tplvalues.render" ( dict "value" $claimAnnotations "context" $) | nindent 4 }} + {{- end }} {{- if .Values.commonLabels }} - labels: {{- include "common.tplvalues.render" (dict "value" .Values.commonLabels "context" $) | nindent 10 }} + labels: {{- include "common.labels.matchLabels" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 10 }} {{- end }} spec: accessModes: diff --git a/bitnami/mxnet/templates/pvc.yaml b/bitnami/mxnet/templates/pvc.yaml index 480413db4a..2b873f2e56 100644 --- a/bitnami/mxnet/templates/pvc.yaml +++ b/bitnami/mxnet/templates/pvc.yaml @@ -13,18 +13,10 @@ metadata: name: {{ printf "%s-scheduler" (include "common.names.fullname" .) }} {{- end }} namespace: {{ include "common.names.namespace" . | quote }} - labels: {{- include "common.labels.standard" . | nindent 4 }} - {{- if .Values.commonLabels }} - {{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }} - {{- end }} + labels: {{- include "common.labels.standard" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }} {{- if or .Values.persistence.annotations .Values.commonAnnotations }} - annotations: - {{- if .Values.persistence.annotations }} - {{- include "common.tplvalues.render" ( dict "value" .Values.persistence.annotations "context" $ ) | nindent 4 }} - {{- end }} - {{- if .Values.commonAnnotations }} - {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }} - {{- end }} + {{- $annotations := merge .Values.persistence.annotations .Values.commonAnnotations }} + annotations: {{- include "common.tplvalues.render" ( dict "value" $annotations "context" $) | nindent 4 }} {{- end }} spec: accessModes: diff --git a/bitnami/mxnet/templates/standalone/deployment.yaml b/bitnami/mxnet/templates/standalone/deployment.yaml index 821901363e..71e01c0184 100644 --- a/bitnami/mxnet/templates/standalone/deployment.yaml +++ b/bitnami/mxnet/templates/standalone/deployment.yaml @@ -9,11 +9,8 @@ kind: Deployment metadata: name: {{ include "common.names.fullname" . }} namespace: {{ include "common.names.namespace" . | quote }} - labels: {{- include "common.labels.standard" . | nindent 4 }} + labels: {{- include "common.labels.standard" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }} app.kubernetes.io/component: standalone - {{- if .Values.commonLabels }} - {{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }} - {{- end }} {{- if .Values.commonAnnotations }} annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }} {{- end }} @@ -22,19 +19,17 @@ spec: {{- if .Values.standalone.updateStrategy }} strategy: {{- toYaml .Values.standalone.updateStrategy | nindent 6 }} {{- end }} + {{- $podLabels := merge .Values.standalone.podLabels .Values.commonLabels }} selector: - matchLabels: {{- include "common.labels.matchLabels" . | nindent 6 }} + matchLabels: {{- include "common.labels.matchLabels" ( dict "customLabels" $podLabels "context" $ ) | nindent 6 }} app.kubernetes.io/component: standalone template: metadata: {{- if .Values.standalone.podAnnotations }} annotations: {{- include "common.tplvalues.render" (dict "value" .Values.standalone.podAnnotations "context" $) | nindent 8 }} {{- end }} - labels: {{- include "common.labels.standard" . | nindent 8 }} + labels: {{- include "common.labels.standard" ( dict "customLabels" $podLabels "context" $ ) | nindent 8 }} app.kubernetes.io/component: standalone - {{- if .Values.standalone.podLabels }} - {{- include "common.tplvalues.render" (dict "value" .Values.standalone.podLabels "context" $) | nindent 8 }} - {{- end }} spec: {{- include "mxnet.imagePullSecrets" . | nindent 6 }} {{- if .Values.standalone.hostAliases }} @@ -44,8 +39,8 @@ spec: affinity: {{- include "common.tplvalues.render" ( dict "value" .Values.standalone.affinity "context" $) | nindent 8 }} {{- else }} affinity: - podAffinity: {{- include "common.affinities.pods" (dict "type" .Values.standalone.podAffinityPreset "context" $) | nindent 10 }} - podAntiAffinity: {{- include "common.affinities.pods" (dict "type" .Values.standalone.podAntiAffinityPreset "context" $) | nindent 10 }} + podAffinity: {{- include "common.affinities.pods" (dict "type" .Values.standalone.podAffinityPreset "customLabels" $podLabels "context" $) | nindent 10 }} + podAntiAffinity: {{- include "common.affinities.pods" (dict "type" .Values.standalone.podAntiAffinityPreset "customLabels" $podLabels "context" $) | nindent 10 }} nodeAffinity: {{- include "common.affinities.nodes" (dict "type" .Values.standalone.nodeAffinityPreset.type "key" .Values.standalone.nodeAffinityPreset.key "values" .Values.standalone.nodeAffinityPreset.values) | nindent 10 }} {{- end }} {{- if .Values.standalone.nodeSelector }}