fix: pdb selector by component (#21654)

Signed-off-by: Sergio Millan Rodriguez <sergio.rodriguez@ticketmaster.co.uk>
This commit is contained in:
Sergio Millan
2020-03-30 09:33:54 -07:00
committed by GitHub
parent 6c85be7b88
commit 59556e8a76
2 changed files with 5 additions and 3 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
apiVersion: v1
name: nginx-ingress
version: 1.34.2
version: 1.34.3
appVersion: 0.30.0
home: https://github.com/kubernetes/ingress-nginx
description: An nginx Ingress controller that uses ConfigMap to store the nginx configuration.
@@ -5,7 +5,7 @@ metadata:
labels:
app: {{ template "nginx-ingress.name" . }}
chart: {{ template "nginx-ingress.chart" . }}
component: "{{ .Values.controller.name }}"
app.kubernetes.io/component: controller
heritage: {{ .Release.Service }}
release: {{ .Release.Name }}
name: {{ template "nginx-ingress.controller.fullname" . }}
@@ -14,6 +14,8 @@ spec:
matchLabels:
app: {{ template "nginx-ingress.name" . }}
release: {{ .Release.Name }}
component: "{{ .Values.controller.name }}"
{{- if .Values.controller.useComponentLabel }}
app.kubernetes.io/component: controller
{{- end }}
minAvailable: {{ .Values.controller.minAvailable }}
{{- end }}