This repository has been archived by the owner on Oct 24, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 522
/
const.go
112 lines (100 loc) · 3.98 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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
package common
// the orchestrators supported
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"
)
// 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
// MinDiskSizeGB specifies the minimum attached disk size
MinDiskSizeGB = 1
// MaxDiskSizeGB specifies the maximum attached disk size
MaxDiskSizeGB = 1023
// MinIPAddressCount specifies the minimum number of IP addresses per network interface
MinIPAddressCount = 1
// MaxIPAddressCount specifies the maximum number of IP addresses per network interface
MaxIPAddressCount = 256
)
// 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 (
// KubernetesDefaultRelease is the default Kubernetes release
KubernetesDefaultRelease string = "1.10"
// KubernetesDefaultReleaseWindows is the default Kubernetes release
KubernetesDefaultReleaseWindows string = "1.9"
)
const (
// DCOSVersion1Dot11Dot2 is the major.minor.patch string for 1.11.0 versions of DCOS
DCOSVersion1Dot11Dot2 string = "1.11.2"
// DCOSVersion1Dot11Dot0 is the major.minor.patch string for 1.11.0 versions of DCOS
DCOSVersion1Dot11Dot0 string = "1.11.0"
// DCOSVersion1Dot10Dot0 is the major.minor.patch string for 1.10.0 versions of DCOS
DCOSVersion1Dot10Dot0 string = "1.10.0"
// DCOSVersion1Dot9Dot0 is the major.minor.patch string for 1.9.0 versions of DCOS
DCOSVersion1Dot9Dot0 string = "1.9.0"
// DCOSVersion1Dot9Dot8 is the major.minor.patch string for 1.9.8 versions of DCOS
DCOSVersion1Dot9Dot8 string = "1.9.8"
// DCOSVersion1Dot8Dot8 is the major.minor.patch string for 1.8.8 versions of DCOS
DCOSVersion1Dot8Dot8 string = "1.8.8"
// DCOSDefaultVersion is the default major.minor.patch version for DCOS
DCOSDefaultVersion string = DCOSVersion1Dot11Dot0
)
// AllDCOSSupportedVersions maintain a list of available dcos versions in aks-engine
var AllDCOSSupportedVersions = []string{
DCOSVersion1Dot11Dot2,
DCOSVersion1Dot11Dot0,
DCOSVersion1Dot10Dot0,
DCOSVersion1Dot9Dot8,
DCOSVersion1Dot9Dot0,
DCOSVersion1Dot8Dot8,
}
const (
// SwarmVersion is the Swarm orchestrator version
SwarmVersion = "swarm:1.1.0"
// DockerCEVersion is the DockerCE orchestrator version
DockerCEVersion = "17.03.*"
)
// GetAllSupportedDCOSVersions returns a slice of all supported DCOS versions.
func GetAllSupportedDCOSVersions() []string {
return AllDCOSSupportedVersions
}
// GetAllSupportedSwarmVersions returns a slice of all supported Swarm versions.
func GetAllSupportedSwarmVersions() []string {
return []string{SwarmVersion}
}
// GetAllSupportedDockerCEVersions returns a slice of all supported Docker CE versions.
func GetAllSupportedDockerCEVersions() []string {
return []string{DockerCEVersion}
}