Skip to content

Commit

Permalink
feat: implement validate cluster repave
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmad-ibra committed Dec 27, 2024
1 parent ca32d3f commit 8833ba9
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions client/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,15 @@ func (h *V1Client) ApproveClusterRepave(clusterUID string) error {
return err
}

// ValidateClusterRepave validates if cluster gets repaved for the specified packs.
func (h *V1Client) ValidateClusterRepave(clusterUID string, body *models.V1SpectroClusterPacksEntity) error {
params := clientv1.NewV1SpectroClustersUIDValidateRepaveParamsWithContext(h.ctx).
WithUID(clusterUID).
WithBody(body)
_, err := h.Client.V1SpectroClustersUIDValidateRepave(params)
return err
}

// GetRepaveReasons retrieves a cluster's repave reasons.
func (h *V1Client) GetRepaveReasons(clusterUID string) ([]string, error) {
params := clientv1.NewV1SpectroClustersUIDRepaveGetParamsWithContext(h.ctx).
Expand Down

0 comments on commit 8833ba9

Please sign in to comment.