-
Notifications
You must be signed in to change notification settings - Fork 273
/
os_versions.go
28 lines (24 loc) 路 1.04 KB
/
os_versions.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
package framework
import (
anywherev1 "github.com/aws/eks-anywhere/pkg/api/v1alpha1"
)
// OS refers to the Operating System to be used for Machine configs.
type OS string
const (
// DockerOS corresponds to a dummy Docker OS that will be ignored when creating the cluster config.
DockerOS OS = "docker"
// Ubuntu2204 corresponds to Ubuntu 22.04 OS.
Ubuntu2204 OS = "ubuntu-2204"
// Ubuntu2004 corresponds to Ubuntu 20.04 OS. We don't add the version number in the string to facilitate backwards compatibility.
Ubuntu2004 OS = "ubuntu"
// Bottlerocket1 corresponds to Bottlerocket OS. We don't add the version number in the string to facilitate backwards compatibility.
Bottlerocket1 OS = "bottlerocket"
// RedHat8 corresponds to Red Hat 8 OS. We don't add the version number in the string to facilitate backwards compatibility.
RedHat8 OS = "redhat"
)
var osFamiliesForOS = map[OS]anywherev1.OSFamily{
Ubuntu2204: anywherev1.Ubuntu,
Ubuntu2004: anywherev1.Ubuntu,
Bottlerocket1: anywherev1.Bottlerocket,
RedHat8: anywherev1.RedHat,
}