diff --git a/charts/minio/templates/minio-deployment.yaml b/charts/minio/templates/minio-deployment.yaml index 70a2942..b3388d8 100644 --- a/charts/minio/templates/minio-deployment.yaml +++ b/charts/minio/templates/minio-deployment.yaml @@ -17,12 +17,6 @@ spec: labels: app: minio spec: - {{- if (hasKey .Values.storage "nodeSelector") -}} - {{- if (hasKey .Values.storage.nodeSelector "app") -}} - nodeSelector: - app: {{ .Values.storage.nodeSelector.app }} - {{- end }} - {{- end }} containers: - command: - bash @@ -58,4 +52,10 @@ spec: - name: minio-claim0 persistentVolumeClaim: claimName: minio-claim0 + {{ if (hasKey .Values.storage "nodeSelector") }} + {{ if (hasKey .Values.storage.nodeSelector "app") }} + nodeSelector: + app: {{ .Values.storage.nodeSelector.app }} + {{ end }} + {{ end }} status: {}