Skip to content

Commit 82377ff

Browse files
committed
fix imports
1 parent 7053db1 commit 82377ff

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

deploy/backup/backup.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ metadata:
55
# - percona.com/delete-backup
66
name: backup1
77
spec:
8-
pxcCluster: demand-backup
9-
storageName: pvc
8+
pxcCluster: cluster1
9+
storageName: fs-pvc
1010
# activeDeadlineSeconds: 3600
1111
# startingDeadlineSeconds: 300
1212
# suspendedDeadlineSeconds: 1200

pkg/apis/pxc/v1/pxc_backup_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
package v1
22

33
import (
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"

pkg/controller/pxcbackup/controller.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)