Skip to content

Commit ab8d8ca

Browse files
committed
Modified version error messages.
1 parent 1ee022e commit ab8d8ca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

controlplane/rosa/controllers/rosacontrolplane_controller.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -874,10 +874,10 @@ func validateControlPlaneSpec(ocmClient *ocm.Client, rosaScope *scope.ROSAContro
874874
version := rosaScope.ControlPlane.Spec.Version
875875
valid, err := ocmClient.ValidateHypershiftVersion(version, ocm.DefaultChannelGroup)
876876
if err != nil {
877-
return "", fmt.Errorf("failed to check if version is valid: %w", err)
877+
return "", fmt.Errorf("error validating version in this channelGroup : %w", err)
878878
}
879879
if !valid {
880-
return fmt.Sprintf("version %s is not supported", version), nil
880+
return fmt.Sprintf("this version %s is not supported in this channelGroup", version), nil
881881
}
882882

883883
// TODO: add more input validations

0 commit comments

Comments
 (0)