Skip to content

Commit

Permalink
Merge pull request #583 from tuusberg/issue-582
Browse files Browse the repository at this point in the history
[velero] feat(issue-582): Allow annotating VolumeSnapshotLocation/BackupStorageLocation resources
  • Loading branch information
qiuming-best authored May 29, 2024
2 parents be88111 + 7afe30b commit ab14c00
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/velero/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ appVersion: 1.13.2
kubeVersion: ">=1.16.0-0"
description: A Helm chart for velero
name: velero
version: 6.4.0
version: 6.5.0
home: https://github.com/vmware-tanzu/velero
icon: https://cdn-images-1.medium.com/max/1600/1*-9mb3AKnKdcL_QD3CMnthQ.png
sources:
Expand Down
6 changes: 6 additions & 0 deletions charts/velero/templates/backupstoragelocation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ kind: BackupStorageLocation
metadata:
name: {{ .name | default "default" }}
namespace: {{ $.Release.Namespace }}
{{- with .annotations }}
annotations:
{{- range $key, $value := . }}
{{- $key | nindent 4 }}: {{ $value | quote }}
{{- end }}
{{- end }}
labels:
app.kubernetes.io/name: {{ include "velero.name" $ }}
app.kubernetes.io/instance: {{ $.Release.Name }}
Expand Down
6 changes: 6 additions & 0 deletions charts/velero/templates/volumesnapshotlocation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ kind: VolumeSnapshotLocation
metadata:
name: {{ .name | default "default" }}
namespace: {{ $.Release.Namespace }}
{{- with .annotations }}
annotations:
{{- range $key, $value := . }}
{{- $key | nindent 4 }}: {{ $value | quote }}
{{- end }}
{{- end }}
labels:
app.kubernetes.io/name: {{ include "velero.name" $ }}
app.kubernetes.io/instance: {{ $.Release.Name }}
Expand Down
6 changes: 6 additions & 0 deletions charts/velero/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,9 @@ configuration:
# flag. For Velero client Command like velero backup describe, velero backup logs needs to add the flag --insecure-skip-tls-verify
# insecureSkipTLSVerify:

# annotations allows adding arbitrary annotations to this BackupStorageLocation resource. Optional.
annotations: {}

# Parameters for the VolumeSnapshotLocation(s). Configure multiple by adding other element(s) to the volumeSnapshotLocation slice.
# See https://velero.io/docs/v1.6/api-types/volumesnapshotlocation/
volumeSnapshotLocation:
Expand All @@ -386,6 +389,9 @@ configuration:
# snapshotLocation:
# project:

# annotations allows adding arbitrary annotations to this VolumeSnapshotLocation resource. Optional.
annotations: {}

# These are server-level settings passed as CLI flags to the `velero server` command. Velero
# uses default values if they're not passed in, so they only need to be explicitly specified
# here if using a non-default value. The `velero server` default values are shown in the
Expand Down

0 comments on commit ab14c00

Please sign in to comment.