@@ -20,6 +20,7 @@ SPDX-License-Identifier: Apache-2.0
2020package v1
2121
2222import (
23+ machineryapi "github.com/cloudnative-pg/machinery/pkg/api"
2324 monitoringv1 "github.com/prometheus-operator/prometheus-operator/pkg/apis/monitoring/v1"
2425 corev1 "k8s.io/api/core/v1"
2526 "k8s.io/apimachinery/pkg/api/resource"
@@ -125,8 +126,8 @@ type SnapshotOwnerReference string
125126
126127// Constants to represent the allowed types for SnapshotOwnerReference.
127128const (
128- // ShapshotOwnerReferenceNone indicates that the snapshot does not have any owner reference.
129- ShapshotOwnerReferenceNone SnapshotOwnerReference = "none"
129+ // SnapshotOwnerReferenceNone indicates that the snapshot does not have any owner reference.
130+ SnapshotOwnerReferenceNone SnapshotOwnerReference = "none"
130131 // SnapshotOwnerReferenceBackup indicates that the snapshot is owned by the backup resource.
131132 SnapshotOwnerReferenceBackup SnapshotOwnerReference = "backup"
132133 // SnapshotOwnerReferenceCluster indicates that the snapshot is owned by the cluster resource.
@@ -1962,7 +1963,7 @@ type DataSource struct {
19621963// BackupSource contains the backup we need to restore from, plus some
19631964// information that could be needed to correctly restore it.
19641965type BackupSource struct {
1965- LocalObjectReference `json:",inline"`
1966+ machineryapi. LocalObjectReference `json:",inline"`
19661967 // EndpointCA store the CA bundle of the barman endpoint.
19671968 // Useful when using self-signed certificates to avoid
19681969 // errors with certificate issuer and barman-cloud-wal-archive.
0 commit comments