Fix Deployment of Flagger loadtester to include the correct label

The Deployment of the Flagger loadtester did not contain the correct
label app.kubernetes.io/name. This label is used for the Flagger
deployment and it is also used in the PodDisruptionBudget for
the Flagger operator. I added the same label to the Flagger
load tester to make the PodDisruptionBudget work correctly
for the Flagger loadtester.

Signed-off-by: Marcus Rodan <marcusrodan@gmail.com>
This commit is contained in:
Marcus Rodan
2021-04-28 10:59:18 +02:00
parent 3e845f1a29
commit 392865ec59
+3 -2
View File
@@ -16,6 +16,7 @@ spec:
metadata: metadata:
labels: labels:
app: {{ include "loadtester.name" . }} app: {{ include "loadtester.name" . }}
app.kubernetes.io/name: {{ include "loadtester.name" . }}
annotations: annotations:
appmesh.k8s.aws/ports: "444" appmesh.k8s.aws/ports: "444"
{{- if .Values.podAnnotations }} {{- if .Values.podAnnotations }}
@@ -29,7 +30,7 @@ spec:
{{- end }} {{- end }}
{{- if .Values.podPriorityClassName }} {{- if .Values.podPriorityClassName }}
priorityClassName: {{ .Values.podPriorityClassName }} priorityClassName: {{ .Values.podPriorityClassName }}
{{- end }} {{- end }}
containers: containers:
- name: {{ .Chart.Name }} - name: {{ .Chart.Name }}
{{- if .Values.securityContext.enabled }} {{- if .Values.securityContext.enabled }}
@@ -69,7 +70,7 @@ spec:
{{- if .Values.env }} {{- if .Values.env }}
env: env:
{{- toYaml .Values.env | nindent 12 }} {{- toYaml .Values.env | nindent 12 }}
{{- end }} {{- end }}
resources: resources:
{{- toYaml .Values.resources | nindent 12 }} {{- toYaml .Values.resources | nindent 12 }}
{{- with .Values.nodeSelector }} {{- with .Values.nodeSelector }}