Skip to content

Commit

Permalink
Update pkg/liqoctl/install/validation.go
Browse files Browse the repository at this point in the history
  • Loading branch information
frisso authored and adamjensenbot committed May 22, 2023
1 parent 72a2826 commit a8ac245
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/liqoctl/install/validation.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ func (o *Options) validateClusterName() (err error) {

errs := validation.IsDNS1123Label(o.ClusterName)
if len(errs) != 0 {
return fmt.Errorf("the cluster name may only contain lowercase letters, numbers and hyphens, and must not be no longer than 63 characters. Try using 'liqoctl --cluster-name' to overcome this error")
return fmt.Errorf(`the cluster name must be DNS-compatible (e.g., lowercase letters, numbers and hyphens) and
must be <= 63 characters. Try using 'liqoctl --cluster-name' to set another name and overcome this error`)
}

return nil
Expand Down

0 comments on commit a8ac245

Please sign in to comment.