Skip to content

Commit ebd6bdd

Browse files
Zvikanznadav
andauthored
Add velero (#113)
Co-authored-by: znadav <[email protected]>
1 parent 5bd210c commit ebd6bdd

File tree

3 files changed

+56
-0
lines changed

3 files changed

+56
-0
lines changed

add-ons/velero/Chart.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
apiVersion: v2
2+
name: velero
3+
description: A Helm chart for Velero
4+
5+
# Application charts are a collection of templates that can be packaged into versioned archives
6+
# to be deployed.
7+
type: application
8+
9+
# The chart version. This version number should be incremented each time you make changes
10+
# to the chart and its templates, including the app version.
11+
version: 0.1.0
12+
13+
# Version number of the application being deployed. This version number should be
14+
# incremented each time you make changes to the application.
15+
appVersion: "1.0"
16+
17+
dependencies:
18+
- name: velero
19+
version: 2.32.1
20+
repository: https://vmware-tanzu.github.io/helm-charts/

chart/templates/velero.yaml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{{- if and (.Values.traefik) (.Values.traefik.enable) -}}
2+
apiVersion: argoproj.io/v1alpha1
3+
kind: Application
4+
metadata:
5+
name: velero
6+
namespace: argocd
7+
finalizers:
8+
- resources-finalizer.argocd.argoproj.io
9+
spec:
10+
project: default
11+
source:
12+
repoURL: {{ .Values.repoUrl }}
13+
path: add-ons/velero
14+
targetRevision: {{ .Values.targetRevision }}
15+
helm:
16+
values: |
17+
velero:
18+
{{- toYaml .Values.velero | nindent 10 }}
19+
destination:
20+
server: https://kubernetes.default.svc
21+
namespace: velero
22+
syncPolicy:
23+
automated:
24+
prune: true
25+
syncOptions:
26+
- CreateNamespace=true
27+
retry:
28+
limit: 1
29+
backoff:
30+
duration: 5s
31+
factor: 2
32+
maxDuration: 1m
33+
{{- end -}}

chart/values.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,3 +218,6 @@ reporter:
218218
# NVIDIA Device Plugin Values
219219
nvidiaDevicePlugin:
220220
enable: false
221+
222+
velero:
223+
enable: false

0 commit comments

Comments
 (0)