Skip to content

Commit c2e64cc

Browse files
committed
fix: add template for generating node-agent name
1 parent bb88989 commit c2e64cc

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

charts/velero/templates/_helpers.tpl

+7
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,13 @@ Create the Velero priority class name.
6464
{{- end -}}
6565
{{- end -}}
6666

67+
{{/*
68+
Create the name of the node agent.
69+
*/}}
70+
{{- define "velero.nodeAgent" -}}
71+
{{ default (printf "%s-%s" (include "velero.fullname" .) "node-agent") .Values.serviceAccount.server.name }}
72+
{{- end -}}
73+
6774
{{/*
6875
Create the node-Agent priority class name.
6976
*/}}

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
apiVersion: apps/v1
55
kind: DaemonSet
66
metadata:
7-
name: node-agent
7+
name: {{ include "velero.nodeAgent" . }}
88
namespace: {{ .Release.Namespace }}
99
{{- with .Values.nodeAgent.annotations }}
1010
annotations:

0 commit comments

Comments
 (0)