Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[velero]: add template for generating node-agent with prefix of release name #599

Closed
wants to merge 5 commits into from
Closed
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions charts/velero/Chart.yaml
Original file line number Diff line number Diff line change
@@ -3,11 +3,11 @@ appVersion: 1.14.0
kubeVersion: ">=1.16.0-0"
description: A Helm chart for velero
name: velero
version: 7.1.0
version: 7.2.0
home: https://github.com/vmware-tanzu/velero
icon: https://cdn-images-1.medium.com/max/1600/1*-9mb3AKnKdcL_QD3CMnthQ.png
sources:
- https://github.com/vmware-tanzu/velero
- https://github.com/vmware-tanzu/velero
maintainers:
- name: jenting
email: hsiaoairplane@gmail.com
7 changes: 7 additions & 0 deletions charts/velero/templates/_helpers.tpl
Original file line number Diff line number Diff line change
@@ -64,6 +64,13 @@ Create the Velero priority class name.
{{- end -}}
{{- end -}}

{{/*
Create the name of the node agent.
*/}}
{{- define "velero.nodeAgent" -}}
{{ default (printf "%s-%s" (include "velero.fullname" .) "node-agent") .Values.serviceAccount.server.name }}
{{- end -}}

{{/*
Create the node-Agent priority class name.
*/}}
2 changes: 1 addition & 1 deletion charts/velero/templates/node-agent-daemonset.yaml
Original file line number Diff line number Diff line change
@@ -4,7 +4,7 @@
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: node-agent
name: {{ include "velero.nodeAgent" . }}
namespace: {{ .Release.Namespace }}
{{- with .Values.nodeAgent.annotations }}
annotations: