Skip to content

Commit

Permalink
Fix node-agent daemonset annotations
Browse files Browse the repository at this point in the history
Signed-off-by: Veiko Kukk <[email protected]>
  • Loading branch information
Veiko Kukk committed Jan 28, 2025
1 parent fcc60b0 commit b4db6c0
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions charts/velero/templates/node-agent-daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@ kind: DaemonSet
metadata:
name: node-agent
namespace: {{ .Release.Namespace }}
{{- with .Values.nodeAgent.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
labels:
app.kubernetes.io/name: {{ include "velero.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
Expand All @@ -33,9 +29,9 @@ spec:
{{- if .Values.podLabels }}
{{- toYaml .Values.podLabels | nindent 8 }}
{{- end }}
{{- if or .Values.podAnnotations .Values.metrics.enabled (and .Values.credentials.useSecret (not .Values.credentials.existingSecret)) }}
{{- if or .Values.nodeAgent.annotations .Values.metrics.enabled (and .Values.credentials.useSecret (not .Values.credentials.existingSecret)) }}
annotations:
{{- with .Values.podAnnotations }}
{{- with .Values.nodeAgent.annotations }}
{{- toYaml . | nindent 8 }}
{{- end }}
{{- if and (.Values.metrics.enabled) (not .Values.metrics.nodeAgentPodMonitor.enabled) }}
Expand Down

0 comments on commit b4db6c0

Please sign in to comment.