Skip to content

Commit ab14c00

Browse files
authored
Merge pull request #583 from tuusberg/issue-582
[velero] feat(issue-582): Allow annotating VolumeSnapshotLocation/BackupStorageLocation resources
2 parents be88111 + 7afe30b commit ab14c00

File tree

4 files changed

+19
-1
lines changed

4 files changed

+19
-1
lines changed

charts/velero/Chart.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ appVersion: 1.13.2
33
kubeVersion: ">=1.16.0-0"
44
description: A Helm chart for velero
55
name: velero
6-
version: 6.4.0
6+
version: 6.5.0
77
home: https://github.com/vmware-tanzu/velero
88
icon: https://cdn-images-1.medium.com/max/1600/1*-9mb3AKnKdcL_QD3CMnthQ.png
99
sources:

charts/velero/templates/backupstoragelocation.yaml

+6
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@ kind: BackupStorageLocation
88
metadata:
99
name: {{ .name | default "default" }}
1010
namespace: {{ $.Release.Namespace }}
11+
{{- with .annotations }}
12+
annotations:
13+
{{- range $key, $value := . }}
14+
{{- $key | nindent 4 }}: {{ $value | quote }}
15+
{{- end }}
16+
{{- end }}
1117
labels:
1218
app.kubernetes.io/name: {{ include "velero.name" $ }}
1319
app.kubernetes.io/instance: {{ $.Release.Name }}

charts/velero/templates/volumesnapshotlocation.yaml

+6
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@ kind: VolumeSnapshotLocation
88
metadata:
99
name: {{ .name | default "default" }}
1010
namespace: {{ $.Release.Namespace }}
11+
{{- with .annotations }}
12+
annotations:
13+
{{- range $key, $value := . }}
14+
{{- $key | nindent 4 }}: {{ $value | quote }}
15+
{{- end }}
16+
{{- end }}
1117
labels:
1218
app.kubernetes.io/name: {{ include "velero.name" $ }}
1319
app.kubernetes.io/instance: {{ $.Release.Name }}

charts/velero/values.yaml

+6
Original file line numberDiff line numberDiff line change
@@ -362,6 +362,9 @@ configuration:
362362
# flag. For Velero client Command like velero backup describe, velero backup logs needs to add the flag --insecure-skip-tls-verify
363363
# insecureSkipTLSVerify:
364364

365+
# annotations allows adding arbitrary annotations to this BackupStorageLocation resource. Optional.
366+
annotations: {}
367+
365368
# Parameters for the VolumeSnapshotLocation(s). Configure multiple by adding other element(s) to the volumeSnapshotLocation slice.
366369
# See https://velero.io/docs/v1.6/api-types/volumesnapshotlocation/
367370
volumeSnapshotLocation:
@@ -386,6 +389,9 @@ configuration:
386389
# snapshotLocation:
387390
# project:
388391

392+
# annotations allows adding arbitrary annotations to this VolumeSnapshotLocation resource. Optional.
393+
annotations: {}
394+
389395
# These are server-level settings passed as CLI flags to the `velero server` command. Velero
390396
# uses default values if they're not passed in, so they only need to be explicitly specified
391397
# here if using a non-default value. The `velero server` default values are shown in the

0 commit comments

Comments
 (0)