Skip to content

Commit

Permalink
Add Amazon Linux 2 as supported OS (#1740)
Browse files Browse the repository at this point in the history
  • Loading branch information
dveeden authored Jan 26, 2022
1 parent 4486823 commit d2e2b40
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions pkg/cluster/operation/check.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,14 @@ func checkOSInfo(opt *CheckOptions, osInfo *sysinfo.OS) *CheckResult {

// check OS vendor
switch osInfo.Vendor {
case "amzn":
// Amazon Linux 2 is based on CentOS 7 and is recommended for
// AWS Graviton 2 (ARM64) deployments.
if ver, _ := strconv.ParseFloat(osInfo.Version, 64); ver < 2 || ver >= 3 {
result.Err = fmt.Errorf("%s %s not supported, use version 2 please",
osInfo.Name, osInfo.Release)
return result
}
case "centos", "redhat", "rhel":
// check version
// CentOS 8 is known to be not working, and we don't have plan to support it
Expand Down

0 comments on commit d2e2b40

Please sign in to comment.