Skip to content

Commit 1f9c168

Browse files
author
CloudNativePG Automated Updates
committed
chore: sync API
1 parent e95b862 commit 1f9c168

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

pkg/api/v1/backup_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ type BackupSnapshotElementStatus struct {
193193
// BackupStatus defines the observed state of Backup
194194
type BackupStatus struct {
195195
// The potential credentials for each cloud provider
196-
BarmanCredentials `json:",inline"`
196+
barmanApi.BarmanCredentials `json:",inline"`
197197

198198
// The PostgreSQL major version that was running when the
199199
// backup was taken.

pkg/api/v1/cluster_types.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ SPDX-License-Identifier: Apache-2.0
2020
package v1
2121

2222
import (
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.
127128
const (
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.
19641965
type 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.

pkg/api/v1/zz_generated.deepcopy.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)