Skip to content
Draft
Show file tree
Hide file tree
Changes from all 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
3 changes: 2 additions & 1 deletion .github/workflows/e2e-test-kind.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,8 @@ jobs:
\"Basic && (ClusterResource || NodePort || StorageClass)\", \
\"ResourceFiltering && !Restic\", \
\"ResourceModifier || (Backups && BackupsSync) || PrivilegesMgmt || OrderedResources\", \
\"(NamespaceMapping && Single && Restic) || (NamespaceMapping && Multiple && Restic)\"\
\"(NamespaceMapping && Single && Restic) || (NamespaceMapping && Multiple && Restic)\", \
\"BSL && BackupRepository && StartupValidation\"\
]}" >> $GITHUB_OUTPUT

# Run E2E test against all Kubernetes versions on kind
Expand Down
1 change: 1 addition & 0 deletions changelogs/unreleased/8279-kaovilai
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix BackupRepositories becoming stale when BSL config changes while Velero is not running
1 change: 1 addition & 0 deletions changelogs/unreleased/9236-kaovilai
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix BackupRepositories becoming stale when BSL config changes while Velero is not running
14 changes: 14 additions & 0 deletions pkg/apis/velero/v1/labels_annotations.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,20 @@ const (
// RepositoryTypeLabel is the label key used to identify the type of a repository
RepositoryTypeLabel = "velero.io/repository-type"

// BSL configuration annotations for BackupRepository to detect changes on startup
// BSLBucketAnnotation stores the BSL bucket configuration
BSLBucketAnnotation = "velero.io/bsl-bucket"
// BSLPrefixAnnotation stores the BSL prefix configuration
BSLPrefixAnnotation = "velero.io/bsl-prefix"
// BSLCACertAnnotation stores the BSL CA certificate
BSLCACertAnnotation = "velero.io/bsl-cacert"
// BSLConfigAnnotation stores the BSL config map as JSON
BSLConfigAnnotation = "velero.io/bsl-config"
// BSLLastInvalidatedAnnotation stores the timestamp when the repository was last
// invalidated due to BSL changes. This is used to ensure the informer cache is
// updated and the SpecChangePredicate passes the event for immediate reconciliation.
BSLLastInvalidatedAnnotation = "velero.io/bsl-last-invalidated"

// DataUploadLabel is the label key used to identify the dataupload for snapshot backup pod
DataUploadLabel = "velero.io/data-upload"

Expand Down
Loading
Loading