Skip to content

Commit 344f548

Browse files
author
CloudNativePG Automated Updates
committed
chore: sync API
1 parent 3af7b78 commit 344f548

File tree

2 files changed

+28
-6
lines changed

2 files changed

+28
-6
lines changed

pkg/api/v1/cluster_types.go

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -940,10 +940,9 @@ type ClusterStatus struct {
940940
// +optional
941941
Image string `json:"image,omitempty"`
942942

943-
// MajorVersionUpgradeFromImage contains the image that was
944-
// running before the major version upgrade started.
943+
// PGDataImageInfo contains the details of the latest image that has run on the current data directory.
945944
// +optional
946-
MajorVersionUpgradeFromImage *string `json:"majorVersionUpgradeFromImage,omitempty"`
945+
PGDataImageInfo *ImageInfo `json:"pgDataImageInfo,omitempty"`
947946

948947
// PluginStatus is the status of the loaded plugins
949948
// +optional
@@ -961,6 +960,14 @@ type ClusterStatus struct {
961960
DemotionToken string `json:"demotionToken,omitempty"`
962961
}
963962

963+
// ImageInfo contains the information about a PostgreSQL image
964+
type ImageInfo struct {
965+
// Image is the image name
966+
Image string `json:"image"`
967+
// MajorVersion is the major version of the image
968+
MajorVersion int `json:"majorVersion"`
969+
}
970+
964971
// SwitchReplicaClusterStatus contains all the statuses regarding the switch of a cluster to a replica cluster
965972
type SwitchReplicaClusterStatus struct {
966973
// InProgress indicates if there is an ongoing procedure of switching a cluster to a replica cluster.

pkg/api/v1/zz_generated.deepcopy.go

Lines changed: 18 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)