Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions api/hypershift/v1beta1/etcdbackup_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,11 @@ const (
// BackupCompleted indicates whether the etcd backup has completed.
BackupCompleted ConditionType = "BackupCompleted"

BackupSucceededReason string = "BackupSucceeded"
BackupFailedReason string = "BackupFailed"
BackupAlreadyInProgressReason string = "BackupAlreadyInProgress"
EtcdUnhealthyReason string = "EtcdUnhealthy"
BackupSucceededReason string = "BackupSucceeded"
BackupFailedReason string = "BackupFailed"
BackupInProgressReason string = "BackupInProgress"
BackupRejectedReason string = "BackupRejected"
EtcdUnhealthyReason string = "EtcdUnhealthy"
)

// HCPEtcdBackupStorageType is the type of storage for etcd backups.
Expand Down
5 changes: 5 additions & 0 deletions api/hypershift/v1beta1/hostedcluster_conditions.go
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,11 @@ const (
// recovery job was triggered.
EtcdRecoveryActive ConditionType = "EtcdRecoveryActive"

// EtcdBackupSucceeded bubbles up from HCP. It indicates the result of the
// most recent etcd backup. True means the last backup completed successfully;
// False means a backup is in progress or the last backup failed.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will we need a history like API instead of this?

@jparrill jparrill Apr 7, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good question, I'd wait for feedback from users (ROSA, ARO, self-managed) before adding a history-like API. Not sure how useful it would be to put that info in the HC when other observability tools can cover the historical view. If there's demand, we can add a status.backupHistory[] in a follow-up.

EtcdBackupSucceeded ConditionType = "EtcdBackupSucceeded"

// ClusterSizeComputed indicates that a t-shirt size was computed for this HostedCluster.
// The last transition time for this condition is used to manage how quickly transitions occur.
ClusterSizeComputed = "ClusterSizeComputed"
Expand Down
5 changes: 5 additions & 0 deletions docs/content/reference/aggregated-docs.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions docs/content/reference/api.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading