Documentation
¶
Overview ¶
Package env provides constants for all other packages to consume, without creating import cycles.
This package should not import any other packages.
Index ¶
Constants ¶
View Source
const ( ConstProjectUrl = "https://github.com/MusicDin/kubitect" ConstProjectVersion = "v3.5.0" ConstK3sURL = "https://github.com/MusicDin/k3s-ansible" ConstK3sVersion = "v0.0.1" ConstKubesprayUrl = "https://github.com/kubernetes-sigs/kubespray" ConstKubesprayVersion = "v2.26.0" ConstKubernetesVersion = "v1.30.4" ConstTerraformVersion = "1.5.2" )
Project related constants
Variables ¶
View Source
var ProjectApplyActions = [...]string{
"create",
"upgrade",
"scale",
}
ProjectApplyActions define options for "apply --action" command.
View Source
var ProjectK8sVersions = []string{
"v1.30.0 - v1.30.4",
"v1.29.0 - v1.29.7",
"v1.28.0 - v1.28.12",
}
ProjectK8sVersions define supported Kubernetes versions.
View Source
var ProjectOsPresets = map[string]struct { Source string NetworkInterface string }{ "ubuntu20": { Source: "https://cloud-images.ubuntu.com/releases/focal/release/ubuntu-20.04-server-cloudimg-amd64.img", NetworkInterface: "ens3", }, "ubuntu22": { Source: "https://cloud-images.ubuntu.com/releases/jammy/release/ubuntu-22.04-server-cloudimg-amd64.img", NetworkInterface: "ens3", }, "debian11": { Source: "https://cloud.debian.org/images/cloud/bullseye/latest/debian-11-genericcloud-amd64.qcow2", NetworkInterface: "ens3", }, "debian12": { Source: "https://cloud.debian.org/images/cloud/bookworm/latest/debian-12-genericcloud-amd64.qcow2", NetworkInterface: "ens3", }, "centos9": { Source: "https://cloud.centos.org/centos/9-stream/x86_64/images/CentOS-Stream-GenericCloud-9-latest.x86_64.qcow2", NetworkInterface: "eth0", }, "rocky9": { Source: "https://dl.rockylinux.org/pub/rocky/9/images/x86_64/Rocky-9-GenericCloud-Base.latest.x86_64.qcow2", NetworkInterface: "eth0", }, }
ProjectOsPresets is a list of available OS distros.
View Source
var ProjectRequiredApps = []string{
"virtualenv",
"python3",
"git",
}
ProjectRequiredApps define applications that Kubitect depends on.
View Source
var ProjectRequiredFiles = []string{
"ansible/",
"terraform/",
}
ProjectRequiredFiles define required files/directories that are copied from embedded resources, when cluster is created.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.