File tree Expand file tree Collapse file tree 3 files changed +4
-5
lines changed Expand file tree Collapse file tree 3 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -5,8 +5,8 @@ metadata:
55# - percona.com/delete-backup
66 name : backup1
77spec :
8- pxcCluster : demand-backup
9- storageName : pvc
8+ pxcCluster : cluster1
9+ storageName : fs- pvc
1010# activeDeadlineSeconds: 3600
1111# startingDeadlineSeconds: 300
1212# suspendedDeadlineSeconds: 1200
Original file line number Diff line number Diff line change 11package v1
22
33import (
4- corev1 "k8s.io/api/core/v1"
54 "path"
65 "strings"
76
7+ corev1 "k8s.io/api/core/v1"
88 metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
99 "k8s.io/apimachinery/pkg/runtime"
1010 "sigs.k8s.io/controller-runtime/pkg/client/apiutil"
Original file line number Diff line number Diff line change @@ -421,12 +421,11 @@ func (r *ReconcilePerconaXtraDBClusterBackup) runBackupFinalizers(ctx context.Co
421421 var err error
422422 switch f {
423423 case naming .FinalizerDeleteBackup :
424- storageType := cr .Status .GetStorageType (nil )
425424 if (cr .Status .S3 == nil && cr .Status .Azure == nil && cr .Status .PVC == nil ) || cr .Status .Destination == "" {
426425 continue
427426 }
428427
429- switch storageType {
428+ switch cr . Status . GetStorageType ( nil ) {
430429 case api .BackupStorageS3 :
431430 if cr .Status .Destination .StorageTypePrefix () != api .AwsBlobStoragePrefix {
432431 continue
You can’t perform that action at this time.
0 commit comments