-
Notifications
You must be signed in to change notification settings - Fork 34
/
constants.go
57 lines (51 loc) · 1.72 KB
/
constants.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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
// The env package provides constants for all other packages to consume,
// without creating import cycles.
//
// This package should not import any other packages.
package env
// Project related constants
const (
ConstProjectUrl = "https://github.com/MusicDin/kubitect"
ConstProjectVersion = "v2.2.0"
ConstKubesprayUrl = "https://github.com/kubernetes-sigs/kubespray"
ConstKubesprayVersion = "v2.21.0"
ConstKubernetesVersion = "v1.25.6"
ConstTerraformVersion = "1.3.7"
)
// Defines applications that Kubitect depends on.
var ProjectRequiredApps = []string{
"virtualenv",
"python3",
"git",
}
// Defines required files/directories that are copied from tmp git project.
var ProjectRequiredFiles = []string{
"ansible/",
"resources/",
"terraform/modules/",
"terraform/templates/",
"terraform/scripts/",
"terraform/main.tf.tpl",
"terraform/output.tf",
"terraform/variables.tf",
"terraform/versions.tf",
// "LICENSE",
}
// Defines options for "apply --action" command.
var ProjectApplyActions = [...]string{
"create",
"upgrade",
"scale",
}
var ProjectOsPresets = map[string]string{
"ubuntu": "https://cloud-images.ubuntu.com/releases/jammy/release/ubuntu-22.04-server-cloudimg-amd64.img",
"ubuntu22": "https://cloud-images.ubuntu.com/releases/jammy/release-20220712/ubuntu-22.04-server-cloudimg-amd64.img",
"ubuntu20": "https://cloud-images.ubuntu.com/releases/focal/release-20220711/ubuntu-20.04-server-cloudimg-amd64.img",
"debian": "https://cloud.debian.org/images/cloud/bullseye/latest/debian-11-generic-amd64.qcow2",
"debian11": "https://cloud.debian.org/images/cloud/bullseye/20220711-1073/debian-11-genericcloud-amd64-20220711-1073.qcow2",
}
var ProjectK8sVersions = []string{
"v1.26",
"v1.25",
"v1.24",
}