Skip to content

Commit 03fe11e

Browse files
author
Veiko Kukk
committed
Fix node-agent daemonset annotations
1 parent fcc60b0 commit 03fe11e

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

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

+2-6
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,6 @@ kind: DaemonSet
66
metadata:
77
name: node-agent
88
namespace: {{ .Release.Namespace }}
9-
{{- with .Values.nodeAgent.annotations }}
10-
annotations:
11-
{{- toYaml . | nindent 4 }}
12-
{{- end }}
139
labels:
1410
app.kubernetes.io/name: {{ include "velero.name" . }}
1511
app.kubernetes.io/instance: {{ .Release.Name }}
@@ -33,9 +29,9 @@ spec:
3329
{{- if .Values.podLabels }}
3430
{{- toYaml .Values.podLabels | nindent 8 }}
3531
{{- end }}
36-
{{- if or .Values.podAnnotations .Values.metrics.enabled (and .Values.credentials.useSecret (not .Values.credentials.existingSecret)) }}
32+
{{- if or .Values.nodeAgent.annotations .Values.metrics.enabled (and .Values.credentials.useSecret (not .Values.credentials.existingSecret)) }}
3733
annotations:
38-
{{- with .Values.podAnnotations }}
34+
{{- with .Values.nodeAgent.annotations }}
3935
{{- toYaml . | nindent 8 }}
4036
{{- end }}
4137
{{- if and (.Values.metrics.enabled) (not .Values.metrics.nodeAgentPodMonitor.enabled) }}

0 commit comments

Comments
 (0)