From b647d471c1c1244522116369ba7cf57d70fe4849 Mon Sep 17 00:00:00 2001 From: Waqar Ahmed Date: Fri, 5 Feb 2021 17:14:05 +0500 Subject: [PATCH] Update minio deployment labels to be backwards compatible --- test/minio/1.1.0/templates/deployment.yaml | 27 +++++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) diff --git a/test/minio/1.1.0/templates/deployment.yaml b/test/minio/1.1.0/templates/deployment.yaml index 004a86e4f5..ae397ed840 100644 --- a/test/minio/1.1.0/templates/deployment.yaml +++ b/test/minio/1.1.0/templates/deployment.yaml @@ -1,7 +1,28 @@ {{ $scheme := "http" }} -{{ include "common.deployment.common_config" . | nindent 0 }} -spec: {{ include "common.deployment.common_spec" . | nindent 2 }} - template: {{ include "common.deployment.pod.metadata" . | nindent 4 }} +apiVersion: {{ template "common.capabilities.deployment.apiVersion" . }} +kind: Deployment +metadata: + name: {{ template "common.names.fullname" . }} + labels: + app: {{ template "common.names.name" . }} + chart: {{ template "common.names.chart" . }} + release: {{ .Release.Name }} + heritage: {{ .Release.Service }} +spec: + replicas: {{ (default 1 .Values.replicas) }} + strategy: + type: {{ (default "Recreate" .Values.updateStrategy ) }} + selector: + matchLabels: + app: {{ template "common.names.name" . }} + release: {{ .Release.Name }} + template: + metadata: + name: {{ template "common.names.fullname" . }} + labels: + app: {{ template "common.names.name" . }} + release: {{ .Release.Name }} + annotations: {{ include "common.annotations" . | nindent 8 }} spec: serviceAccountName: {{ include "common.names.serviceAccountName" . | quote }} containers: