forked from Azure/acs-engine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
const.go
90 lines (82 loc) · 3.04 KB
/
const.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
package api
// the orchestrators supported by vlabs
const (
// Mesos is the string constant for MESOS orchestrator type
Mesos string = "Mesos"
// DCOS is the string constant for DCOS orchestrator type and defaults to DCOS188
DCOS string = "DCOS"
// Swarm is the string constant for the Swarm orchestrator type
Swarm string = "Swarm"
// Kubernetes is the string constant for the Kubernetes orchestrator type
Kubernetes string = "Kubernetes"
// SwarmMode is the string constant for the Swarm Mode orchestrator type
SwarmMode string = "SwarmMode"
)
// the OSTypes supported by vlabs
const (
Windows OSType = "Windows"
Linux OSType = "Linux"
)
// validation values
const (
// MinAgentCount are the minimum number of agents per agent pool
MinAgentCount = 1
// MaxAgentCount are the maximum number of agents per agent pool
MaxAgentCount = 100
// MinPort specifies the minimum tcp port to open
MinPort = 1
// MaxPort specifies the maximum tcp port to open
MaxPort = 65535
// MaxDisks specifies the maximum attached disks to add to the cluster
MaxDisks = 4
)
// Availability profiles
const (
// AvailabilitySet means that the vms are in an availability set
AvailabilitySet = "AvailabilitySet"
// VirtualMachineScaleSets means that the vms are in a virtual machine scaleset
VirtualMachineScaleSets = "VirtualMachineScaleSets"
)
// storage profiles
const (
// StorageAccount means that the nodes use raw storage accounts for their os and attached volumes
StorageAccount = "StorageAccount"
// ManagedDisks means that the nodes use managed disks for their os and attached volumes
ManagedDisks = "ManagedDisks"
)
const (
// Kubernetes153 is the string constant for Kubernetes 1.5.3
Kubernetes153 string = "1.5.3"
// Kubernetes157 is the string constant for Kubernetes 1.5.7
Kubernetes157 string = "1.5.7"
// Kubernetes160 is the string constant for Kubernetes 1.6.0
Kubernetes160 string = "1.6.0"
// Kubernetes162 is the string constant for Kubernetes 1.6.2
Kubernetes162 string = "1.6.2"
// Kubernetes166 is the string constant for Kubernetes 1.6.6
Kubernetes166 string = "1.6.6"
// Kubernetes170 is the string constant for Kubernetes 1.7.0
Kubernetes170 string = "1.7.0"
// Kubernetes171 is the string constant for Kubernetes 1.7.1
Kubernetes171 string = "1.7.1"
// Kubernetes172 is the string constant for Kubernetes 1.7.2
Kubernetes172 string = "1.7.2"
// KubernetesDefaultVersion is the string constant for current Kubernetes version
KubernetesDefaultVersion string = Kubernetes166
)
const (
// DCOS190 is the string constant for DCOS 1.9.0
DCOS190 string = "1.9.0"
// DCOS188 is the string constant for DCOS 1.8.8
DCOS188 string = "1.8.8"
// DCOS187 is the string constant for DCOS 1.8.7
DCOS187 string = "1.8.7"
// DCOS184 is the string constant for DCOS 1.8.4
DCOS184 string = "1.8.4"
// DCOS173 is the string constant for DCOS 1.7.3
DCOS173 string = "1.7.3"
// DCOSLatest is the string constant for latest DCOS version
DCOSLatest string = DCOS190
)
// To identify programmatically generated public agent pools
const publicAgentPoolSuffix = "-public"