/
constants.go
268 lines (229 loc) · 9.59 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
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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
//go:build go1.18
// +build go1.18
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
package armhybridcontainerservice
const (
moduleName = "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/hybridcontainerservice/armhybridcontainerservice"
moduleVersion = "v1.0.0"
)
// ActionType - Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs.
type ActionType string
const (
ActionTypeInternal ActionType = "Internal"
)
// PossibleActionTypeValues returns the possible values for the ActionType const type.
func PossibleActionTypeValues() []ActionType {
return []ActionType{
ActionTypeInternal,
}
}
// AddonPhase - Observed phase of the addon or component on the provisioned cluster. Possible values include: 'pending', 'provisioning',
// 'provisioning {HelmChartInstalled}', 'provisioning {MSICertificateDownloaded}',
// 'provisioned', 'deleting', 'failed', 'upgrading'
type AddonPhase string
const (
AddonPhaseDeleting AddonPhase = "deleting"
AddonPhaseFailed AddonPhase = "failed"
AddonPhasePending AddonPhase = "pending"
AddonPhaseProvisioned AddonPhase = "provisioned"
AddonPhaseProvisioning AddonPhase = "provisioning"
AddonPhaseProvisioningHelmChartInstalled AddonPhase = "provisioning {HelmChartInstalled}"
AddonPhaseProvisioningMSICertificateDownloaded AddonPhase = "provisioning {MSICertificateDownloaded}"
AddonPhaseUpgrading AddonPhase = "upgrading"
)
// PossibleAddonPhaseValues returns the possible values for the AddonPhase const type.
func PossibleAddonPhaseValues() []AddonPhase {
return []AddonPhase{
AddonPhaseDeleting,
AddonPhaseFailed,
AddonPhasePending,
AddonPhaseProvisioned,
AddonPhaseProvisioning,
AddonPhaseProvisioningHelmChartInstalled,
AddonPhaseProvisioningMSICertificateDownloaded,
AddonPhaseUpgrading,
}
}
// AzureHybridBenefit - Indicates whether Azure Hybrid Benefit is opted in. Default value is false
type AzureHybridBenefit string
const (
AzureHybridBenefitFalse AzureHybridBenefit = "False"
AzureHybridBenefitNotApplicable AzureHybridBenefit = "NotApplicable"
AzureHybridBenefitTrue AzureHybridBenefit = "True"
)
// PossibleAzureHybridBenefitValues returns the possible values for the AzureHybridBenefit const type.
func PossibleAzureHybridBenefitValues() []AzureHybridBenefit {
return []AzureHybridBenefit{
AzureHybridBenefitFalse,
AzureHybridBenefitNotApplicable,
AzureHybridBenefitTrue,
}
}
// CreatedByType - The type of identity that created the resource.
type CreatedByType string
const (
CreatedByTypeApplication CreatedByType = "Application"
CreatedByTypeKey CreatedByType = "Key"
CreatedByTypeManagedIdentity CreatedByType = "ManagedIdentity"
CreatedByTypeUser CreatedByType = "User"
)
// PossibleCreatedByTypeValues returns the possible values for the CreatedByType const type.
func PossibleCreatedByTypeValues() []CreatedByType {
return []CreatedByType{
CreatedByTypeApplication,
CreatedByTypeKey,
CreatedByTypeManagedIdentity,
CreatedByTypeUser,
}
}
// Expander - If not specified, the default is 'random'. See expanders [https://github.com/kubernetes/autoscaler/blob/master/cluster-autoscaler/FAQ.md#what-are-expanders]
// for more information.
type Expander string
const (
// ExpanderLeastWaste - Selects the node group that will have the least idle CPU (if tied, unused memory) after scale-up.
// This is useful when you have different classes of nodes, for example, high CPU or high memory nodes, and only want to expand
// those when there are pending pods that need a lot of those resources.
ExpanderLeastWaste Expander = "least-waste"
// ExpanderMostPods - Selects the node group that would be able to schedule the most pods when scaling up. This is useful
// when you are using nodeSelector to make sure certain pods land on certain nodes. Note that this won't cause the autoscaler
// to select bigger nodes vs. smaller, as it can add multiple smaller nodes at once.
ExpanderMostPods Expander = "most-pods"
// ExpanderPriority - Selects the node group that has the highest priority assigned by the user. It's configuration is described
// in more details [here](https://github.com/kubernetes/autoscaler/blob/master/cluster-autoscaler/expander/priority/readme.md).
ExpanderPriority Expander = "priority"
// ExpanderRandom - Used when you don't have a particular need for the node groups to scale differently.
ExpanderRandom Expander = "random"
)
// PossibleExpanderValues returns the possible values for the Expander const type.
func PossibleExpanderValues() []Expander {
return []Expander{
ExpanderLeastWaste,
ExpanderMostPods,
ExpanderPriority,
ExpanderRandom,
}
}
// ExtendedLocationTypes - The extended location type. Allowed value: 'CustomLocation'
type ExtendedLocationTypes string
const (
ExtendedLocationTypesCustomLocation ExtendedLocationTypes = "CustomLocation"
)
// PossibleExtendedLocationTypesValues returns the possible values for the ExtendedLocationTypes const type.
func PossibleExtendedLocationTypesValues() []ExtendedLocationTypes {
return []ExtendedLocationTypes{
ExtendedLocationTypesCustomLocation,
}
}
// NetworkPolicy - Network policy used for building Kubernetes network. Possible values include: 'calico'.
type NetworkPolicy string
const (
NetworkPolicyCalico NetworkPolicy = "calico"
)
// PossibleNetworkPolicyValues returns the possible values for the NetworkPolicy const type.
func PossibleNetworkPolicyValues() []NetworkPolicy {
return []NetworkPolicy{
NetworkPolicyCalico,
}
}
// OSSKU - Specifies the OS SKU used by the agent pool. The default is CBLMariner if OSType is Linux. The default is Windows2019
// when OSType is Windows.
type OSSKU string
const (
// OSSKUCBLMariner - Use Mariner as the OS for node images.
OSSKUCBLMariner OSSKU = "CBLMariner"
// OSSKUWindows2019 - Use Windows2019 as the OS for node images.
OSSKUWindows2019 OSSKU = "Windows2019"
// OSSKUWindows2022 - Use Windows2022 as the OS for node images.
OSSKUWindows2022 OSSKU = "Windows2022"
)
// PossibleOSSKUValues returns the possible values for the OSSKU const type.
func PossibleOSSKUValues() []OSSKU {
return []OSSKU{
OSSKUCBLMariner,
OSSKUWindows2019,
OSSKUWindows2022,
}
}
// Origin - The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default
// value is "user,system"
type Origin string
const (
OriginSystem Origin = "system"
OriginUser Origin = "user"
OriginUserSystem Origin = "user,system"
)
// PossibleOriginValues returns the possible values for the Origin const type.
func PossibleOriginValues() []Origin {
return []Origin{
OriginSystem,
OriginUser,
OriginUserSystem,
}
}
// OsType - The particular KubernetesVersion Image OS Type (Linux, Windows)
type OsType string
const (
OsTypeLinux OsType = "Linux"
OsTypeWindows OsType = "Windows"
)
// PossibleOsTypeValues returns the possible values for the OsType const type.
func PossibleOsTypeValues() []OsType {
return []OsType{
OsTypeLinux,
OsTypeWindows,
}
}
type ProvisioningState string
const (
ProvisioningStateAccepted ProvisioningState = "Accepted"
ProvisioningStateCanceled ProvisioningState = "Canceled"
ProvisioningStateCreating ProvisioningState = "Creating"
ProvisioningStateDeleting ProvisioningState = "Deleting"
ProvisioningStateFailed ProvisioningState = "Failed"
ProvisioningStatePending ProvisioningState = "Pending"
ProvisioningStateSucceeded ProvisioningState = "Succeeded"
ProvisioningStateUpdating ProvisioningState = "Updating"
)
// PossibleProvisioningStateValues returns the possible values for the ProvisioningState const type.
func PossibleProvisioningStateValues() []ProvisioningState {
return []ProvisioningState{
ProvisioningStateAccepted,
ProvisioningStateCanceled,
ProvisioningStateCreating,
ProvisioningStateDeleting,
ProvisioningStateFailed,
ProvisioningStatePending,
ProvisioningStateSucceeded,
ProvisioningStateUpdating,
}
}
// ResourceProvisioningState - Provisioning state of the resource
type ResourceProvisioningState string
const (
ResourceProvisioningStateAccepted ResourceProvisioningState = "Accepted"
ResourceProvisioningStateCanceled ResourceProvisioningState = "Canceled"
ResourceProvisioningStateCreating ResourceProvisioningState = "Creating"
ResourceProvisioningStateDeleting ResourceProvisioningState = "Deleting"
ResourceProvisioningStateFailed ResourceProvisioningState = "Failed"
ResourceProvisioningStatePending ResourceProvisioningState = "Pending"
ResourceProvisioningStateSucceeded ResourceProvisioningState = "Succeeded"
ResourceProvisioningStateUpdating ResourceProvisioningState = "Updating"
ResourceProvisioningStateUpgrading ResourceProvisioningState = "Upgrading"
)
// PossibleResourceProvisioningStateValues returns the possible values for the ResourceProvisioningState const type.
func PossibleResourceProvisioningStateValues() []ResourceProvisioningState {
return []ResourceProvisioningState{
ResourceProvisioningStateAccepted,
ResourceProvisioningStateCanceled,
ResourceProvisioningStateCreating,
ResourceProvisioningStateDeleting,
ResourceProvisioningStateFailed,
ResourceProvisioningStatePending,
ResourceProvisioningStateSucceeded,
ResourceProvisioningStateUpdating,
ResourceProvisioningStateUpgrading,
}
}