Skip to content

Commit 4463461

Browse files
authored
Merge pull request #5337 from tinaafitz/fix_version_error_msg
🌱 ROSA Modified rosacontrolplane_controller version error messages.
2 parents 71bed12 + ab8d8ca commit 4463461

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
@@ -892,10 +892,10 @@ func validateControlPlaneSpec(ocmClient rosa.OCMClient, rosaScope *scope.ROSACon
892892
channelGroup := string(rosaScope.ControlPlane.Spec.ChannelGroup)
893893
valid, err := ocmClient.ValidateHypershiftVersion(version, channelGroup)
894894
if err != nil {
895-
return "", fmt.Errorf("failed to check if version is valid: %w", err)
895+
return "", fmt.Errorf("error validating version in this channelGroup : %w", err)
896896
}
897897
if !valid {
898-
return fmt.Sprintf("version %s is not supported", version), nil
898+
return fmt.Sprintf("this version %s is not supported in this channelGroup", version), nil
899899
}
900900

901901
// TODO: add more input validations

0 commit comments

Comments
 (0)