Documentation ¶
Index ¶
Constants ¶
View Source
const ( K3SChart = "vcluster" K0SChart = "vcluster-k0s" K8SChart = "vcluster-k8s" EKSChart = "vcluster-eks" )
Variables ¶
View Source
var EKSAPIVersionMap = map[string]string{
"1.28": "public.ecr.aws/eks-distro/kubernetes/kube-apiserver:v1.28.2-eks-1-28-6",
"1.27": "public.ecr.aws/eks-distro/kubernetes/kube-apiserver:v1.27.6-eks-1-27-13",
"1.26": "public.ecr.aws/eks-distro/kubernetes/kube-apiserver:v1.26.9-eks-1-26-19",
"1.25": "public.ecr.aws/eks-distro/kubernetes/kube-apiserver:v1.25.14-eks-1-25-23",
}
View Source
var EKSControllerVersionMap = map[string]string{
"1.28": "public.ecr.aws/eks-distro/kubernetes/kube-controller-manager:v1.28.2-eks-1-28-6",
"1.27": "public.ecr.aws/eks-distro/kubernetes/kube-controller-manager:v1.27.6-eks-1-27-13",
"1.26": "public.ecr.aws/eks-distro/kubernetes/kube-controller-manager:v1.26.9-eks-1-26-19",
"1.25": "public.ecr.aws/eks-distro/kubernetes/kube-controller-manager:v1.25.14-eks-1-25-23",
}
View Source
var EKSCoreDNSVersionMap = map[string]string{
"1.28": "public.ecr.aws/eks-distro/coredns/coredns:v1.10.1-eks-1-28-6",
"1.27": "public.ecr.aws/eks-distro/coredns/coredns:v1.10.1-eks-1-27-13",
"1.26": "public.ecr.aws/eks-distro/coredns/coredns:v1.9.3-eks-1-26-19",
"1.25": "public.ecr.aws/eks-distro/coredns/coredns:v1.9.3-eks-1-25-23",
}
View Source
var EKSEtcdVersionMap = map[string]string{
"1.28": "public.ecr.aws/eks-distro/etcd-io/etcd:v3.5.9-eks-1-28-6",
"1.27": "public.ecr.aws/eks-distro/etcd-io/etcd:v3.5.8-eks-1-27-13",
"1.26": "public.ecr.aws/eks-distro/etcd-io/etcd:v3.5.8-eks-1-26-19",
"1.25": "public.ecr.aws/eks-distro/etcd-io/etcd:v3.5.8-eks-1-25-23",
}
View Source
var K0SVersionMap = map[string]string{
"1.29": "k0sproject/k0s:v1.29.1-k0s.0",
"1.28": "k0sproject/k0s:v1.28.2-k0s.0",
"1.27": "k0sproject/k0s:v1.27.6-k0s.0",
"1.26": "k0sproject/k0s:v1.26.9-k0s.0",
}
View Source
var K3SVersionMap = map[string]string{
"1.29": "rancher/k3s:v1.29.0-k3s1",
"1.28": "rancher/k3s:v1.28.5-k3s1",
"1.27": "rancher/k3s:v1.27.9-k3s1",
"1.26": "rancher/k3s:v1.26.12-k3s1",
}
View Source
var K8SAPIVersionMap = map[string]string{
"1.29": "registry.k8s.io/kube-apiserver:v1.29.0",
"1.28": "registry.k8s.io/kube-apiserver:v1.28.4",
"1.27": "registry.k8s.io/kube-apiserver:v1.27.8",
"1.26": "registry.k8s.io/kube-apiserver:v1.26.11",
}
View Source
var K8SControllerVersionMap = map[string]string{
"1.29": "registry.k8s.io/kube-controller-manager:v1.29.0",
"1.28": "registry.k8s.io/kube-controller-manager:v1.28.4",
"1.27": "registry.k8s.io/kube-controller-manager:v1.27.8",
"1.26": "registry.k8s.io/kube-controller-manager:v1.26.11",
}
View Source
var K8SEtcdVersionMap = map[string]string{
"1.29": "registry.k8s.io/etcd:3.5.10-0",
"1.28": "registry.k8s.io/etcd:3.5.9-0",
"1.27": "registry.k8s.io/etcd:3.5.7-0",
"1.26": "registry.k8s.io/etcd:3.5.6-0",
}
View Source
var K8SSchedulerVersionMap = map[string]string{
"1.29": "registry.k8s.io/kube-scheduler:v1.29.0",
"1.28": "registry.k8s.io/kube-scheduler:v1.28.4",
"1.27": "registry.k8s.io/kube-scheduler:v1.27.8",
"1.26": "registry.k8s.io/kube-scheduler:v1.26.11",
}
Functions ¶
func GetDefaultReleaseValues ¶
func GetDefaultReleaseValues(chartOptions *ChartOptions, log logr.Logger) (string, error)
func GetKubernetesVersion ¶
Types ¶
type ChartOptions ¶
type ChartOptions struct { ChartName string ChartRepo string ChartVersion string CIDR string CreateClusterRole bool DisableIngressSync bool Expose bool NodePort bool SyncNodes bool K3SImage string Isolate bool KubernetesVersion Version Pro bool DisableTelemetry bool InstanceCreatorType string MachineID string PlatformInstanceID string PlatformUserID string }
ChartOptions holds the chart options
Click to show internal directories.
Click to hide internal directories.