forked from ericchiang/k8s
-
Notifications
You must be signed in to change notification settings - Fork 1
/
generated.pb.go
6363 lines (6148 loc) · 163 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/apps/v1beta1/generated.proto
/*
Package v1beta1 is a generated protocol buffer package.
It is generated from these files:
k8s.io/api/apps/v1beta1/generated.proto
It has these top-level messages:
ControllerRevision
ControllerRevisionList
Deployment
DeploymentCondition
DeploymentList
DeploymentRollback
DeploymentSpec
DeploymentStatus
DeploymentStrategy
RollbackConfig
RollingUpdateDeployment
RollingUpdateStatefulSetStrategy
Scale
ScaleSpec
ScaleStatus
StatefulSet
StatefulSetCondition
StatefulSetList
StatefulSetSpec
StatefulSetStatus
StatefulSetUpdateStrategy
*/
package v1beta1
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import k8s_io_api_core_v1 "github.com/ericchiang/k8s/apis/core/v1"
import _ "github.com/ericchiang/k8s/apis/policy/v1beta1"
import k8s_io_apimachinery_pkg_apis_meta_v1 "github.com/ericchiang/k8s/apis/meta/v1"
import k8s_io_apimachinery_pkg_runtime "github.com/ericchiang/k8s/runtime"
import _ "github.com/ericchiang/k8s/runtime/schema"
import k8s_io_apimachinery_pkg_util_intstr "github.com/ericchiang/k8s/util/intstr"
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
// DEPRECATED - This group version of ControllerRevision is deprecated by apps/v1beta2/ControllerRevision. See the
// release notes for more information.
// ControllerRevision implements an immutable snapshot of state data. Clients
// are responsible for serializing and deserializing the objects that contain
// their internal state.
// Once a ControllerRevision has been successfully created, it can not be updated.
// The API Server will fail validation of all requests that attempt to mutate
// the Data field. ControllerRevisions may, however, be deleted. Note that, due to its use by both
// the DaemonSet and StatefulSet controllers for update and rollback, this object is beta. However,
// it may be subject to name and representation changes in future releases, and clients should not
// depend on its stability. It is primarily for internal use by controllers.
type ControllerRevision struct {
// Standard object's metadata.
// More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
// +optional
Metadata *k8s_io_apimachinery_pkg_apis_meta_v1.ObjectMeta `protobuf:"bytes,1,opt,name=metadata" json:"metadata,omitempty"`
// Data is the serialized representation of the state.
Data *k8s_io_apimachinery_pkg_runtime.RawExtension `protobuf:"bytes,2,opt,name=data" json:"data,omitempty"`
// Revision indicates the revision of the state represented by Data.
Revision *int64 `protobuf:"varint,3,opt,name=revision" json:"revision,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *ControllerRevision) Reset() { *m = ControllerRevision{} }
func (m *ControllerRevision) String() string { return proto.CompactTextString(m) }
func (*ControllerRevision) ProtoMessage() {}
func (*ControllerRevision) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{0} }
func (m *ControllerRevision) GetMetadata() *k8s_io_apimachinery_pkg_apis_meta_v1.ObjectMeta {
if m != nil {
return m.Metadata
}
return nil
}
func (m *ControllerRevision) GetData() *k8s_io_apimachinery_pkg_runtime.RawExtension {
if m != nil {
return m.Data
}
return nil
}
func (m *ControllerRevision) GetRevision() int64 {
if m != nil && m.Revision != nil {
return *m.Revision
}
return 0
}
// ControllerRevisionList is a resource containing a list of ControllerRevision objects.
type ControllerRevisionList struct {
// More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
// +optional
Metadata *k8s_io_apimachinery_pkg_apis_meta_v1.ListMeta `protobuf:"bytes,1,opt,name=metadata" json:"metadata,omitempty"`
// Items is the list of ControllerRevisions
Items []*ControllerRevision `protobuf:"bytes,2,rep,name=items" json:"items,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *ControllerRevisionList) Reset() { *m = ControllerRevisionList{} }
func (m *ControllerRevisionList) String() string { return proto.CompactTextString(m) }
func (*ControllerRevisionList) ProtoMessage() {}
func (*ControllerRevisionList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{1} }
func (m *ControllerRevisionList) GetMetadata() *k8s_io_apimachinery_pkg_apis_meta_v1.ListMeta {
if m != nil {
return m.Metadata
}
return nil
}
func (m *ControllerRevisionList) GetItems() []*ControllerRevision {
if m != nil {
return m.Items
}
return nil
}
// DEPRECATED - This group version of Deployment is deprecated by apps/v1beta2/Deployment. See the release notes for
// more information.
// Deployment enables declarative updates for Pods and ReplicaSets.
type Deployment struct {
// Standard object metadata.
// +optional
Metadata *k8s_io_apimachinery_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{2} }
func (m *Deployment) GetMetadata() *k8s_io_apimachinery_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_apimachinery_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_apimachinery_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{3} }
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_apimachinery_pkg_apis_meta_v1.Time {
if m != nil {
return m.LastUpdateTime
}
return nil
}
func (m *DeploymentCondition) GetLastTransitionTime() *k8s_io_apimachinery_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_apimachinery_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{4} }
func (m *DeploymentList) GetMetadata() *k8s_io_apimachinery_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
}
// DEPRECATED.
// 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{5} }
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_apimachinery_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_api_core_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.
// Defaults to 2.
// +optional
RevisionHistoryLimit *int32 `protobuf:"varint,6,opt,name=revisionHistoryLimit" json:"revisionHistoryLimit,omitempty"`
// Indicates that the deployment is paused.
// +optional
Paused *bool `protobuf:"varint,7,opt,name=paused" json:"paused,omitempty"`
// DEPRECATED.
// 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. Note that progress will
// not be estimated during the time a deployment is paused. Defaults to 600s.
// +optional
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{6} }
func (m *DeploymentSpec) GetReplicas() int32 {
if m != nil && m.Replicas != nil {
return *m.Replicas
}
return 0
}
func (m *DeploymentSpec) GetSelector() *k8s_io_apimachinery_pkg_apis_meta_v1.LabelSelector {
if m != nil {
return m.Selector
}
return nil
}
func (m *DeploymentSpec) GetTemplate() *k8s_io_api_core_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. This is the total number of
// pods that are still required for the deployment to have 100% available capacity. They may
// either be pods that are running but not yet available or pods that still have not been created.
// +optional
UnavailableReplicas *int32 `protobuf:"varint,5,opt,name=unavailableReplicas" json:"unavailableReplicas,omitempty"`
// Represents the latest available observations of a deployment's current state.
// +patchMergeKey=type
// +patchStrategy=merge
Conditions []*DeploymentCondition `protobuf:"bytes,6,rep,name=conditions" json:"conditions,omitempty"`
// Count of hash collisions for the Deployment. The Deployment controller uses this
// field as a collision avoidance mechanism when it needs to create the name for the
// newest ReplicaSet.
// +optional
CollisionCount *int32 `protobuf:"varint,8,opt,name=collisionCount" json:"collisionCount,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{7} }
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
}
func (m *DeploymentStatus) GetCollisionCount() int32 {
if m != nil && m.CollisionCount != nil {
return *m.CollisionCount
}
return 0
}
// 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{8} }
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
}
// DEPRECATED.
type RollbackConfig struct {
// The revision to rollback to. If set to 0, rollback to the last revision.
// +optional
Revision *int64 `protobuf:"varint,1,opt,name=revision" json:"revision,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *RollbackConfig) Reset() { *m = RollbackConfig{} }
func (m *RollbackConfig) String() string { return proto.CompactTextString(m) }
func (*RollbackConfig) ProtoMessage() {}
func (*RollbackConfig) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{9} }
func (m *RollbackConfig) GetRevision() int64 {
if m != nil && m.Revision != nil {
return *m.Revision
}
return 0
}
// Spec to control the desired behavior of rolling update.
type RollingUpdateDeployment struct {
// The maximum number of pods that can be unavailable during the update.
// Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%).
// Absolute number is calculated from percentage by rounding down.
// This can not be 0 if MaxSurge is 0.
// Defaults to 25%.
// Example: when this is set to 30%, the old RC can be scaled down to 70% of desired pods
// immediately when the rolling update starts. Once new pods are ready, old RC
// can be scaled down further, followed by scaling up the new RC, ensuring
// that the total number of pods available at all times during the update is at
// least 70% of desired pods.
// +optional
MaxUnavailable *k8s_io_apimachinery_pkg_util_intstr.IntOrString `protobuf:"bytes,1,opt,name=maxUnavailable" json:"maxUnavailable,omitempty"`
// The maximum number of pods that can be scheduled above the desired number of
// pods.
// Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%).
// This can not be 0 if MaxUnavailable is 0.
// Absolute number is calculated from percentage by rounding up.
// Defaults to 25%.
// Example: when this is set to 30%, the new RC can be scaled up immediately when
// the rolling update starts, such that the total number of old and new pods do not exceed
// 130% of desired pods. Once old pods have been killed,
// new RC can be scaled up further, ensuring that total number of pods running
// at any time during the update is atmost 130% of desired pods.
// +optional
MaxSurge *k8s_io_apimachinery_pkg_util_intstr.IntOrString `protobuf:"bytes,2,opt,name=maxSurge" json:"maxSurge,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *RollingUpdateDeployment) Reset() { *m = RollingUpdateDeployment{} }
func (m *RollingUpdateDeployment) String() string { return proto.CompactTextString(m) }
func (*RollingUpdateDeployment) ProtoMessage() {}
func (*RollingUpdateDeployment) Descriptor() ([]byte, []int) {
return fileDescriptorGenerated, []int{10}
}
func (m *RollingUpdateDeployment) GetMaxUnavailable() *k8s_io_apimachinery_pkg_util_intstr.IntOrString {
if m != nil {
return m.MaxUnavailable
}
return nil
}
func (m *RollingUpdateDeployment) GetMaxSurge() *k8s_io_apimachinery_pkg_util_intstr.IntOrString {
if m != nil {
return m.MaxSurge
}
return nil
}
// RollingUpdateStatefulSetStrategy is used to communicate parameter for RollingUpdateStatefulSetStrategyType.
type RollingUpdateStatefulSetStrategy struct {
// Partition indicates the ordinal at which the StatefulSet should be
// partitioned.
Partition *int32 `protobuf:"varint,1,opt,name=partition" json:"partition,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *RollingUpdateStatefulSetStrategy) Reset() { *m = RollingUpdateStatefulSetStrategy{} }
func (m *RollingUpdateStatefulSetStrategy) String() string { return proto.CompactTextString(m) }
func (*RollingUpdateStatefulSetStrategy) ProtoMessage() {}
func (*RollingUpdateStatefulSetStrategy) Descriptor() ([]byte, []int) {
return fileDescriptorGenerated, []int{11}
}
func (m *RollingUpdateStatefulSetStrategy) GetPartition() int32 {
if m != nil && m.Partition != nil {
return *m.Partition
}
return 0
}
// Scale represents a scaling request for a resource.
type Scale struct {
// Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata.
// +optional
Metadata *k8s_io_apimachinery_pkg_apis_meta_v1.ObjectMeta `protobuf:"bytes,1,opt,name=metadata" json:"metadata,omitempty"`
// defines the behavior of the scale. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status.
// +optional
Spec *ScaleSpec `protobuf:"bytes,2,opt,name=spec" json:"spec,omitempty"`
// current status of the scale. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status. Read-only.
// +optional
Status *ScaleStatus `protobuf:"bytes,3,opt,name=status" json:"status,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *Scale) Reset() { *m = Scale{} }
func (m *Scale) String() string { return proto.CompactTextString(m) }
func (*Scale) ProtoMessage() {}
func (*Scale) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{12} }
func (m *Scale) GetMetadata() *k8s_io_apimachinery_pkg_apis_meta_v1.ObjectMeta {
if m != nil {
return m.Metadata
}
return nil
}
func (m *Scale) GetSpec() *ScaleSpec {
if m != nil {
return m.Spec
}
return nil
}
func (m *Scale) GetStatus() *ScaleStatus {
if m != nil {
return m.Status
}
return nil
}
// ScaleSpec describes the attributes of a scale subresource
type ScaleSpec struct {
// desired number of instances for the scaled object.
// +optional
Replicas *int32 `protobuf:"varint,1,opt,name=replicas" json:"replicas,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *ScaleSpec) Reset() { *m = ScaleSpec{} }
func (m *ScaleSpec) String() string { return proto.CompactTextString(m) }
func (*ScaleSpec) ProtoMessage() {}
func (*ScaleSpec) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{13} }
func (m *ScaleSpec) GetReplicas() int32 {
if m != nil && m.Replicas != nil {
return *m.Replicas
}
return 0
}
// ScaleStatus represents the current status of a scale subresource.
type ScaleStatus struct {
// actual number of observed instances of the scaled object.
Replicas *int32 `protobuf:"varint,1,opt,name=replicas" json:"replicas,omitempty"`
// label query over pods that should match the replicas count. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors
// +optional
Selector map[string]string `protobuf:"bytes,2,rep,name=selector" json:"selector,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
// label selector for pods that should match the replicas count. This is a serializated
// version of both map-based and more expressive set-based selectors. This is done to
// avoid introspection in the clients. The string will be in the same format as the
// query-param syntax. If the target type only supports map-based selectors, both this
// field and map-based selector field are populated.
// More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors
// +optional
TargetSelector *string `protobuf:"bytes,3,opt,name=targetSelector" json:"targetSelector,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *ScaleStatus) Reset() { *m = ScaleStatus{} }
func (m *ScaleStatus) String() string { return proto.CompactTextString(m) }
func (*ScaleStatus) ProtoMessage() {}
func (*ScaleStatus) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{14} }
func (m *ScaleStatus) GetReplicas() int32 {
if m != nil && m.Replicas != nil {
return *m.Replicas
}
return 0
}
func (m *ScaleStatus) GetSelector() map[string]string {
if m != nil {
return m.Selector
}
return nil
}
func (m *ScaleStatus) GetTargetSelector() string {
if m != nil && m.TargetSelector != nil {
return *m.TargetSelector
}
return ""
}
// DEPRECATED - This group version of StatefulSet is deprecated by apps/v1beta2/StatefulSet. See the release notes for
// more information.
// StatefulSet represents a set of pods with consistent identities.
// Identities are defined as:
// - Network: A single stable DNS and hostname.
// - Storage: As many VolumeClaims as requested.
// The StatefulSet guarantees that a given network identity will always
// map to the same storage identity.
type StatefulSet struct {
// +optional
Metadata *k8s_io_apimachinery_pkg_apis_meta_v1.ObjectMeta `protobuf:"bytes,1,opt,name=metadata" json:"metadata,omitempty"`
// Spec defines the desired identities of pods in this set.
// +optional
Spec *StatefulSetSpec `protobuf:"bytes,2,opt,name=spec" json:"spec,omitempty"`
// Status is the current status of Pods in this StatefulSet. This data
// may be out of date by some window of time.
// +optional
Status *StatefulSetStatus `protobuf:"bytes,3,opt,name=status" json:"status,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *StatefulSet) Reset() { *m = StatefulSet{} }
func (m *StatefulSet) String() string { return proto.CompactTextString(m) }
func (*StatefulSet) ProtoMessage() {}
func (*StatefulSet) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{15} }
func (m *StatefulSet) GetMetadata() *k8s_io_apimachinery_pkg_apis_meta_v1.ObjectMeta {
if m != nil {
return m.Metadata
}
return nil
}
func (m *StatefulSet) GetSpec() *StatefulSetSpec {
if m != nil {
return m.Spec
}
return nil
}
func (m *StatefulSet) GetStatus() *StatefulSetStatus {
if m != nil {
return m.Status
}
return nil
}
// StatefulSetCondition describes the state of a statefulset at a certain point.
type StatefulSetCondition struct {
// Type of statefulset 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"`
// Last time the condition transitioned from one status to another.
// +optional
LastTransitionTime *k8s_io_apimachinery_pkg_apis_meta_v1.Time `protobuf:"bytes,3,opt,name=lastTransitionTime" json:"lastTransitionTime,omitempty"`
// The reason for the condition's last transition.
// +optional
Reason *string `protobuf:"bytes,4,opt,name=reason" json:"reason,omitempty"`
// A human readable message indicating details about the transition.
// +optional
Message *string `protobuf:"bytes,5,opt,name=message" json:"message,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *StatefulSetCondition) Reset() { *m = StatefulSetCondition{} }
func (m *StatefulSetCondition) String() string { return proto.CompactTextString(m) }
func (*StatefulSetCondition) ProtoMessage() {}
func (*StatefulSetCondition) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{16} }
func (m *StatefulSetCondition) GetType() string {
if m != nil && m.Type != nil {
return *m.Type
}
return ""
}
func (m *StatefulSetCondition) GetStatus() string {
if m != nil && m.Status != nil {
return *m.Status
}
return ""
}
func (m *StatefulSetCondition) GetLastTransitionTime() *k8s_io_apimachinery_pkg_apis_meta_v1.Time {
if m != nil {
return m.LastTransitionTime
}
return nil
}
func (m *StatefulSetCondition) GetReason() string {
if m != nil && m.Reason != nil {
return *m.Reason
}
return ""
}
func (m *StatefulSetCondition) GetMessage() string {
if m != nil && m.Message != nil {
return *m.Message
}
return ""
}
// StatefulSetList is a collection of StatefulSets.
type StatefulSetList struct {
// +optional
Metadata *k8s_io_apimachinery_pkg_apis_meta_v1.ListMeta `protobuf:"bytes,1,opt,name=metadata" json:"metadata,omitempty"`
Items []*StatefulSet `protobuf:"bytes,2,rep,name=items" json:"items,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *StatefulSetList) Reset() { *m = StatefulSetList{} }
func (m *StatefulSetList) String() string { return proto.CompactTextString(m) }
func (*StatefulSetList) ProtoMessage() {}
func (*StatefulSetList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{17} }
func (m *StatefulSetList) GetMetadata() *k8s_io_apimachinery_pkg_apis_meta_v1.ListMeta {
if m != nil {
return m.Metadata
}
return nil
}
func (m *StatefulSetList) GetItems() []*StatefulSet {
if m != nil {
return m.Items
}
return nil
}
// A StatefulSetSpec is the specification of a StatefulSet.
type StatefulSetSpec struct {
// replicas is the desired number of replicas of the given Template.
// These are replicas in the sense that they are instantiations of the
// same Template, but individual replicas also have a consistent identity.
// If unspecified, defaults to 1.
// TODO: Consider a rename of this field.
// +optional
Replicas *int32 `protobuf:"varint,1,opt,name=replicas" json:"replicas,omitempty"`
// selector is a label query over pods that should match the replica count.
// If empty, defaulted to labels on the pod template.
// More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors
// +optional
Selector *k8s_io_apimachinery_pkg_apis_meta_v1.LabelSelector `protobuf:"bytes,2,opt,name=selector" json:"selector,omitempty"`
// template is the object that describes the pod that will be created if
// insufficient replicas are detected. Each pod stamped out by the StatefulSet
// will fulfill this Template, but have a unique identity from the rest
// of the StatefulSet.
Template *k8s_io_api_core_v1.PodTemplateSpec `protobuf:"bytes,3,opt,name=template" json:"template,omitempty"`
// volumeClaimTemplates is a list of claims that pods are allowed to reference.
// The StatefulSet controller is responsible for mapping network identities to
// claims in a way that maintains the identity of a pod. Every claim in
// this list must have at least one matching (by name) volumeMount in one
// container in the template. A claim in this list takes precedence over
// any volumes in the template, with the same name.
// TODO: Define the behavior if a claim already exists with the same name.
// +optional
VolumeClaimTemplates []*k8s_io_api_core_v1.PersistentVolumeClaim `protobuf:"bytes,4,rep,name=volumeClaimTemplates" json:"volumeClaimTemplates,omitempty"`
// serviceName is the name of the service that governs this StatefulSet.
// This service must exist before the StatefulSet, and is responsible for
// the network identity of the set. Pods get DNS/hostnames that follow the
// pattern: pod-specific-string.serviceName.default.svc.cluster.local
// where "pod-specific-string" is managed by the StatefulSet controller.
ServiceName *string `protobuf:"bytes,5,opt,name=serviceName" json:"serviceName,omitempty"`
// podManagementPolicy controls how pods are created during initial scale up,
// when replacing pods on nodes, or when scaling down. The default policy is
// `OrderedReady`, where pods are created in increasing order (pod-0, then
// pod-1, etc) and the controller will wait until each pod is ready before
// continuing. When scaling down, the pods are removed in the opposite order.
// The alternative policy is `Parallel` which will create pods in parallel
// to match the desired scale without waiting, and on scale down will delete
// all pods at once.
// +optional
PodManagementPolicy *string `protobuf:"bytes,6,opt,name=podManagementPolicy" json:"podManagementPolicy,omitempty"`
// updateStrategy indicates the StatefulSetUpdateStrategy that will be
// employed to update Pods in the StatefulSet when a revision is made to
// Template.
UpdateStrategy *StatefulSetUpdateStrategy `protobuf:"bytes,7,opt,name=updateStrategy" json:"updateStrategy,omitempty"`
// revisionHistoryLimit is the maximum number of revisions that will
// be maintained in the StatefulSet's revision history. The revision history
// consists of all revisions not represented by a currently applied
// StatefulSetSpec version. The default value is 10.
RevisionHistoryLimit *int32 `protobuf:"varint,8,opt,name=revisionHistoryLimit" json:"revisionHistoryLimit,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *StatefulSetSpec) Reset() { *m = StatefulSetSpec{} }
func (m *StatefulSetSpec) String() string { return proto.CompactTextString(m) }
func (*StatefulSetSpec) ProtoMessage() {}
func (*StatefulSetSpec) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{18} }
func (m *StatefulSetSpec) GetReplicas() int32 {
if m != nil && m.Replicas != nil {
return *m.Replicas
}
return 0
}
func (m *StatefulSetSpec) GetSelector() *k8s_io_apimachinery_pkg_apis_meta_v1.LabelSelector {
if m != nil {
return m.Selector
}
return nil
}
func (m *StatefulSetSpec) GetTemplate() *k8s_io_api_core_v1.PodTemplateSpec {
if m != nil {
return m.Template
}
return nil
}
func (m *StatefulSetSpec) GetVolumeClaimTemplates() []*k8s_io_api_core_v1.PersistentVolumeClaim {
if m != nil {
return m.VolumeClaimTemplates
}
return nil
}
func (m *StatefulSetSpec) GetServiceName() string {
if m != nil && m.ServiceName != nil {
return *m.ServiceName
}
return ""
}
func (m *StatefulSetSpec) GetPodManagementPolicy() string {
if m != nil && m.PodManagementPolicy != nil {
return *m.PodManagementPolicy
}
return ""
}
func (m *StatefulSetSpec) GetUpdateStrategy() *StatefulSetUpdateStrategy {
if m != nil {
return m.UpdateStrategy
}
return nil
}
func (m *StatefulSetSpec) GetRevisionHistoryLimit() int32 {
if m != nil && m.RevisionHistoryLimit != nil {
return *m.RevisionHistoryLimit
}
return 0
}
// StatefulSetStatus represents the current state of a StatefulSet.
type StatefulSetStatus struct {
// observedGeneration is the most recent generation observed for this StatefulSet. It corresponds to the
// StatefulSet's generation, which is updated on mutation by the API Server.
// +optional
ObservedGeneration *int64 `protobuf:"varint,1,opt,name=observedGeneration" json:"observedGeneration,omitempty"`