forked from ericchiang/k8s
-
Notifications
You must be signed in to change notification settings - Fork 0
/
generated.pb.go
14382 lines (13863 loc) · 361 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.
// source: k8s.io/kubernetes/pkg/apis/extensions/v1beta1/generated.proto
// DO NOT EDIT!
/*
Package v1beta1 is a generated protocol buffer package.
It is generated from these files:
k8s.io/kubernetes/pkg/apis/extensions/v1beta1/generated.proto
It has these top-level messages:
APIVersion
CustomMetricCurrentStatus
CustomMetricCurrentStatusList
CustomMetricTarget
CustomMetricTargetList
DaemonSet
DaemonSetList
DaemonSetSpec
DaemonSetStatus
DaemonSetUpdateStrategy
Deployment
DeploymentCondition
DeploymentList
DeploymentRollback
DeploymentSpec
DeploymentStatus
DeploymentStrategy
FSGroupStrategyOptions
HTTPIngressPath
HTTPIngressRuleValue
HostPortRange
IDRange
Ingress
IngressBackend
IngressList
IngressRule
IngressRuleValue
IngressSpec
IngressStatus
IngressTLS
NetworkPolicy
NetworkPolicyIngressRule
NetworkPolicyList
NetworkPolicyPeer
NetworkPolicyPort
NetworkPolicySpec
PodSecurityPolicy
PodSecurityPolicyList
PodSecurityPolicySpec
ReplicaSet
ReplicaSetCondition
ReplicaSetList
ReplicaSetSpec
ReplicaSetStatus
ReplicationControllerDummy
RollbackConfig
RollingUpdateDaemonSet
RollingUpdateDeployment
RunAsUserStrategyOptions
SELinuxStrategyOptions
Scale
ScaleSpec
ScaleStatus
SupplementalGroupsStrategyOptions
ThirdPartyResource
ThirdPartyResourceData
ThirdPartyResourceDataList
ThirdPartyResourceList
*/
package v1beta1
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import k8s_io_kubernetes_pkg_api_resource "github.com/ericchiang/k8s/api/resource"
import k8s_io_kubernetes_pkg_apis_meta_v1 "github.com/ericchiang/k8s/apis/meta/v1"
import _ "github.com/ericchiang/k8s/runtime"
import _ "github.com/ericchiang/k8s/runtime/schema"
import k8s_io_kubernetes_pkg_util_intstr "github.com/ericchiang/k8s/util/intstr"
import k8s_io_kubernetes_pkg_api_v1 "github.com/ericchiang/k8s/api/v1"
import io "io"
// 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.ProtoPackageIsVersion2 // please upgrade the proto package
// An APIVersion represents a single concrete version of an object model.
type APIVersion struct {
// Name of this version (e.g. 'v1').
// +optional
Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *APIVersion) Reset() { *m = APIVersion{} }
func (m *APIVersion) String() string { return proto.CompactTextString(m) }
func (*APIVersion) ProtoMessage() {}
func (*APIVersion) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{0} }
func (m *APIVersion) GetName() string {
if m != nil && m.Name != nil {
return *m.Name
}
return ""
}
type CustomMetricCurrentStatus struct {
// Custom Metric name.
Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
// Custom Metric value (average).
Value *k8s_io_kubernetes_pkg_api_resource.Quantity `protobuf:"bytes,2,opt,name=value" json:"value,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *CustomMetricCurrentStatus) Reset() { *m = CustomMetricCurrentStatus{} }
func (m *CustomMetricCurrentStatus) String() string { return proto.CompactTextString(m) }
func (*CustomMetricCurrentStatus) ProtoMessage() {}
func (*CustomMetricCurrentStatus) Descriptor() ([]byte, []int) {
return fileDescriptorGenerated, []int{1}
}
func (m *CustomMetricCurrentStatus) GetName() string {
if m != nil && m.Name != nil {
return *m.Name
}
return ""
}
func (m *CustomMetricCurrentStatus) GetValue() *k8s_io_kubernetes_pkg_api_resource.Quantity {
if m != nil {
return m.Value
}
return nil
}
type CustomMetricCurrentStatusList struct {
Items []*CustomMetricCurrentStatus `protobuf:"bytes,1,rep,name=items" json:"items,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *CustomMetricCurrentStatusList) Reset() { *m = CustomMetricCurrentStatusList{} }
func (m *CustomMetricCurrentStatusList) String() string { return proto.CompactTextString(m) }
func (*CustomMetricCurrentStatusList) ProtoMessage() {}
func (*CustomMetricCurrentStatusList) Descriptor() ([]byte, []int) {
return fileDescriptorGenerated, []int{2}
}
func (m *CustomMetricCurrentStatusList) GetItems() []*CustomMetricCurrentStatus {
if m != nil {
return m.Items
}
return nil
}
// Alpha-level support for Custom Metrics in HPA (as annotations).
type CustomMetricTarget struct {
// Custom Metric name.
Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
// Custom Metric value (average).
Value *k8s_io_kubernetes_pkg_api_resource.Quantity `protobuf:"bytes,2,opt,name=value" json:"value,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *CustomMetricTarget) Reset() { *m = CustomMetricTarget{} }
func (m *CustomMetricTarget) String() string { return proto.CompactTextString(m) }
func (*CustomMetricTarget) ProtoMessage() {}
func (*CustomMetricTarget) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{3} }
func (m *CustomMetricTarget) GetName() string {
if m != nil && m.Name != nil {
return *m.Name
}
return ""
}
func (m *CustomMetricTarget) GetValue() *k8s_io_kubernetes_pkg_api_resource.Quantity {
if m != nil {
return m.Value
}
return nil
}
type CustomMetricTargetList struct {
Items []*CustomMetricTarget `protobuf:"bytes,1,rep,name=items" json:"items,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *CustomMetricTargetList) Reset() { *m = CustomMetricTargetList{} }
func (m *CustomMetricTargetList) String() string { return proto.CompactTextString(m) }
func (*CustomMetricTargetList) ProtoMessage() {}
func (*CustomMetricTargetList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{4} }
func (m *CustomMetricTargetList) GetItems() []*CustomMetricTarget {
if m != nil {
return m.Items
}
return nil
}
// DaemonSet represents the configuration of a daemon set.
type DaemonSet struct {
// Standard object's metadata.
// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata
// +optional
Metadata *k8s_io_kubernetes_pkg_apis_meta_v1.ObjectMeta `protobuf:"bytes,1,opt,name=metadata" json:"metadata,omitempty"`
// The desired behavior of this daemon set.
// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status
// +optional
Spec *DaemonSetSpec `protobuf:"bytes,2,opt,name=spec" json:"spec,omitempty"`
// The current status of this daemon set. This data may be
// out of date by some window of time.
// Populated by the system.
// Read-only.
// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status
// +optional
Status *DaemonSetStatus `protobuf:"bytes,3,opt,name=status" json:"status,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *DaemonSet) Reset() { *m = DaemonSet{} }
func (m *DaemonSet) String() string { return proto.CompactTextString(m) }
func (*DaemonSet) ProtoMessage() {}
func (*DaemonSet) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{5} }
func (m *DaemonSet) GetMetadata() *k8s_io_kubernetes_pkg_apis_meta_v1.ObjectMeta {
if m != nil {
return m.Metadata
}
return nil
}
func (m *DaemonSet) GetSpec() *DaemonSetSpec {
if m != nil {
return m.Spec
}
return nil
}
func (m *DaemonSet) GetStatus() *DaemonSetStatus {
if m != nil {
return m.Status
}
return nil
}
// DaemonSetList is a collection of daemon sets.
type DaemonSetList struct {
// Standard list metadata.
// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata
// +optional
Metadata *k8s_io_kubernetes_pkg_apis_meta_v1.ListMeta `protobuf:"bytes,1,opt,name=metadata" json:"metadata,omitempty"`
// A list of daemon sets.
Items []*DaemonSet `protobuf:"bytes,2,rep,name=items" json:"items,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *DaemonSetList) Reset() { *m = DaemonSetList{} }
func (m *DaemonSetList) String() string { return proto.CompactTextString(m) }
func (*DaemonSetList) ProtoMessage() {}
func (*DaemonSetList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{6} }
func (m *DaemonSetList) GetMetadata() *k8s_io_kubernetes_pkg_apis_meta_v1.ListMeta {
if m != nil {
return m.Metadata
}
return nil
}
func (m *DaemonSetList) GetItems() []*DaemonSet {
if m != nil {
return m.Items
}
return nil
}
// DaemonSetSpec is the specification of a daemon set.
type DaemonSetSpec struct {
// A label query over pods that are managed by the daemon set.
// Must match in order to be controlled.
// If empty, defaulted to labels on Pod template.
// More info: http://kubernetes.io/docs/user-guide/labels#label-selectors
// +optional
Selector *k8s_io_kubernetes_pkg_apis_meta_v1.LabelSelector `protobuf:"bytes,1,opt,name=selector" json:"selector,omitempty"`
// An object that describes the pod that will be created.
// The DaemonSet will create exactly one copy of this pod on every node
// that matches the template's node selector (or on every node if no node
// selector is specified).
// More info: http://kubernetes.io/docs/user-guide/replication-controller#pod-template
Template *k8s_io_kubernetes_pkg_api_v1.PodTemplateSpec `protobuf:"bytes,2,opt,name=template" json:"template,omitempty"`
// An update strategy to replace existing DaemonSet pods with new pods.
// +optional
UpdateStrategy *DaemonSetUpdateStrategy `protobuf:"bytes,3,opt,name=updateStrategy" json:"updateStrategy,omitempty"`
// The minimum number of seconds for which a newly created DaemonSet pod should
// be ready without any of its container crashing, for it to be considered
// available. Defaults to 0 (pod will be considered available as soon as it
// is ready).
// +optional
MinReadySeconds *int32 `protobuf:"varint,4,opt,name=minReadySeconds" json:"minReadySeconds,omitempty"`
// A sequence number representing a specific generation of the template.
// Populated by the system. It can be set only during the creation.
// +optional
TemplateGeneration *int64 `protobuf:"varint,5,opt,name=templateGeneration" json:"templateGeneration,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *DaemonSetSpec) Reset() { *m = DaemonSetSpec{} }
func (m *DaemonSetSpec) String() string { return proto.CompactTextString(m) }
func (*DaemonSetSpec) ProtoMessage() {}
func (*DaemonSetSpec) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{7} }
func (m *DaemonSetSpec) GetSelector() *k8s_io_kubernetes_pkg_apis_meta_v1.LabelSelector {
if m != nil {
return m.Selector
}
return nil
}
func (m *DaemonSetSpec) GetTemplate() *k8s_io_kubernetes_pkg_api_v1.PodTemplateSpec {
if m != nil {
return m.Template
}
return nil
}
func (m *DaemonSetSpec) GetUpdateStrategy() *DaemonSetUpdateStrategy {
if m != nil {
return m.UpdateStrategy
}
return nil
}
func (m *DaemonSetSpec) GetMinReadySeconds() int32 {
if m != nil && m.MinReadySeconds != nil {
return *m.MinReadySeconds
}
return 0
}
func (m *DaemonSetSpec) GetTemplateGeneration() int64 {
if m != nil && m.TemplateGeneration != nil {
return *m.TemplateGeneration
}
return 0
}
// DaemonSetStatus represents the current status of a daemon set.
type DaemonSetStatus struct {
// The number of nodes that are running at least 1
// daemon pod and are supposed to run the daemon pod.
// More info: http://releases.k8s.io/HEAD/docs/admin/daemons.md
CurrentNumberScheduled *int32 `protobuf:"varint,1,opt,name=currentNumberScheduled" json:"currentNumberScheduled,omitempty"`
// The number of nodes that are running the daemon pod, but are
// not supposed to run the daemon pod.
// More info: http://releases.k8s.io/HEAD/docs/admin/daemons.md
NumberMisscheduled *int32 `protobuf:"varint,2,opt,name=numberMisscheduled" json:"numberMisscheduled,omitempty"`
// The total number of nodes that should be running the daemon
// pod (including nodes correctly running the daemon pod).
// More info: http://releases.k8s.io/HEAD/docs/admin/daemons.md
DesiredNumberScheduled *int32 `protobuf:"varint,3,opt,name=desiredNumberScheduled" json:"desiredNumberScheduled,omitempty"`
// The number of nodes that should be running the daemon pod and have one
// or more of the daemon pod running and ready.
NumberReady *int32 `protobuf:"varint,4,opt,name=numberReady" json:"numberReady,omitempty"`
// The most recent generation observed by the daemon set controller.
// +optional
ObservedGeneration *int64 `protobuf:"varint,5,opt,name=observedGeneration" json:"observedGeneration,omitempty"`
// The total number of nodes that are running updated daemon pod
// +optional
UpdatedNumberScheduled *int32 `protobuf:"varint,6,opt,name=updatedNumberScheduled" json:"updatedNumberScheduled,omitempty"`
// The number of nodes that should be running the
// daemon pod and have one or more of the daemon pod running and
// available (ready for at least spec.minReadySeconds)
// +optional
NumberAvailable *int32 `protobuf:"varint,7,opt,name=numberAvailable" json:"numberAvailable,omitempty"`
// The number of nodes that should be running the
// daemon pod and have none of the daemon pod running and available
// (ready for at least spec.minReadySeconds)
// +optional
NumberUnavailable *int32 `protobuf:"varint,8,opt,name=numberUnavailable" json:"numberUnavailable,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *DaemonSetStatus) Reset() { *m = DaemonSetStatus{} }
func (m *DaemonSetStatus) String() string { return proto.CompactTextString(m) }
func (*DaemonSetStatus) ProtoMessage() {}
func (*DaemonSetStatus) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{8} }
func (m *DaemonSetStatus) GetCurrentNumberScheduled() int32 {
if m != nil && m.CurrentNumberScheduled != nil {
return *m.CurrentNumberScheduled
}
return 0
}
func (m *DaemonSetStatus) GetNumberMisscheduled() int32 {
if m != nil && m.NumberMisscheduled != nil {
return *m.NumberMisscheduled
}
return 0
}
func (m *DaemonSetStatus) GetDesiredNumberScheduled() int32 {
if m != nil && m.DesiredNumberScheduled != nil {
return *m.DesiredNumberScheduled
}
return 0
}
func (m *DaemonSetStatus) GetNumberReady() int32 {
if m != nil && m.NumberReady != nil {
return *m.NumberReady
}
return 0
}
func (m *DaemonSetStatus) GetObservedGeneration() int64 {
if m != nil && m.ObservedGeneration != nil {
return *m.ObservedGeneration
}
return 0
}
func (m *DaemonSetStatus) GetUpdatedNumberScheduled() int32 {
if m != nil && m.UpdatedNumberScheduled != nil {
return *m.UpdatedNumberScheduled
}
return 0
}
func (m *DaemonSetStatus) GetNumberAvailable() int32 {
if m != nil && m.NumberAvailable != nil {
return *m.NumberAvailable
}
return 0
}
func (m *DaemonSetStatus) GetNumberUnavailable() int32 {
if m != nil && m.NumberUnavailable != nil {
return *m.NumberUnavailable
}
return 0
}
type DaemonSetUpdateStrategy struct {
// Type of daemon set update. Can be "RollingUpdate" or "OnDelete".
// Default is OnDelete.
// +optional
Type *string `protobuf:"bytes,1,opt,name=type" json:"type,omitempty"`
// Rolling update config params. Present only if type = "RollingUpdate".
// ---
// TODO: Update this to follow our convention for oneOf, whatever we decide it
// to be. Same as DeploymentStrategy.RollingUpdate.
// See https://github.com/kubernetes/kubernetes/issues/35345
// +optional
RollingUpdate *RollingUpdateDaemonSet `protobuf:"bytes,2,opt,name=rollingUpdate" json:"rollingUpdate,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *DaemonSetUpdateStrategy) Reset() { *m = DaemonSetUpdateStrategy{} }
func (m *DaemonSetUpdateStrategy) String() string { return proto.CompactTextString(m) }
func (*DaemonSetUpdateStrategy) ProtoMessage() {}
func (*DaemonSetUpdateStrategy) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{9} }
func (m *DaemonSetUpdateStrategy) GetType() string {
if m != nil && m.Type != nil {
return *m.Type
}
return ""
}
func (m *DaemonSetUpdateStrategy) GetRollingUpdate() *RollingUpdateDaemonSet {
if m != nil {
return m.RollingUpdate
}
return nil
}
// Deployment enables declarative updates for Pods and ReplicaSets.
type Deployment struct {
// Standard object metadata.
// +optional
Metadata *k8s_io_kubernetes_pkg_apis_meta_v1.ObjectMeta `protobuf:"bytes,1,opt,name=metadata" json:"metadata,omitempty"`
// Specification of the desired behavior of the Deployment.
// +optional
Spec *DeploymentSpec `protobuf:"bytes,2,opt,name=spec" json:"spec,omitempty"`
// Most recently observed status of the Deployment.
// +optional
Status *DeploymentStatus `protobuf:"bytes,3,opt,name=status" json:"status,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *Deployment) Reset() { *m = Deployment{} }
func (m *Deployment) String() string { return proto.CompactTextString(m) }
func (*Deployment) ProtoMessage() {}
func (*Deployment) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{10} }
func (m *Deployment) GetMetadata() *k8s_io_kubernetes_pkg_apis_meta_v1.ObjectMeta {
if m != nil {
return m.Metadata
}
return nil
}
func (m *Deployment) GetSpec() *DeploymentSpec {
if m != nil {
return m.Spec
}
return nil
}
func (m *Deployment) GetStatus() *DeploymentStatus {
if m != nil {
return m.Status
}
return nil
}
// DeploymentCondition describes the state of a deployment at a certain point.
type DeploymentCondition struct {
// Type of deployment condition.
Type *string `protobuf:"bytes,1,opt,name=type" json:"type,omitempty"`
// Status of the condition, one of True, False, Unknown.
Status *string `protobuf:"bytes,2,opt,name=status" json:"status,omitempty"`
// The last time this condition was updated.
LastUpdateTime *k8s_io_kubernetes_pkg_apis_meta_v1.Time `protobuf:"bytes,6,opt,name=lastUpdateTime" json:"lastUpdateTime,omitempty"`
// Last time the condition transitioned from one status to another.
LastTransitionTime *k8s_io_kubernetes_pkg_apis_meta_v1.Time `protobuf:"bytes,7,opt,name=lastTransitionTime" json:"lastTransitionTime,omitempty"`
// The reason for the condition's last transition.
Reason *string `protobuf:"bytes,4,opt,name=reason" json:"reason,omitempty"`
// A human readable message indicating details about the transition.
Message *string `protobuf:"bytes,5,opt,name=message" json:"message,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *DeploymentCondition) Reset() { *m = DeploymentCondition{} }
func (m *DeploymentCondition) String() string { return proto.CompactTextString(m) }
func (*DeploymentCondition) ProtoMessage() {}
func (*DeploymentCondition) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{11} }
func (m *DeploymentCondition) GetType() string {
if m != nil && m.Type != nil {
return *m.Type
}
return ""
}
func (m *DeploymentCondition) GetStatus() string {
if m != nil && m.Status != nil {
return *m.Status
}
return ""
}
func (m *DeploymentCondition) GetLastUpdateTime() *k8s_io_kubernetes_pkg_apis_meta_v1.Time {
if m != nil {
return m.LastUpdateTime
}
return nil
}
func (m *DeploymentCondition) GetLastTransitionTime() *k8s_io_kubernetes_pkg_apis_meta_v1.Time {
if m != nil {
return m.LastTransitionTime
}
return nil
}
func (m *DeploymentCondition) GetReason() string {
if m != nil && m.Reason != nil {
return *m.Reason
}
return ""
}
func (m *DeploymentCondition) GetMessage() string {
if m != nil && m.Message != nil {
return *m.Message
}
return ""
}
// DeploymentList is a list of Deployments.
type DeploymentList struct {
// Standard list metadata.
// +optional
Metadata *k8s_io_kubernetes_pkg_apis_meta_v1.ListMeta `protobuf:"bytes,1,opt,name=metadata" json:"metadata,omitempty"`
// Items is the list of Deployments.
Items []*Deployment `protobuf:"bytes,2,rep,name=items" json:"items,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *DeploymentList) Reset() { *m = DeploymentList{} }
func (m *DeploymentList) String() string { return proto.CompactTextString(m) }
func (*DeploymentList) ProtoMessage() {}
func (*DeploymentList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{12} }
func (m *DeploymentList) GetMetadata() *k8s_io_kubernetes_pkg_apis_meta_v1.ListMeta {
if m != nil {
return m.Metadata
}
return nil
}
func (m *DeploymentList) GetItems() []*Deployment {
if m != nil {
return m.Items
}
return nil
}
// DeploymentRollback stores the information required to rollback a deployment.
type DeploymentRollback struct {
// Required: This must match the Name of a deployment.
Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
// The annotations to be updated to a deployment
// +optional
UpdatedAnnotations map[string]string `protobuf:"bytes,2,rep,name=updatedAnnotations" json:"updatedAnnotations,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
// The config of this deployment rollback.
RollbackTo *RollbackConfig `protobuf:"bytes,3,opt,name=rollbackTo" json:"rollbackTo,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *DeploymentRollback) Reset() { *m = DeploymentRollback{} }
func (m *DeploymentRollback) String() string { return proto.CompactTextString(m) }
func (*DeploymentRollback) ProtoMessage() {}
func (*DeploymentRollback) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{13} }
func (m *DeploymentRollback) GetName() string {
if m != nil && m.Name != nil {
return *m.Name
}
return ""
}
func (m *DeploymentRollback) GetUpdatedAnnotations() map[string]string {
if m != nil {
return m.UpdatedAnnotations
}
return nil
}
func (m *DeploymentRollback) GetRollbackTo() *RollbackConfig {
if m != nil {
return m.RollbackTo
}
return nil
}
// DeploymentSpec is the specification of the desired behavior of the Deployment.
type DeploymentSpec struct {
// Number of desired pods. This is a pointer to distinguish between explicit
// zero and not specified. Defaults to 1.
// +optional
Replicas *int32 `protobuf:"varint,1,opt,name=replicas" json:"replicas,omitempty"`
// Label selector for pods. Existing ReplicaSets whose pods are
// selected by this will be the ones affected by this deployment.
// +optional
Selector *k8s_io_kubernetes_pkg_apis_meta_v1.LabelSelector `protobuf:"bytes,2,opt,name=selector" json:"selector,omitempty"`
// Template describes the pods that will be created.
Template *k8s_io_kubernetes_pkg_api_v1.PodTemplateSpec `protobuf:"bytes,3,opt,name=template" json:"template,omitempty"`
// The deployment strategy to use to replace existing pods with new ones.
// +optional
Strategy *DeploymentStrategy `protobuf:"bytes,4,opt,name=strategy" json:"strategy,omitempty"`
// Minimum number of seconds for which a newly created pod should be ready
// without any of its container crashing, for it to be considered available.
// Defaults to 0 (pod will be considered available as soon as it is ready)
// +optional
MinReadySeconds *int32 `protobuf:"varint,5,opt,name=minReadySeconds" json:"minReadySeconds,omitempty"`
// The number of old ReplicaSets to retain to allow rollback.
// This is a pointer to distinguish between explicit zero and not specified.
// +optional
RevisionHistoryLimit *int32 `protobuf:"varint,6,opt,name=revisionHistoryLimit" json:"revisionHistoryLimit,omitempty"`
// Indicates that the deployment is paused and will not be processed by the
// deployment controller.
// +optional
Paused *bool `protobuf:"varint,7,opt,name=paused" json:"paused,omitempty"`
// The config this deployment is rolling back to. Will be cleared after rollback is done.
// +optional
RollbackTo *RollbackConfig `protobuf:"bytes,8,opt,name=rollbackTo" json:"rollbackTo,omitempty"`
// The maximum time in seconds for a deployment to make progress before it
// is considered to be failed. The deployment controller will continue to
// process failed deployments and a condition with a ProgressDeadlineExceeded
// reason will be surfaced in the deployment status. Once autoRollback is
// implemented, the deployment controller will automatically rollback failed
// deployments. Note that progress will not be estimated during the time a
// deployment is paused. This is not set by default.
ProgressDeadlineSeconds *int32 `protobuf:"varint,9,opt,name=progressDeadlineSeconds" json:"progressDeadlineSeconds,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *DeploymentSpec) Reset() { *m = DeploymentSpec{} }
func (m *DeploymentSpec) String() string { return proto.CompactTextString(m) }
func (*DeploymentSpec) ProtoMessage() {}
func (*DeploymentSpec) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{14} }
func (m *DeploymentSpec) GetReplicas() int32 {
if m != nil && m.Replicas != nil {
return *m.Replicas
}
return 0
}
func (m *DeploymentSpec) GetSelector() *k8s_io_kubernetes_pkg_apis_meta_v1.LabelSelector {
if m != nil {
return m.Selector
}
return nil
}
func (m *DeploymentSpec) GetTemplate() *k8s_io_kubernetes_pkg_api_v1.PodTemplateSpec {
if m != nil {
return m.Template
}
return nil
}
func (m *DeploymentSpec) GetStrategy() *DeploymentStrategy {
if m != nil {
return m.Strategy
}
return nil
}
func (m *DeploymentSpec) GetMinReadySeconds() int32 {
if m != nil && m.MinReadySeconds != nil {
return *m.MinReadySeconds
}
return 0
}
func (m *DeploymentSpec) GetRevisionHistoryLimit() int32 {
if m != nil && m.RevisionHistoryLimit != nil {
return *m.RevisionHistoryLimit
}
return 0
}
func (m *DeploymentSpec) GetPaused() bool {
if m != nil && m.Paused != nil {
return *m.Paused
}
return false
}
func (m *DeploymentSpec) GetRollbackTo() *RollbackConfig {
if m != nil {
return m.RollbackTo
}
return nil
}
func (m *DeploymentSpec) GetProgressDeadlineSeconds() int32 {
if m != nil && m.ProgressDeadlineSeconds != nil {
return *m.ProgressDeadlineSeconds
}
return 0
}
// DeploymentStatus is the most recently observed status of the Deployment.
type DeploymentStatus struct {
// The generation observed by the deployment controller.
// +optional
ObservedGeneration *int64 `protobuf:"varint,1,opt,name=observedGeneration" json:"observedGeneration,omitempty"`
// Total number of non-terminated pods targeted by this deployment (their labels match the selector).
// +optional
Replicas *int32 `protobuf:"varint,2,opt,name=replicas" json:"replicas,omitempty"`
// Total number of non-terminated pods targeted by this deployment that have the desired template spec.
// +optional
UpdatedReplicas *int32 `protobuf:"varint,3,opt,name=updatedReplicas" json:"updatedReplicas,omitempty"`
// Total number of ready pods targeted by this deployment.
// +optional
ReadyReplicas *int32 `protobuf:"varint,7,opt,name=readyReplicas" json:"readyReplicas,omitempty"`
// Total number of available pods (ready for at least minReadySeconds) targeted by this deployment.
// +optional
AvailableReplicas *int32 `protobuf:"varint,4,opt,name=availableReplicas" json:"availableReplicas,omitempty"`
// Total number of unavailable pods targeted by this deployment.
// +optional
UnavailableReplicas *int32 `protobuf:"varint,5,opt,name=unavailableReplicas" json:"unavailableReplicas,omitempty"`
// Represents the latest available observations of a deployment's current state.
Conditions []*DeploymentCondition `protobuf:"bytes,6,rep,name=conditions" json:"conditions,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *DeploymentStatus) Reset() { *m = DeploymentStatus{} }
func (m *DeploymentStatus) String() string { return proto.CompactTextString(m) }
func (*DeploymentStatus) ProtoMessage() {}
func (*DeploymentStatus) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{15} }
func (m *DeploymentStatus) GetObservedGeneration() int64 {
if m != nil && m.ObservedGeneration != nil {
return *m.ObservedGeneration
}
return 0
}
func (m *DeploymentStatus) GetReplicas() int32 {
if m != nil && m.Replicas != nil {
return *m.Replicas
}
return 0
}
func (m *DeploymentStatus) GetUpdatedReplicas() int32 {
if m != nil && m.UpdatedReplicas != nil {
return *m.UpdatedReplicas
}
return 0
}
func (m *DeploymentStatus) GetReadyReplicas() int32 {
if m != nil && m.ReadyReplicas != nil {
return *m.ReadyReplicas
}
return 0
}
func (m *DeploymentStatus) GetAvailableReplicas() int32 {
if m != nil && m.AvailableReplicas != nil {
return *m.AvailableReplicas
}
return 0
}
func (m *DeploymentStatus) GetUnavailableReplicas() int32 {
if m != nil && m.UnavailableReplicas != nil {
return *m.UnavailableReplicas
}
return 0
}
func (m *DeploymentStatus) GetConditions() []*DeploymentCondition {
if m != nil {
return m.Conditions
}
return nil
}
// DeploymentStrategy describes how to replace existing pods with new ones.
type DeploymentStrategy struct {
// Type of deployment. Can be "Recreate" or "RollingUpdate". Default is RollingUpdate.
// +optional
Type *string `protobuf:"bytes,1,opt,name=type" json:"type,omitempty"`
// Rolling update config params. Present only if DeploymentStrategyType =
// RollingUpdate.
// ---
// TODO: Update this to follow our convention for oneOf, whatever we decide it
// to be.
// +optional
RollingUpdate *RollingUpdateDeployment `protobuf:"bytes,2,opt,name=rollingUpdate" json:"rollingUpdate,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *DeploymentStrategy) Reset() { *m = DeploymentStrategy{} }
func (m *DeploymentStrategy) String() string { return proto.CompactTextString(m) }
func (*DeploymentStrategy) ProtoMessage() {}
func (*DeploymentStrategy) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{16} }
func (m *DeploymentStrategy) GetType() string {
if m != nil && m.Type != nil {
return *m.Type
}
return ""
}
func (m *DeploymentStrategy) GetRollingUpdate() *RollingUpdateDeployment {
if m != nil {
return m.RollingUpdate
}
return nil
}
// FSGroupStrategyOptions defines the strategy type and options used to create the strategy.
type FSGroupStrategyOptions struct {
// Rule is the strategy that will dictate what FSGroup is used in the SecurityContext.
// +optional
Rule *string `protobuf:"bytes,1,opt,name=rule" json:"rule,omitempty"`
// Ranges are the allowed ranges of fs groups. If you would like to force a single
// fs group then supply a single range with the same start and end.
// +optional
Ranges []*IDRange `protobuf:"bytes,2,rep,name=ranges" json:"ranges,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *FSGroupStrategyOptions) Reset() { *m = FSGroupStrategyOptions{} }
func (m *FSGroupStrategyOptions) String() string { return proto.CompactTextString(m) }
func (*FSGroupStrategyOptions) ProtoMessage() {}
func (*FSGroupStrategyOptions) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{17} }
func (m *FSGroupStrategyOptions) GetRule() string {
if m != nil && m.Rule != nil {
return *m.Rule
}
return ""
}
func (m *FSGroupStrategyOptions) GetRanges() []*IDRange {
if m != nil {
return m.Ranges
}
return nil
}
// HTTPIngressPath associates a path regex with a backend. Incoming urls matching
// the path are forwarded to the backend.
type HTTPIngressPath struct {
// Path is an extended POSIX regex as defined by IEEE Std 1003.1,
// (i.e this follows the egrep/unix syntax, not the perl syntax)
// matched against the path of an incoming request. Currently it can
// contain characters disallowed from the conventional "path"
// part of a URL as defined by RFC 3986. Paths must begin with
// a '/'. If unspecified, the path defaults to a catch all sending
// traffic to the backend.
// +optional
Path *string `protobuf:"bytes,1,opt,name=path" json:"path,omitempty"`
// Backend defines the referenced service endpoint to which the traffic
// will be forwarded to.
Backend *IngressBackend `protobuf:"bytes,2,opt,name=backend" json:"backend,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *HTTPIngressPath) Reset() { *m = HTTPIngressPath{} }
func (m *HTTPIngressPath) String() string { return proto.CompactTextString(m) }
func (*HTTPIngressPath) ProtoMessage() {}
func (*HTTPIngressPath) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{18} }
func (m *HTTPIngressPath) GetPath() string {
if m != nil && m.Path != nil {
return *m.Path
}
return ""
}
func (m *HTTPIngressPath) GetBackend() *IngressBackend {
if m != nil {
return m.Backend
}
return nil
}
// HTTPIngressRuleValue is a list of http selectors pointing to backends.
// In the example: http://<host>/<path>?<searchpart> -> backend where
// where parts of the url correspond to RFC 3986, this resource will be used
// to match against everything after the last '/' and before the first '?'
// or '#'.
type HTTPIngressRuleValue struct {
// A collection of paths that map requests to backends.
Paths []*HTTPIngressPath `protobuf:"bytes,1,rep,name=paths" json:"paths,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *HTTPIngressRuleValue) Reset() { *m = HTTPIngressRuleValue{} }
func (m *HTTPIngressRuleValue) String() string { return proto.CompactTextString(m) }
func (*HTTPIngressRuleValue) ProtoMessage() {}
func (*HTTPIngressRuleValue) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{19} }
func (m *HTTPIngressRuleValue) GetPaths() []*HTTPIngressPath {
if m != nil {
return m.Paths
}
return nil
}
// Host Port Range defines a range of host ports that will be enabled by a policy
// for pods to use. It requires both the start and end to be defined.
type HostPortRange struct {
// min is the start of the range, inclusive.
Min *int32 `protobuf:"varint,1,opt,name=min" json:"min,omitempty"`
// max is the end of the range, inclusive.
Max *int32 `protobuf:"varint,2,opt,name=max" json:"max,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *HostPortRange) Reset() { *m = HostPortRange{} }
func (m *HostPortRange) String() string { return proto.CompactTextString(m) }
func (*HostPortRange) ProtoMessage() {}
func (*HostPortRange) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{20} }
func (m *HostPortRange) GetMin() int32 {
if m != nil && m.Min != nil {
return *m.Min
}
return 0
}
func (m *HostPortRange) GetMax() int32 {
if m != nil && m.Max != nil {
return *m.Max
}
return 0
}
// ID Range provides a min/max of an allowed range of IDs.