diff --git a/pkg/cluster/operation/check.go b/pkg/cluster/operation/check.go index 6da90e1493..bc2891d9be 100644 --- a/pkg/cluster/operation/check.go +++ b/pkg/cluster/operation/check.go @@ -166,6 +166,16 @@ func checkOSInfo(opt *CheckOptions, osInfo *sysinfo.OS) *CheckResult { // check OS vendor switch osInfo.Vendor { + case "kylin": + msg := "kylin support is not fully tested, be careful" + result.Err = fmt.Errorf("%s (%s)", result.Msg, msg) + result.Warn = true + // VERSION_ID="V10" + if ver, _ := strconv.ParseFloat(strings.Trim(osInfo.Version, "V"), 64); ver < 10 { + result.Err = fmt.Errorf("%s %s not supported, use version V10 or higher(%s)", + osInfo.Name, osInfo.Release, msg) + return result + } case "amzn": // Amazon Linux 2 is based on CentOS 7 and is recommended for // AWS Graviton 2 (ARM64) deployments.