From ff5a5c1ee08af4e701e2390cd3273a93d13237c9 Mon Sep 17 00:00:00 2001 From: Denis Krivenko Date: Fri, 22 Jul 2022 19:25:41 +0200 Subject: [PATCH] helm: Add runtimeClassName support to vanilla helm chart (#15385) --- helm/minio/templates/deployment.yaml | 7 +++++-- helm/minio/templates/statefulset.yaml | 3 +++ helm/minio/values.yaml | 5 +++++ 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/helm/minio/templates/deployment.yaml b/helm/minio/templates/deployment.yaml index a06bc3566..0b2173c4d 100644 --- a/helm/minio/templates/deployment.yaml +++ b/helm/minio/templates/deployment.yaml @@ -52,9 +52,12 @@ spec: {{ toYaml .Values.podAnnotations | trimSuffix "\n" | indent 8 }} {{- end }} spec: - {{- if .Values.priorityClassName }} + {{- if .Values.priorityClassName }} priorityClassName: "{{ .Values.priorityClassName }}" - {{- end }} + {{- end }} + {{- if .Values.runtimeClassName }} + runtimeClassName: "{{ .Values.runtimeClassName }}" + {{- end }} {{- if and .Values.securityContext.enabled .Values.persistence.enabled }} securityContext: runAsUser: {{ .Values.securityContext.runAsUser }} diff --git a/helm/minio/templates/statefulset.yaml b/helm/minio/templates/statefulset.yaml index 4965899b1..d296e74eb 100644 --- a/helm/minio/templates/statefulset.yaml +++ b/helm/minio/templates/statefulset.yaml @@ -84,6 +84,9 @@ spec: {{- if .Values.priorityClassName }} priorityClassName: "{{ .Values.priorityClassName }}" {{- end }} + {{- if .Values.runtimeClassName }} + runtimeClassName: "{{ .Values.runtimeClassName }}" + {{- end }} {{- if and .Values.securityContext.enabled .Values.persistence.enabled }} securityContext: runAsUser: {{ .Values.securityContext.runAsUser }} diff --git a/helm/minio/values.yaml b/helm/minio/values.yaml index f6128d2dd..fa23381b5 100644 --- a/helm/minio/values.yaml +++ b/helm/minio/values.yaml @@ -69,6 +69,11 @@ StatefulSetUpdate: ## priorityClassName: "" +## Pod runtime class name +## ref https://kubernetes.io/docs/concepts/containers/runtime-class/ +## +runtimeClassName: "" + ## Set default rootUser, rootPassword ## AccessKey and secretKey is generated when not set ## Distributed MinIO ref: https://docs.minio.io/docs/distributed-minio-quickstart-guide