File tree Expand file tree Collapse file tree 7 files changed +13
-13
lines changed Expand file tree Collapse file tree 7 files changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -100,7 +100,7 @@ type HorizontalPodAutoscalerSpec struct {
100
100
// MetricSourceType indicates the type of metric.
101
101
type MetricSourceType string
102
102
103
- var (
103
+ const (
104
104
// ObjectMetricSourceType is a metric describing a kubernetes object
105
105
// (for example, hits-per-second on an Ingress object).
106
106
ObjectMetricSourceType MetricSourceType = "Object"
@@ -228,7 +228,7 @@ type MetricTarget struct {
228
228
// "Value", "AverageValue", or "Utilization"
229
229
type MetricTargetType string
230
230
231
- var (
231
+ const (
232
232
// UtilizationMetricType is a possible value for MetricTarget.Type.
233
233
UtilizationMetricType MetricTargetType = "Utilization"
234
234
// ValueMetricType is a possible value for MetricTarget.Type.
@@ -282,7 +282,7 @@ const (
282
282
// a HorizontalPodAutoscaler.
283
283
type HorizontalPodAutoscalerConditionType string
284
284
285
- var (
285
+ const (
286
286
// ScalingActive indicates that the HPA controller is able to scale if necessary:
287
287
// it's correctly configured, can fetch the desired metrics, and isn't disabled.
288
288
ScalingActive HorizontalPodAutoscalerConditionType = "ScalingActive"
Original file line number Diff line number Diff line change @@ -275,7 +275,7 @@ var AllowAllCapabilities api.Capability = "*"
275
275
// FSType gives strong typing to different file systems that are used by volumes.
276
276
type FSType string
277
277
278
- var (
278
+ const (
279
279
AzureFile FSType = "azureFile"
280
280
Flocker FSType = "flocker"
281
281
FlexVolume FSType = "flexVolume"
Original file line number Diff line number Diff line change @@ -151,7 +151,7 @@ type ScaleStatus struct {
151
151
// MetricSourceType indicates the type of metric.
152
152
type MetricSourceType string
153
153
154
- var (
154
+ const (
155
155
// ObjectMetricSourceType is a metric describing a kubernetes object
156
156
// (for example, hits-per-second on an Ingress object).
157
157
ObjectMetricSourceType MetricSourceType = "Object"
@@ -322,7 +322,7 @@ type MetricStatus struct {
322
322
// a HorizontalPodAutoscaler.
323
323
type HorizontalPodAutoscalerConditionType string
324
324
325
- var (
325
+ const (
326
326
// ScalingActive indicates that the HPA controller is able to scale if necessary:
327
327
// it's correctly configured, can fetch the desired metrics, and isn't disabled.
328
328
ScalingActive HorizontalPodAutoscalerConditionType = "ScalingActive"
Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ type HorizontalPodAutoscalerSpec struct {
62
62
// MetricSourceType indicates the type of metric.
63
63
type MetricSourceType string
64
64
65
- var (
65
+ const (
66
66
// ObjectMetricSourceType is a metric describing a kubernetes object
67
67
// (for example, hits-per-second on an Ingress object).
68
68
ObjectMetricSourceType MetricSourceType = "Object"
@@ -231,7 +231,7 @@ type HorizontalPodAutoscalerStatus struct {
231
231
// a HorizontalPodAutoscaler.
232
232
type HorizontalPodAutoscalerConditionType string
233
233
234
- var (
234
+ const (
235
235
// ScalingActive indicates that the HPA controller is able to scale if necessary:
236
236
// it's correctly configured, can fetch the desired metrics, and isn't disabled.
237
237
ScalingActive HorizontalPodAutoscalerConditionType = "ScalingActive"
Original file line number Diff line number Diff line change @@ -120,7 +120,7 @@ type MetricSpec struct {
120
120
// MetricSourceType indicates the type of metric.
121
121
type MetricSourceType string
122
122
123
- var (
123
+ const (
124
124
// ObjectMetricSourceType is a metric describing a kubernetes object
125
125
// (for example, hits-per-second on an Ingress object).
126
126
ObjectMetricSourceType MetricSourceType = "Object"
@@ -221,7 +221,7 @@ type MetricTarget struct {
221
221
// "Value", "AverageValue", or "Utilization"
222
222
type MetricTargetType string
223
223
224
- var (
224
+ const (
225
225
// UtilizationMetricType declares a MetricTarget is an AverageUtilization value
226
226
UtilizationMetricType MetricTargetType = "Utilization"
227
227
// ValueMetricType declares a MetricTarget is a raw value
@@ -262,7 +262,7 @@ type HorizontalPodAutoscalerStatus struct {
262
262
// a HorizontalPodAutoscaler.
263
263
type HorizontalPodAutoscalerConditionType string
264
264
265
- var (
265
+ const (
266
266
// ScalingActive indicates that the HPA controller is able to scale if necessary:
267
267
// it's correctly configured, can fetch the desired metrics, and isn't disabled.
268
268
ScalingActive HorizontalPodAutoscalerConditionType = "ScalingActive"
Original file line number Diff line number Diff line change @@ -985,7 +985,7 @@ type AllowedHostPath struct {
985
985
// Deprecated: use FSType from policy API Group instead.
986
986
type FSType string
987
987
988
- var (
988
+ const (
989
989
AzureFile FSType = "azureFile"
990
990
Flocker FSType = "flocker"
991
991
FlexVolume FSType = "flexVolume"
Original file line number Diff line number Diff line change @@ -276,7 +276,7 @@ var AllowAllCapabilities v1.Capability = "*"
276
276
// FSType gives strong typing to different file systems that are used by volumes.
277
277
type FSType string
278
278
279
- var (
279
+ const (
280
280
AzureFile FSType = "azureFile"
281
281
Flocker FSType = "flocker"
282
282
FlexVolume FSType = "flexVolume"
You can’t perform that action at this time.
0 commit comments