Skip to content

Commit 2cf0408

Browse files
authored
Merge pull request #623 from foyerunix/fix-node-agent-pod-labels
2 parents fcc60b0 + 3fa8611 commit 2cf0408

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

charts/velero/Chart.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ appVersion: 1.15.2
33
kubeVersion: ">=1.16.0-0"
44
description: A Helm chart for velero
55
name: velero
6-
version: 8.3.0
6+
version: 8.4.0
77
home: https://github.com/vmware-tanzu/velero
88
icon: https://cdn-images-1.medium.com/max/1600/1*-9mb3AKnKdcL_QD3CMnthQ.png
99
sources:

charts/velero/templates/node-agent-daemonset.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ spec:
3030
app.kubernetes.io/instance: {{ .Release.Name }}
3131
app.kubernetes.io/managed-by: {{ .Release.Service }}
3232
helm.sh/chart: {{ include "velero.chart" . }}
33-
{{- if .Values.podLabels }}
34-
{{- toYaml .Values.podLabels | nindent 8 }}
33+
{{- if .Values.nodeAgent.podLabels }}
34+
{{- toYaml .Values.nodeAgent.podLabels | nindent 8 }}
3535
{{- end }}
3636
{{- if or .Values.podAnnotations .Values.metrics.enabled (and .Values.credentials.useSecret (not .Values.credentials.existingSecret)) }}
3737
annotations:

charts/velero/templates/podmonitor.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ spec:
2727
app.kubernetes.io/name: {{ include "velero.name" . }}
2828
app.kubernetes.io/instance: {{ .Release.Name }}
2929
name: node-agent
30-
{{- with .Values.nodeAgent.labels }}
30+
{{- with .Values.nodeAgent.podLabels }}
3131
{{- toYaml . | nindent 6 }}
3232
{{- end }}
3333
podMetricsEndpoints:

charts/velero/values.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -557,6 +557,10 @@ nodeAgent:
557557
# labels to set for the node-agent daemonset. Optional.
558558
labels: {}
559559

560+
# Additional pod labels for the node-agent daemonset. Optional
561+
# ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
562+
podLabels: {}
563+
560564
# will map /scratch to emptyDir. Set to false and specify your own volume
561565
# via extraVolumes and extraVolumeMounts that maps to /scratch
562566
# if you don't want to use emptyDir.

0 commit comments

Comments
 (0)