This repository has been archived by the owner on Jan 16, 2023. It is now read-only.
forked from istio/gogo-genproto
/
generated.pb.go
6823 lines (6607 loc) · 174 KB
/
generated.pb.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
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: k8s.io/api/autoscaling/v2beta1/generated.proto
package k8s_io_api_autoscaling_v2beta1
import (
fmt "fmt"
proto "github.com/gogo/protobuf/proto"
io "io"
_ "istio.io/gogo-genproto/k8s.io/api/core/v1"
resource "istio.io/gogo-genproto/k8s.io/apimachinery/pkg/api/resource"
v1 "istio.io/gogo-genproto/k8s.io/apimachinery/pkg/apis/meta/v1"
_ "istio.io/gogo-genproto/k8s.io/apimachinery/pkg/runtime"
_ "istio.io/gogo-genproto/k8s.io/apimachinery/pkg/runtime/schema"
math "math"
math_bits "math/bits"
reflect "reflect"
strings "strings"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
// CrossVersionObjectReference contains enough information to let you identify the referred resource.
type CrossVersionObjectReference struct {
// Kind of the referent; More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds"
Kind string `protobuf:"bytes,1,opt,name=kind" json:"kind"`
// Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names
Name string `protobuf:"bytes,2,opt,name=name" json:"name"`
// API version of the referent
// +optional
ApiVersion string `protobuf:"bytes,3,opt,name=apiVersion" json:"apiVersion"`
}
func (m *CrossVersionObjectReference) Reset() { *m = CrossVersionObjectReference{} }
func (*CrossVersionObjectReference) ProtoMessage() {}
func (*CrossVersionObjectReference) Descriptor() ([]byte, []int) {
return fileDescriptor_ea74040359c1ed83, []int{0}
}
func (m *CrossVersionObjectReference) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *CrossVersionObjectReference) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_CrossVersionObjectReference.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *CrossVersionObjectReference) XXX_Merge(src proto.Message) {
xxx_messageInfo_CrossVersionObjectReference.Merge(m, src)
}
func (m *CrossVersionObjectReference) XXX_Size() int {
return m.Size()
}
func (m *CrossVersionObjectReference) XXX_DiscardUnknown() {
xxx_messageInfo_CrossVersionObjectReference.DiscardUnknown(m)
}
var xxx_messageInfo_CrossVersionObjectReference proto.InternalMessageInfo
func (m *CrossVersionObjectReference) GetKind() string {
if m != nil {
return m.Kind
}
return ""
}
func (m *CrossVersionObjectReference) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *CrossVersionObjectReference) GetApiVersion() string {
if m != nil {
return m.ApiVersion
}
return ""
}
// ExternalMetricSource indicates how to scale on a metric not associated with
// any Kubernetes object (for example length of queue in cloud
// messaging service, or QPS from loadbalancer running outside of cluster).
// Exactly one "target" type should be set.
type ExternalMetricSource struct {
// metricName is the name of the metric in question.
MetricName string `protobuf:"bytes,1,opt,name=metricName" json:"metricName"`
// metricSelector is used to identify a specific time series
// within a given metric.
// +optional
MetricSelector *v1.LabelSelector `protobuf:"bytes,2,opt,name=metricSelector" json:"metricSelector,omitempty"`
// targetValue is the target value of the metric (as a quantity).
// Mutually exclusive with TargetAverageValue.
// +optional
TargetValue *resource.Quantity `protobuf:"bytes,3,opt,name=targetValue" json:"targetValue,omitempty"`
// targetAverageValue is the target per-pod value of global metric (as a quantity).
// Mutually exclusive with TargetValue.
// +optional
TargetAverageValue *resource.Quantity `protobuf:"bytes,4,opt,name=targetAverageValue" json:"targetAverageValue,omitempty"`
}
func (m *ExternalMetricSource) Reset() { *m = ExternalMetricSource{} }
func (*ExternalMetricSource) ProtoMessage() {}
func (*ExternalMetricSource) Descriptor() ([]byte, []int) {
return fileDescriptor_ea74040359c1ed83, []int{1}
}
func (m *ExternalMetricSource) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *ExternalMetricSource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_ExternalMetricSource.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *ExternalMetricSource) XXX_Merge(src proto.Message) {
xxx_messageInfo_ExternalMetricSource.Merge(m, src)
}
func (m *ExternalMetricSource) XXX_Size() int {
return m.Size()
}
func (m *ExternalMetricSource) XXX_DiscardUnknown() {
xxx_messageInfo_ExternalMetricSource.DiscardUnknown(m)
}
var xxx_messageInfo_ExternalMetricSource proto.InternalMessageInfo
func (m *ExternalMetricSource) GetMetricName() string {
if m != nil {
return m.MetricName
}
return ""
}
func (m *ExternalMetricSource) GetMetricSelector() *v1.LabelSelector {
if m != nil {
return m.MetricSelector
}
return nil
}
func (m *ExternalMetricSource) GetTargetValue() *resource.Quantity {
if m != nil {
return m.TargetValue
}
return nil
}
func (m *ExternalMetricSource) GetTargetAverageValue() *resource.Quantity {
if m != nil {
return m.TargetAverageValue
}
return nil
}
// ExternalMetricStatus indicates the current value of a global metric
// not associated with any Kubernetes object.
type ExternalMetricStatus struct {
// metricName is the name of a metric used for autoscaling in
// metric system.
MetricName string `protobuf:"bytes,1,opt,name=metricName" json:"metricName"`
// metricSelector is used to identify a specific time series
// within a given metric.
// +optional
MetricSelector *v1.LabelSelector `protobuf:"bytes,2,opt,name=metricSelector" json:"metricSelector,omitempty"`
// currentValue is the current value of the metric (as a quantity)
CurrentValue *resource.Quantity `protobuf:"bytes,3,opt,name=currentValue" json:"currentValue,omitempty"`
// currentAverageValue is the current value of metric averaged over autoscaled pods.
// +optional
CurrentAverageValue *resource.Quantity `protobuf:"bytes,4,opt,name=currentAverageValue" json:"currentAverageValue,omitempty"`
}
func (m *ExternalMetricStatus) Reset() { *m = ExternalMetricStatus{} }
func (*ExternalMetricStatus) ProtoMessage() {}
func (*ExternalMetricStatus) Descriptor() ([]byte, []int) {
return fileDescriptor_ea74040359c1ed83, []int{2}
}
func (m *ExternalMetricStatus) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *ExternalMetricStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_ExternalMetricStatus.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *ExternalMetricStatus) XXX_Merge(src proto.Message) {
xxx_messageInfo_ExternalMetricStatus.Merge(m, src)
}
func (m *ExternalMetricStatus) XXX_Size() int {
return m.Size()
}
func (m *ExternalMetricStatus) XXX_DiscardUnknown() {
xxx_messageInfo_ExternalMetricStatus.DiscardUnknown(m)
}
var xxx_messageInfo_ExternalMetricStatus proto.InternalMessageInfo
func (m *ExternalMetricStatus) GetMetricName() string {
if m != nil {
return m.MetricName
}
return ""
}
func (m *ExternalMetricStatus) GetMetricSelector() *v1.LabelSelector {
if m != nil {
return m.MetricSelector
}
return nil
}
func (m *ExternalMetricStatus) GetCurrentValue() *resource.Quantity {
if m != nil {
return m.CurrentValue
}
return nil
}
func (m *ExternalMetricStatus) GetCurrentAverageValue() *resource.Quantity {
if m != nil {
return m.CurrentAverageValue
}
return nil
}
// HorizontalPodAutoscaler is the configuration for a horizontal pod
// autoscaler, which automatically manages the replica count of any resource
// implementing the scale subresource based on the metrics specified.
type HorizontalPodAutoscaler struct {
// metadata is the standard object metadata.
// More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
// +optional
Metadata *v1.ObjectMeta `protobuf:"bytes,1,opt,name=metadata" json:"metadata,omitempty"`
// spec is the specification for the behaviour of the autoscaler.
// More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status.
// +optional
Spec *HorizontalPodAutoscalerSpec `protobuf:"bytes,2,opt,name=spec" json:"spec,omitempty"`
// status is the current information about the autoscaler.
// +optional
Status *HorizontalPodAutoscalerStatus `protobuf:"bytes,3,opt,name=status" json:"status,omitempty"`
}
func (m *HorizontalPodAutoscaler) Reset() { *m = HorizontalPodAutoscaler{} }
func (*HorizontalPodAutoscaler) ProtoMessage() {}
func (*HorizontalPodAutoscaler) Descriptor() ([]byte, []int) {
return fileDescriptor_ea74040359c1ed83, []int{3}
}
func (m *HorizontalPodAutoscaler) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *HorizontalPodAutoscaler) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_HorizontalPodAutoscaler.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *HorizontalPodAutoscaler) XXX_Merge(src proto.Message) {
xxx_messageInfo_HorizontalPodAutoscaler.Merge(m, src)
}
func (m *HorizontalPodAutoscaler) XXX_Size() int {
return m.Size()
}
func (m *HorizontalPodAutoscaler) XXX_DiscardUnknown() {
xxx_messageInfo_HorizontalPodAutoscaler.DiscardUnknown(m)
}
var xxx_messageInfo_HorizontalPodAutoscaler proto.InternalMessageInfo
func (m *HorizontalPodAutoscaler) GetMetadata() *v1.ObjectMeta {
if m != nil {
return m.Metadata
}
return nil
}
func (m *HorizontalPodAutoscaler) GetSpec() *HorizontalPodAutoscalerSpec {
if m != nil {
return m.Spec
}
return nil
}
func (m *HorizontalPodAutoscaler) GetStatus() *HorizontalPodAutoscalerStatus {
if m != nil {
return m.Status
}
return nil
}
// HorizontalPodAutoscalerCondition describes the state of
// a HorizontalPodAutoscaler at a certain point.
type HorizontalPodAutoscalerCondition struct {
// type describes the current condition
Type string `protobuf:"bytes,1,opt,name=type" json:"type"`
// status is the status of the condition (True, False, Unknown)
Status string `protobuf:"bytes,2,opt,name=status" json:"status"`
// lastTransitionTime is the last time the condition transitioned from
// one status to another
// +optional
LastTransitionTime *v1.Time `protobuf:"bytes,3,opt,name=lastTransitionTime" json:"lastTransitionTime,omitempty"`
// reason is the reason for the condition's last transition.
// +optional
Reason string `protobuf:"bytes,4,opt,name=reason" json:"reason"`
// message is a human-readable explanation containing details about
// the transition
// +optional
Message string `protobuf:"bytes,5,opt,name=message" json:"message"`
}
func (m *HorizontalPodAutoscalerCondition) Reset() { *m = HorizontalPodAutoscalerCondition{} }
func (*HorizontalPodAutoscalerCondition) ProtoMessage() {}
func (*HorizontalPodAutoscalerCondition) Descriptor() ([]byte, []int) {
return fileDescriptor_ea74040359c1ed83, []int{4}
}
func (m *HorizontalPodAutoscalerCondition) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *HorizontalPodAutoscalerCondition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_HorizontalPodAutoscalerCondition.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *HorizontalPodAutoscalerCondition) XXX_Merge(src proto.Message) {
xxx_messageInfo_HorizontalPodAutoscalerCondition.Merge(m, src)
}
func (m *HorizontalPodAutoscalerCondition) XXX_Size() int {
return m.Size()
}
func (m *HorizontalPodAutoscalerCondition) XXX_DiscardUnknown() {
xxx_messageInfo_HorizontalPodAutoscalerCondition.DiscardUnknown(m)
}
var xxx_messageInfo_HorizontalPodAutoscalerCondition proto.InternalMessageInfo
func (m *HorizontalPodAutoscalerCondition) GetType() string {
if m != nil {
return m.Type
}
return ""
}
func (m *HorizontalPodAutoscalerCondition) GetStatus() string {
if m != nil {
return m.Status
}
return ""
}
func (m *HorizontalPodAutoscalerCondition) GetLastTransitionTime() *v1.Time {
if m != nil {
return m.LastTransitionTime
}
return nil
}
func (m *HorizontalPodAutoscalerCondition) GetReason() string {
if m != nil {
return m.Reason
}
return ""
}
func (m *HorizontalPodAutoscalerCondition) GetMessage() string {
if m != nil {
return m.Message
}
return ""
}
// HorizontalPodAutoscaler is a list of horizontal pod autoscaler objects.
type HorizontalPodAutoscalerList struct {
// metadata is the standard list metadata.
// +optional
Metadata *v1.ListMeta `protobuf:"bytes,1,opt,name=metadata" json:"metadata,omitempty"`
// items is the list of horizontal pod autoscaler objects.
Items []*HorizontalPodAutoscaler `protobuf:"bytes,2,rep,name=items" json:"items,omitempty"`
}
func (m *HorizontalPodAutoscalerList) Reset() { *m = HorizontalPodAutoscalerList{} }
func (*HorizontalPodAutoscalerList) ProtoMessage() {}
func (*HorizontalPodAutoscalerList) Descriptor() ([]byte, []int) {
return fileDescriptor_ea74040359c1ed83, []int{5}
}
func (m *HorizontalPodAutoscalerList) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *HorizontalPodAutoscalerList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_HorizontalPodAutoscalerList.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *HorizontalPodAutoscalerList) XXX_Merge(src proto.Message) {
xxx_messageInfo_HorizontalPodAutoscalerList.Merge(m, src)
}
func (m *HorizontalPodAutoscalerList) XXX_Size() int {
return m.Size()
}
func (m *HorizontalPodAutoscalerList) XXX_DiscardUnknown() {
xxx_messageInfo_HorizontalPodAutoscalerList.DiscardUnknown(m)
}
var xxx_messageInfo_HorizontalPodAutoscalerList proto.InternalMessageInfo
func (m *HorizontalPodAutoscalerList) GetMetadata() *v1.ListMeta {
if m != nil {
return m.Metadata
}
return nil
}
func (m *HorizontalPodAutoscalerList) GetItems() []*HorizontalPodAutoscaler {
if m != nil {
return m.Items
}
return nil
}
// HorizontalPodAutoscalerSpec describes the desired functionality of the HorizontalPodAutoscaler.
type HorizontalPodAutoscalerSpec struct {
// scaleTargetRef points to the target resource to scale, and is used to the pods for which metrics
// should be collected, as well as to actually change the replica count.
ScaleTargetRef *CrossVersionObjectReference `protobuf:"bytes,1,opt,name=scaleTargetRef" json:"scaleTargetRef,omitempty"`
// minReplicas is the lower limit for the number of replicas to which the autoscaler
// can scale down. It defaults to 1 pod. minReplicas is allowed to be 0 if the
// alpha feature gate HPAScaleToZero is enabled and at least one Object or External
// metric is configured. Scaling is active as long as at least one metric value is
// available.
// +optional
MinReplicas int32 `protobuf:"varint,2,opt,name=minReplicas" json:"minReplicas"`
// maxReplicas is the upper limit for the number of replicas to which the autoscaler can scale up.
// It cannot be less that minReplicas.
MaxReplicas int32 `protobuf:"varint,3,opt,name=maxReplicas" json:"maxReplicas"`
// metrics contains the specifications for which to use to calculate the
// desired replica count (the maximum replica count across all metrics will
// be used). The desired replica count is calculated multiplying the
// ratio between the target value and the current value by the current
// number of pods. Ergo, metrics used must decrease as the pod count is
// increased, and vice-versa. See the individual metric source types for
// more information about how each type of metric must respond.
// +optional
Metrics []*MetricSpec `protobuf:"bytes,4,rep,name=metrics" json:"metrics,omitempty"`
}
func (m *HorizontalPodAutoscalerSpec) Reset() { *m = HorizontalPodAutoscalerSpec{} }
func (*HorizontalPodAutoscalerSpec) ProtoMessage() {}
func (*HorizontalPodAutoscalerSpec) Descriptor() ([]byte, []int) {
return fileDescriptor_ea74040359c1ed83, []int{6}
}
func (m *HorizontalPodAutoscalerSpec) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *HorizontalPodAutoscalerSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_HorizontalPodAutoscalerSpec.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *HorizontalPodAutoscalerSpec) XXX_Merge(src proto.Message) {
xxx_messageInfo_HorizontalPodAutoscalerSpec.Merge(m, src)
}
func (m *HorizontalPodAutoscalerSpec) XXX_Size() int {
return m.Size()
}
func (m *HorizontalPodAutoscalerSpec) XXX_DiscardUnknown() {
xxx_messageInfo_HorizontalPodAutoscalerSpec.DiscardUnknown(m)
}
var xxx_messageInfo_HorizontalPodAutoscalerSpec proto.InternalMessageInfo
func (m *HorizontalPodAutoscalerSpec) GetScaleTargetRef() *CrossVersionObjectReference {
if m != nil {
return m.ScaleTargetRef
}
return nil
}
func (m *HorizontalPodAutoscalerSpec) GetMinReplicas() int32 {
if m != nil {
return m.MinReplicas
}
return 0
}
func (m *HorizontalPodAutoscalerSpec) GetMaxReplicas() int32 {
if m != nil {
return m.MaxReplicas
}
return 0
}
func (m *HorizontalPodAutoscalerSpec) GetMetrics() []*MetricSpec {
if m != nil {
return m.Metrics
}
return nil
}
// HorizontalPodAutoscalerStatus describes the current status of a horizontal pod autoscaler.
type HorizontalPodAutoscalerStatus struct {
// observedGeneration is the most recent generation observed by this autoscaler.
// +optional
ObservedGeneration int64 `protobuf:"varint,1,opt,name=observedGeneration" json:"observedGeneration"`
// lastScaleTime is the last time the HorizontalPodAutoscaler scaled the number of pods,
// used by the autoscaler to control how often the number of pods is changed.
// +optional
LastScaleTime *v1.Time `protobuf:"bytes,2,opt,name=lastScaleTime" json:"lastScaleTime,omitempty"`
// currentReplicas is current number of replicas of pods managed by this autoscaler,
// as last seen by the autoscaler.
CurrentReplicas int32 `protobuf:"varint,3,opt,name=currentReplicas" json:"currentReplicas"`
// desiredReplicas is the desired number of replicas of pods managed by this autoscaler,
// as last calculated by the autoscaler.
DesiredReplicas int32 `protobuf:"varint,4,opt,name=desiredReplicas" json:"desiredReplicas"`
// currentMetrics is the last read state of the metrics used by this autoscaler.
// +optional
CurrentMetrics []*MetricStatus `protobuf:"bytes,5,rep,name=currentMetrics" json:"currentMetrics,omitempty"`
// conditions is the set of conditions required for this autoscaler to scale its target,
// and indicates whether or not those conditions are met.
Conditions []*HorizontalPodAutoscalerCondition `protobuf:"bytes,6,rep,name=conditions" json:"conditions,omitempty"`
}
func (m *HorizontalPodAutoscalerStatus) Reset() { *m = HorizontalPodAutoscalerStatus{} }
func (*HorizontalPodAutoscalerStatus) ProtoMessage() {}
func (*HorizontalPodAutoscalerStatus) Descriptor() ([]byte, []int) {
return fileDescriptor_ea74040359c1ed83, []int{7}
}
func (m *HorizontalPodAutoscalerStatus) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *HorizontalPodAutoscalerStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_HorizontalPodAutoscalerStatus.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *HorizontalPodAutoscalerStatus) XXX_Merge(src proto.Message) {
xxx_messageInfo_HorizontalPodAutoscalerStatus.Merge(m, src)
}
func (m *HorizontalPodAutoscalerStatus) XXX_Size() int {
return m.Size()
}
func (m *HorizontalPodAutoscalerStatus) XXX_DiscardUnknown() {
xxx_messageInfo_HorizontalPodAutoscalerStatus.DiscardUnknown(m)
}
var xxx_messageInfo_HorizontalPodAutoscalerStatus proto.InternalMessageInfo
func (m *HorizontalPodAutoscalerStatus) GetObservedGeneration() int64 {
if m != nil {
return m.ObservedGeneration
}
return 0
}
func (m *HorizontalPodAutoscalerStatus) GetLastScaleTime() *v1.Time {
if m != nil {
return m.LastScaleTime
}
return nil
}
func (m *HorizontalPodAutoscalerStatus) GetCurrentReplicas() int32 {
if m != nil {
return m.CurrentReplicas
}
return 0
}
func (m *HorizontalPodAutoscalerStatus) GetDesiredReplicas() int32 {
if m != nil {
return m.DesiredReplicas
}
return 0
}
func (m *HorizontalPodAutoscalerStatus) GetCurrentMetrics() []*MetricStatus {
if m != nil {
return m.CurrentMetrics
}
return nil
}
func (m *HorizontalPodAutoscalerStatus) GetConditions() []*HorizontalPodAutoscalerCondition {
if m != nil {
return m.Conditions
}
return nil
}
// MetricSpec specifies how to scale based on a single metric
// (only `type` and one other matching field should be set at once).
type MetricSpec struct {
// type is the type of metric source. It should be one of "Object",
// "Pods" or "Resource", each mapping to a matching field in the object.
Type string `protobuf:"bytes,1,opt,name=type" json:"type"`
// object refers to a metric describing a single kubernetes object
// (for example, hits-per-second on an Ingress object).
// +optional
Object *ObjectMetricSource `protobuf:"bytes,2,opt,name=object" json:"object,omitempty"`
// pods refers to a metric describing each pod in the current scale target
// (for example, transactions-processed-per-second). The values will be
// averaged together before being compared to the target value.
// +optional
Pods *PodsMetricSource `protobuf:"bytes,3,opt,name=pods" json:"pods,omitempty"`
// resource refers to a resource metric (such as those specified in
// requests and limits) known to Kubernetes describing each pod in the
// current scale target (e.g. CPU or memory). Such metrics are built in to
// Kubernetes, and have special scaling options on top of those available
// to normal per-pod metrics using the "pods" source.
// +optional
Resource *ResourceMetricSource `protobuf:"bytes,4,opt,name=resource" json:"resource,omitempty"`
// external refers to a global metric that is not associated
// with any Kubernetes object. It allows autoscaling based on information
// coming from components running outside of cluster
// (for example length of queue in cloud messaging service, or
// QPS from loadbalancer running outside of cluster).
// +optional
External *ExternalMetricSource `protobuf:"bytes,5,opt,name=external" json:"external,omitempty"`
}
func (m *MetricSpec) Reset() { *m = MetricSpec{} }
func (*MetricSpec) ProtoMessage() {}
func (*MetricSpec) Descriptor() ([]byte, []int) {
return fileDescriptor_ea74040359c1ed83, []int{8}
}
func (m *MetricSpec) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *MetricSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_MetricSpec.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *MetricSpec) XXX_Merge(src proto.Message) {
xxx_messageInfo_MetricSpec.Merge(m, src)
}
func (m *MetricSpec) XXX_Size() int {
return m.Size()
}
func (m *MetricSpec) XXX_DiscardUnknown() {
xxx_messageInfo_MetricSpec.DiscardUnknown(m)
}
var xxx_messageInfo_MetricSpec proto.InternalMessageInfo
func (m *MetricSpec) GetType() string {
if m != nil {
return m.Type
}
return ""
}
func (m *MetricSpec) GetObject() *ObjectMetricSource {
if m != nil {
return m.Object
}
return nil
}
func (m *MetricSpec) GetPods() *PodsMetricSource {
if m != nil {
return m.Pods
}
return nil
}
func (m *MetricSpec) GetResource() *ResourceMetricSource {
if m != nil {
return m.Resource
}
return nil
}
func (m *MetricSpec) GetExternal() *ExternalMetricSource {
if m != nil {
return m.External
}
return nil
}
// MetricStatus describes the last-read state of a single metric.
type MetricStatus struct {
// type is the type of metric source. It will be one of "Object",
// "Pods" or "Resource", each corresponds to a matching field in the object.
Type string `protobuf:"bytes,1,opt,name=type" json:"type"`
// object refers to a metric describing a single kubernetes object
// (for example, hits-per-second on an Ingress object).
// +optional
Object *ObjectMetricStatus `protobuf:"bytes,2,opt,name=object" json:"object,omitempty"`
// pods refers to a metric describing each pod in the current scale target
// (for example, transactions-processed-per-second). The values will be
// averaged together before being compared to the target value.
// +optional
Pods *PodsMetricStatus `protobuf:"bytes,3,opt,name=pods" json:"pods,omitempty"`
// resource refers to a resource metric (such as those specified in
// requests and limits) known to Kubernetes describing each pod in the
// current scale target (e.g. CPU or memory). Such metrics are built in to
// Kubernetes, and have special scaling options on top of those available
// to normal per-pod metrics using the "pods" source.
// +optional
Resource *ResourceMetricStatus `protobuf:"bytes,4,opt,name=resource" json:"resource,omitempty"`
// external refers to a global metric that is not associated
// with any Kubernetes object. It allows autoscaling based on information
// coming from components running outside of cluster
// (for example length of queue in cloud messaging service, or
// QPS from loadbalancer running outside of cluster).
// +optional
External *ExternalMetricStatus `protobuf:"bytes,5,opt,name=external" json:"external,omitempty"`
}
func (m *MetricStatus) Reset() { *m = MetricStatus{} }
func (*MetricStatus) ProtoMessage() {}
func (*MetricStatus) Descriptor() ([]byte, []int) {
return fileDescriptor_ea74040359c1ed83, []int{9}
}
func (m *MetricStatus) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *MetricStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_MetricStatus.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *MetricStatus) XXX_Merge(src proto.Message) {
xxx_messageInfo_MetricStatus.Merge(m, src)
}
func (m *MetricStatus) XXX_Size() int {
return m.Size()
}
func (m *MetricStatus) XXX_DiscardUnknown() {
xxx_messageInfo_MetricStatus.DiscardUnknown(m)
}
var xxx_messageInfo_MetricStatus proto.InternalMessageInfo
func (m *MetricStatus) GetType() string {
if m != nil {
return m.Type
}
return ""
}
func (m *MetricStatus) GetObject() *ObjectMetricStatus {
if m != nil {
return m.Object
}
return nil
}
func (m *MetricStatus) GetPods() *PodsMetricStatus {
if m != nil {
return m.Pods
}
return nil
}
func (m *MetricStatus) GetResource() *ResourceMetricStatus {
if m != nil {
return m.Resource
}
return nil
}
func (m *MetricStatus) GetExternal() *ExternalMetricStatus {
if m != nil {
return m.External
}
return nil
}
// ObjectMetricSource indicates how to scale on a metric describing a
// kubernetes object (for example, hits-per-second on an Ingress object).
type ObjectMetricSource struct {
// target is the described Kubernetes object.
Target *CrossVersionObjectReference `protobuf:"bytes,1,opt,name=target" json:"target,omitempty"`
// metricName is the name of the metric in question.
MetricName string `protobuf:"bytes,2,opt,name=metricName" json:"metricName"`
// targetValue is the target value of the metric (as a quantity).
TargetValue *resource.Quantity `protobuf:"bytes,3,opt,name=targetValue" json:"targetValue,omitempty"`
// selector is the string-encoded form of a standard kubernetes label selector for the given metric
// When set, it is passed as an additional parameter to the metrics server for more specific metrics scoping
// When unset, just the metricName will be used to gather metrics.
// +optional
Selector *v1.LabelSelector `protobuf:"bytes,4,opt,name=selector" json:"selector,omitempty"`
// averageValue is the target value of the average of the
// metric across all relevant pods (as a quantity)
// +optional
AverageValue *resource.Quantity `protobuf:"bytes,5,opt,name=averageValue" json:"averageValue,omitempty"`
}
func (m *ObjectMetricSource) Reset() { *m = ObjectMetricSource{} }
func (*ObjectMetricSource) ProtoMessage() {}
func (*ObjectMetricSource) Descriptor() ([]byte, []int) {
return fileDescriptor_ea74040359c1ed83, []int{10}
}
func (m *ObjectMetricSource) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *ObjectMetricSource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_ObjectMetricSource.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *ObjectMetricSource) XXX_Merge(src proto.Message) {
xxx_messageInfo_ObjectMetricSource.Merge(m, src)
}
func (m *ObjectMetricSource) XXX_Size() int {
return m.Size()
}
func (m *ObjectMetricSource) XXX_DiscardUnknown() {
xxx_messageInfo_ObjectMetricSource.DiscardUnknown(m)
}
var xxx_messageInfo_ObjectMetricSource proto.InternalMessageInfo
func (m *ObjectMetricSource) GetTarget() *CrossVersionObjectReference {
if m != nil {
return m.Target
}
return nil
}
func (m *ObjectMetricSource) GetMetricName() string {
if m != nil {
return m.MetricName
}
return ""
}
func (m *ObjectMetricSource) GetTargetValue() *resource.Quantity {
if m != nil {
return m.TargetValue
}
return nil
}
func (m *ObjectMetricSource) GetSelector() *v1.LabelSelector {
if m != nil {
return m.Selector
}
return nil
}
func (m *ObjectMetricSource) GetAverageValue() *resource.Quantity {
if m != nil {
return m.AverageValue
}
return nil
}
// ObjectMetricStatus indicates the current value of a metric describing a
// kubernetes object (for example, hits-per-second on an Ingress object).
type ObjectMetricStatus struct {
// target is the described Kubernetes object.
Target *CrossVersionObjectReference `protobuf:"bytes,1,opt,name=target" json:"target,omitempty"`
// metricName is the name of the metric in question.
MetricName string `protobuf:"bytes,2,opt,name=metricName" json:"metricName"`
// currentValue is the current value of the metric (as a quantity).
CurrentValue *resource.Quantity `protobuf:"bytes,3,opt,name=currentValue" json:"currentValue,omitempty"`
// selector is the string-encoded form of a standard kubernetes label selector for the given metric
// When set in the ObjectMetricSource, it is passed as an additional parameter to the metrics server for more specific metrics scoping.
// When unset, just the metricName will be used to gather metrics.
// +optional
Selector *v1.LabelSelector `protobuf:"bytes,4,opt,name=selector" json:"selector,omitempty"`
// averageValue is the current value of the average of the
// metric across all relevant pods (as a quantity)
// +optional
AverageValue *resource.Quantity `protobuf:"bytes,5,opt,name=averageValue" json:"averageValue,omitempty"`
}
func (m *ObjectMetricStatus) Reset() { *m = ObjectMetricStatus{} }
func (*ObjectMetricStatus) ProtoMessage() {}
func (*ObjectMetricStatus) Descriptor() ([]byte, []int) {
return fileDescriptor_ea74040359c1ed83, []int{11}
}
func (m *ObjectMetricStatus) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *ObjectMetricStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_ObjectMetricStatus.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *ObjectMetricStatus) XXX_Merge(src proto.Message) {
xxx_messageInfo_ObjectMetricStatus.Merge(m, src)
}
func (m *ObjectMetricStatus) XXX_Size() int {
return m.Size()
}
func (m *ObjectMetricStatus) XXX_DiscardUnknown() {
xxx_messageInfo_ObjectMetricStatus.DiscardUnknown(m)
}
var xxx_messageInfo_ObjectMetricStatus proto.InternalMessageInfo
func (m *ObjectMetricStatus) GetTarget() *CrossVersionObjectReference {
if m != nil {
return m.Target
}
return nil
}
func (m *ObjectMetricStatus) GetMetricName() string {
if m != nil {
return m.MetricName
}
return ""
}
func (m *ObjectMetricStatus) GetCurrentValue() *resource.Quantity {
if m != nil {
return m.CurrentValue
}