Skip to content

Commit

Permalink
Modified version error messages.
Browse files Browse the repository at this point in the history
  • Loading branch information
tinaafitz committed Feb 25, 2025
1 parent 1ee022e commit d35e038
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions controlplane/rosa/controllers/rosacontrolplane_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -874,10 +874,10 @@ func validateControlPlaneSpec(ocmClient *ocm.Client, rosaScope *scope.ROSAContro
version := rosaScope.ControlPlane.Spec.Version
valid, err := ocmClient.ValidateHypershiftVersion(version, ocm.DefaultChannelGroup)
if err != nil {
return "", fmt.Errorf("failed to check if version is valid: %w", err)
return "", fmt.Errorf("Error validating version in this ChannelGroup : %w", err)
}
if !valid {
return fmt.Sprintf("version %s is not supported", version), nil
return fmt.Sprintf("this version %s is not supported in this channelGroup", version), nil
}

// TODO: add more input validations
Expand Down

0 comments on commit d35e038

Please sign in to comment.