diff --git a/test/minio/1.1.0/templates/deployment.yaml b/test/minio/1.1.0/templates/deployment.yaml index ae397ed840..aed4ad032b 100644 --- a/test/minio/1.1.0/templates/deployment.yaml +++ b/test/minio/1.1.0/templates/deployment.yaml @@ -22,6 +22,7 @@ spec: labels: app: {{ template "common.names.name" . }} release: {{ .Release.Name }} + {{- include "common.labels.selectorLabels" . | nindent 8 }} annotations: {{ include "common.annotations" . | nindent 8 }} spec: serviceAccountName: {{ include "common.names.serviceAccountName" . | quote }} diff --git a/test/minio/1.1.0/templates/service.yaml b/test/minio/1.1.0/templates/service.yaml index e27c62a9e7..34e44be851 100644 --- a/test/minio/1.1.0/templates/service.yaml +++ b/test/minio/1.1.0/templates/service.yaml @@ -1,6 +1,10 @@ {{ $svc := .Values.service }} +{{ $selectors := list }} +{{ $selectors = mustAppend $selectors (dict "key" "app" "value" (include "common.names.name" .) ) }} +{{ $selectors = mustAppend $selectors (dict "key" "release" "value" .Release.Name ) }} {{ $ports := list }} {{ $ports = mustAppend $ports (dict "name" "http" "port" $svc.nodePort "nodePort" $svc.nodePort "targetPort" 9000) }} {{ $params := . }} {{ $_ := set $params "commonService" (dict "type" "NodePort" "ports" $ports ) }} +{{ $_1 := set .Values "extraSelectorLabels" $selectors }} {{ include "common.classes.service" $params }}