diff --git a/client/cluster.go b/client/cluster.go index 94e5902f..cdc03e58 100644 --- a/client/cluster.go +++ b/client/cluster.go @@ -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) (*models.V1SpectroClusterRepaveValidationResponse, error) { + params := clientv1.NewV1SpectroClustersUIDValidateRepaveParamsWithContext(h.ctx). + WithUID(clusterUID). + WithBody(body) + resp, err := h.Client.V1SpectroClustersUIDValidateRepave(params) + return resp.Payload, err +} + // GetRepaveReasons retrieves a cluster's repave reasons. func (h *V1Client) GetRepaveReasons(clusterUID string) ([]string, error) { params := clientv1.NewV1SpectroClustersUIDRepaveGetParamsWithContext(h.ctx).