/
node.pb.go
2366 lines (2102 loc) · 91.4 KB
/
node.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-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.29.0
// protoc v3.17.3
// source: yandex/cloud/k8s/v1/node.proto
package k8s
import (
_ "github.com/yandex-cloud/go-genproto/yandex/cloud"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
timestamppb "google.golang.org/protobuf/types/known/timestamppb"
reflect "reflect"
sync "sync"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
type IpVersion int32
const (
IpVersion_IP_VERSION_UNSPECIFIED IpVersion = 0
// IPv4 address, for example 192.168.0.0.
IpVersion_IPV4 IpVersion = 1
// IPv6 address, not available yet.
IpVersion_IPV6 IpVersion = 2
)
// Enum value maps for IpVersion.
var (
IpVersion_name = map[int32]string{
0: "IP_VERSION_UNSPECIFIED",
1: "IPV4",
2: "IPV6",
}
IpVersion_value = map[string]int32{
"IP_VERSION_UNSPECIFIED": 0,
"IPV4": 1,
"IPV6": 2,
}
)
func (x IpVersion) Enum() *IpVersion {
p := new(IpVersion)
*p = x
return p
}
func (x IpVersion) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (IpVersion) Descriptor() protoreflect.EnumDescriptor {
return file_yandex_cloud_k8s_v1_node_proto_enumTypes[0].Descriptor()
}
func (IpVersion) Type() protoreflect.EnumType {
return &file_yandex_cloud_k8s_v1_node_proto_enumTypes[0]
}
func (x IpVersion) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use IpVersion.Descriptor instead.
func (IpVersion) EnumDescriptor() ([]byte, []int) {
return file_yandex_cloud_k8s_v1_node_proto_rawDescGZIP(), []int{0}
}
// Computed node status.
type Node_Status int32
const (
Node_STATUS_UNSPECIFIED Node_Status = 0
// Node instance is not yet created (e.g. in progress).
Node_PROVISIONING Node_Status = 1
// Node instance is created but not registered
// (e.g. is still initializing).
Node_NOT_CONNECTED Node_Status = 2
// Node has connected but is not ready for
// workload (see conditions for details).
Node_NOT_READY Node_Status = 3
// Node has connected and ready for workload.
Node_READY Node_Status = 4
// Node is still registered but its instance
// is deleted (this is our bug).
Node_MISSING Node_Status = 5
// Node is stopped
Node_STOPPED Node_Status = 6
// Backend request to kubernetes api was unsuccessful.
Node_UNKNOWN Node_Status = 7
)
// Enum value maps for Node_Status.
var (
Node_Status_name = map[int32]string{
0: "STATUS_UNSPECIFIED",
1: "PROVISIONING",
2: "NOT_CONNECTED",
3: "NOT_READY",
4: "READY",
5: "MISSING",
6: "STOPPED",
7: "UNKNOWN",
}
Node_Status_value = map[string]int32{
"STATUS_UNSPECIFIED": 0,
"PROVISIONING": 1,
"NOT_CONNECTED": 2,
"NOT_READY": 3,
"READY": 4,
"MISSING": 5,
"STOPPED": 6,
"UNKNOWN": 7,
}
)
func (x Node_Status) Enum() *Node_Status {
p := new(Node_Status)
*p = x
return p
}
func (x Node_Status) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Node_Status) Descriptor() protoreflect.EnumDescriptor {
return file_yandex_cloud_k8s_v1_node_proto_enumTypes[1].Descriptor()
}
func (Node_Status) Type() protoreflect.EnumType {
return &file_yandex_cloud_k8s_v1_node_proto_enumTypes[1]
}
func (x Node_Status) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Node_Status.Descriptor instead.
func (Node_Status) EnumDescriptor() ([]byte, []int) {
return file_yandex_cloud_k8s_v1_node_proto_rawDescGZIP(), []int{0, 0}
}
type Taint_Effect int32
const (
Taint_EFFECT_UNSPECIFIED Taint_Effect = 0
// Do not allow new pods to schedule onto the node unless they tolerate the taint,
// but allow all pods submitted to Kubelet without going through the scheduler
// to start, and allow all already-running pods to continue running.
Taint_NO_SCHEDULE Taint_Effect = 1
// Like NO_SCHEDULE, but the scheduler tries not to schedule
// new pods onto the node, rather than prohibiting new pods from scheduling
// onto the node entirely. Enforced by the scheduler.
Taint_PREFER_NO_SCHEDULE Taint_Effect = 2
// Evict any already-running pods that do not tolerate the taint.
Taint_NO_EXECUTE Taint_Effect = 3
)
// Enum value maps for Taint_Effect.
var (
Taint_Effect_name = map[int32]string{
0: "EFFECT_UNSPECIFIED",
1: "NO_SCHEDULE",
2: "PREFER_NO_SCHEDULE",
3: "NO_EXECUTE",
}
Taint_Effect_value = map[string]int32{
"EFFECT_UNSPECIFIED": 0,
"NO_SCHEDULE": 1,
"PREFER_NO_SCHEDULE": 2,
"NO_EXECUTE": 3,
}
)
func (x Taint_Effect) Enum() *Taint_Effect {
p := new(Taint_Effect)
*p = x
return p
}
func (x Taint_Effect) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Taint_Effect) Descriptor() protoreflect.EnumDescriptor {
return file_yandex_cloud_k8s_v1_node_proto_enumTypes[2].Descriptor()
}
func (Taint_Effect) Type() protoreflect.EnumType {
return &file_yandex_cloud_k8s_v1_node_proto_enumTypes[2]
}
func (x Taint_Effect) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Taint_Effect.Descriptor instead.
func (Taint_Effect) EnumDescriptor() ([]byte, []int) {
return file_yandex_cloud_k8s_v1_node_proto_rawDescGZIP(), []int{2, 0}
}
type NodeTemplate_NetworkSettings_Type int32
const (
NodeTemplate_NetworkSettings_TYPE_UNSPECIFIED NodeTemplate_NetworkSettings_Type = 0
NodeTemplate_NetworkSettings_STANDARD NodeTemplate_NetworkSettings_Type = 1
NodeTemplate_NetworkSettings_SOFTWARE_ACCELERATED NodeTemplate_NetworkSettings_Type = 2
)
// Enum value maps for NodeTemplate_NetworkSettings_Type.
var (
NodeTemplate_NetworkSettings_Type_name = map[int32]string{
0: "TYPE_UNSPECIFIED",
1: "STANDARD",
2: "SOFTWARE_ACCELERATED",
}
NodeTemplate_NetworkSettings_Type_value = map[string]int32{
"TYPE_UNSPECIFIED": 0,
"STANDARD": 1,
"SOFTWARE_ACCELERATED": 2,
}
)
func (x NodeTemplate_NetworkSettings_Type) Enum() *NodeTemplate_NetworkSettings_Type {
p := new(NodeTemplate_NetworkSettings_Type)
*p = x
return p
}
func (x NodeTemplate_NetworkSettings_Type) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (NodeTemplate_NetworkSettings_Type) Descriptor() protoreflect.EnumDescriptor {
return file_yandex_cloud_k8s_v1_node_proto_enumTypes[3].Descriptor()
}
func (NodeTemplate_NetworkSettings_Type) Type() protoreflect.EnumType {
return &file_yandex_cloud_k8s_v1_node_proto_enumTypes[3]
}
func (x NodeTemplate_NetworkSettings_Type) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use NodeTemplate_NetworkSettings_Type.Descriptor instead.
func (NodeTemplate_NetworkSettings_Type) EnumDescriptor() ([]byte, []int) {
return file_yandex_cloud_k8s_v1_node_proto_rawDescGZIP(), []int{4, 2, 0}
}
type NodeTemplate_ContainerRuntimeSettings_Type int32
const (
NodeTemplate_ContainerRuntimeSettings_TYPE_UNSPECIFIED NodeTemplate_ContainerRuntimeSettings_Type = 0
NodeTemplate_ContainerRuntimeSettings_DOCKER NodeTemplate_ContainerRuntimeSettings_Type = 1
NodeTemplate_ContainerRuntimeSettings_CONTAINERD NodeTemplate_ContainerRuntimeSettings_Type = 2
)
// Enum value maps for NodeTemplate_ContainerRuntimeSettings_Type.
var (
NodeTemplate_ContainerRuntimeSettings_Type_name = map[int32]string{
0: "TYPE_UNSPECIFIED",
1: "DOCKER",
2: "CONTAINERD",
}
NodeTemplate_ContainerRuntimeSettings_Type_value = map[string]int32{
"TYPE_UNSPECIFIED": 0,
"DOCKER": 1,
"CONTAINERD": 2,
}
)
func (x NodeTemplate_ContainerRuntimeSettings_Type) Enum() *NodeTemplate_ContainerRuntimeSettings_Type {
p := new(NodeTemplate_ContainerRuntimeSettings_Type)
*p = x
return p
}
func (x NodeTemplate_ContainerRuntimeSettings_Type) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (NodeTemplate_ContainerRuntimeSettings_Type) Descriptor() protoreflect.EnumDescriptor {
return file_yandex_cloud_k8s_v1_node_proto_enumTypes[4].Descriptor()
}
func (NodeTemplate_ContainerRuntimeSettings_Type) Type() protoreflect.EnumType {
return &file_yandex_cloud_k8s_v1_node_proto_enumTypes[4]
}
func (x NodeTemplate_ContainerRuntimeSettings_Type) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use NodeTemplate_ContainerRuntimeSettings_Type.Descriptor instead.
func (NodeTemplate_ContainerRuntimeSettings_Type) EnumDescriptor() ([]byte, []int) {
return file_yandex_cloud_k8s_v1_node_proto_rawDescGZIP(), []int{4, 3, 0}
}
type GpuSettings_GpuEnvironment int32
const (
// Use one of the values below, depending on the default for the specific Cloud installation.
GpuSettings_GPU_ENVIRONMENT_UNSPECIFIED GpuSettings_GpuEnvironment = 0
// Use a node image with the pre-installed GPU toolkit, drivers and CUDA.
GpuSettings_RUNC_DRIVERS_CUDA GpuSettings_GpuEnvironment = 1
// Use a node image with the pre-installed GPU toolkit but without drivers.
// You should install drivers on a node yourself in that case.
// There are tools to help you to do that, for example gpu-operator.
GpuSettings_RUNC GpuSettings_GpuEnvironment = 2
)
// Enum value maps for GpuSettings_GpuEnvironment.
var (
GpuSettings_GpuEnvironment_name = map[int32]string{
0: "GPU_ENVIRONMENT_UNSPECIFIED",
1: "RUNC_DRIVERS_CUDA",
2: "RUNC",
}
GpuSettings_GpuEnvironment_value = map[string]int32{
"GPU_ENVIRONMENT_UNSPECIFIED": 0,
"RUNC_DRIVERS_CUDA": 1,
"RUNC": 2,
}
)
func (x GpuSettings_GpuEnvironment) Enum() *GpuSettings_GpuEnvironment {
p := new(GpuSettings_GpuEnvironment)
*p = x
return p
}
func (x GpuSettings_GpuEnvironment) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (GpuSettings_GpuEnvironment) Descriptor() protoreflect.EnumDescriptor {
return file_yandex_cloud_k8s_v1_node_proto_enumTypes[5].Descriptor()
}
func (GpuSettings_GpuEnvironment) Type() protoreflect.EnumType {
return &file_yandex_cloud_k8s_v1_node_proto_enumTypes[5]
}
func (x GpuSettings_GpuEnvironment) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use GpuSettings_GpuEnvironment.Descriptor instead.
func (GpuSettings_GpuEnvironment) EnumDescriptor() ([]byte, []int) {
return file_yandex_cloud_k8s_v1_node_proto_rawDescGZIP(), []int{5, 0}
}
type Node struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Computed node status.
Status Node_Status `protobuf:"varint,1,opt,name=status,proto3,enum=yandex.cloud.k8s.v1.Node_Status" json:"status,omitempty"`
// Node specificaion.
Spec *Node_Spec `protobuf:"bytes,2,opt,name=spec,proto3" json:"spec,omitempty"`
// Cloud instance status.
// Not available in `MISSING` status.
CloudStatus *Node_CloudStatus `protobuf:"bytes,3,opt,name=cloud_status,json=cloudStatus,proto3" json:"cloud_status,omitempty"`
// Kubernetes node status.
// Not available in `PROVISIONING` and `NOT_CONNECTED` states.
KubernetesStatus *Node_KubernetesStatus `protobuf:"bytes,4,opt,name=kubernetes_status,json=kubernetesStatus,proto3" json:"kubernetes_status,omitempty"`
}
func (x *Node) Reset() {
*x = Node{}
if protoimpl.UnsafeEnabled {
mi := &file_yandex_cloud_k8s_v1_node_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Node) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Node) ProtoMessage() {}
func (x *Node) ProtoReflect() protoreflect.Message {
mi := &file_yandex_cloud_k8s_v1_node_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Node.ProtoReflect.Descriptor instead.
func (*Node) Descriptor() ([]byte, []int) {
return file_yandex_cloud_k8s_v1_node_proto_rawDescGZIP(), []int{0}
}
func (x *Node) GetStatus() Node_Status {
if x != nil {
return x.Status
}
return Node_STATUS_UNSPECIFIED
}
func (x *Node) GetSpec() *Node_Spec {
if x != nil {
return x.Spec
}
return nil
}
func (x *Node) GetCloudStatus() *Node_CloudStatus {
if x != nil {
return x.CloudStatus
}
return nil
}
func (x *Node) GetKubernetesStatus() *Node_KubernetesStatus {
if x != nil {
return x.KubernetesStatus
}
return nil
}
type Condition struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Type of node condition.
Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
// Status is the status of the condition.
Status string `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"`
// Human-readable message indicating details about last transition.
Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
// Last time we got an update on a given condition.
LastHeartbeatTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=last_heartbeat_time,json=lastHeartbeatTime,proto3" json:"last_heartbeat_time,omitempty"`
// Last time the condition transit from one status to another.
LastTransitionTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=last_transition_time,json=lastTransitionTime,proto3" json:"last_transition_time,omitempty"`
}
func (x *Condition) Reset() {
*x = Condition{}
if protoimpl.UnsafeEnabled {
mi := &file_yandex_cloud_k8s_v1_node_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Condition) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Condition) ProtoMessage() {}
func (x *Condition) ProtoReflect() protoreflect.Message {
mi := &file_yandex_cloud_k8s_v1_node_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Condition.ProtoReflect.Descriptor instead.
func (*Condition) Descriptor() ([]byte, []int) {
return file_yandex_cloud_k8s_v1_node_proto_rawDescGZIP(), []int{1}
}
func (x *Condition) GetType() string {
if x != nil {
return x.Type
}
return ""
}
func (x *Condition) GetStatus() string {
if x != nil {
return x.Status
}
return ""
}
func (x *Condition) GetMessage() string {
if x != nil {
return x.Message
}
return ""
}
func (x *Condition) GetLastHeartbeatTime() *timestamppb.Timestamp {
if x != nil {
return x.LastHeartbeatTime
}
return nil
}
func (x *Condition) GetLastTransitionTime() *timestamppb.Timestamp {
if x != nil {
return x.LastTransitionTime
}
return nil
}
type Taint struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The taint key to be applied to a node.
Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
// The taint value corresponding to the taint key.
Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
// The effect of the taint on pods that do not tolerate the taint.
Effect Taint_Effect `protobuf:"varint,3,opt,name=effect,proto3,enum=yandex.cloud.k8s.v1.Taint_Effect" json:"effect,omitempty"`
}
func (x *Taint) Reset() {
*x = Taint{}
if protoimpl.UnsafeEnabled {
mi := &file_yandex_cloud_k8s_v1_node_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Taint) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Taint) ProtoMessage() {}
func (x *Taint) ProtoReflect() protoreflect.Message {
mi := &file_yandex_cloud_k8s_v1_node_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Taint.ProtoReflect.Descriptor instead.
func (*Taint) Descriptor() ([]byte, []int) {
return file_yandex_cloud_k8s_v1_node_proto_rawDescGZIP(), []int{2}
}
func (x *Taint) GetKey() string {
if x != nil {
return x.Key
}
return ""
}
func (x *Taint) GetValue() string {
if x != nil {
return x.Value
}
return ""
}
func (x *Taint) GetEffect() Taint_Effect {
if x != nil {
return x.Effect
}
return Taint_EFFECT_UNSPECIFIED
}
// AttachedVolume describes a volume attached to a node
type AttachedVolume struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Name of the driver which has attached the volume
DriverName string `protobuf:"bytes,1,opt,name=driver_name,json=driverName,proto3" json:"driver_name,omitempty"`
// Volume handle (cloud disk id)
VolumeHandle string `protobuf:"bytes,2,opt,name=volume_handle,json=volumeHandle,proto3" json:"volume_handle,omitempty"`
}
func (x *AttachedVolume) Reset() {
*x = AttachedVolume{}
if protoimpl.UnsafeEnabled {
mi := &file_yandex_cloud_k8s_v1_node_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *AttachedVolume) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*AttachedVolume) ProtoMessage() {}
func (x *AttachedVolume) ProtoReflect() protoreflect.Message {
mi := &file_yandex_cloud_k8s_v1_node_proto_msgTypes[3]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use AttachedVolume.ProtoReflect.Descriptor instead.
func (*AttachedVolume) Descriptor() ([]byte, []int) {
return file_yandex_cloud_k8s_v1_node_proto_rawDescGZIP(), []int{3}
}
func (x *AttachedVolume) GetDriverName() string {
if x != nil {
return x.DriverName
}
return ""
}
func (x *AttachedVolume) GetVolumeHandle() string {
if x != nil {
return x.VolumeHandle
}
return ""
}
type NodeTemplate struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Name of the instance.
// In order to be unique it must contain at least on of instance unique placeholders:
//
// {instance.short_id}
// {instance.index}
// combination of {instance.zone_id} and {instance.index_in_zone}
//
// Example: my-instance-{instance.index}
// If not set, default is used: {instance_group.id}-{instance.short_id}
// It may also contain another placeholders, see metadata doc for full list.
Name string `protobuf:"bytes,13,opt,name=name,proto3" json:"name,omitempty"`
// these labels will be assigned to compute nodes (instances), created by the nodegroup
Labels map[string]string `protobuf:"bytes,15,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// ID of the hardware platform configuration for the node.
PlatformId string `protobuf:"bytes,1,opt,name=platform_id,json=platformId,proto3" json:"platform_id,omitempty"`
// Computing resources of the node such as the amount of memory and number of cores.
ResourcesSpec *ResourcesSpec `protobuf:"bytes,2,opt,name=resources_spec,json=resourcesSpec,proto3" json:"resources_spec,omitempty"`
// Specification for the boot disk that will be attached to the node.
BootDiskSpec *DiskSpec `protobuf:"bytes,3,opt,name=boot_disk_spec,json=bootDiskSpec,proto3" json:"boot_disk_spec,omitempty"`
// The metadata as `key:value` pairs assigned to this instance template. Only SSH keys are supported as metadata.
//
// For more information, see [Connecting to a node over SSH](/docs/managed-kubernetes/operations/node-connect-ssh).
Metadata map[string]string `protobuf:"bytes,4,rep,name=metadata,proto3" json:"metadata,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// Specification for the create network interfaces for the node group compute instances.
// Deprecated, please use network_interface_specs.
//
// Deprecated: Marked as deprecated in yandex/cloud/k8s/v1/node.proto.
V4AddressSpec *NodeAddressSpec `protobuf:"bytes,5,opt,name=v4_address_spec,json=v4AddressSpec,proto3" json:"v4_address_spec,omitempty"`
// Scheduling policy configuration.
SchedulingPolicy *SchedulingPolicy `protobuf:"bytes,6,opt,name=scheduling_policy,json=schedulingPolicy,proto3" json:"scheduling_policy,omitempty"`
// New api, to specify network interfaces for the node group compute instances.
// Can not be used together with 'v4_address_spec'
NetworkInterfaceSpecs []*NetworkInterfaceSpec `protobuf:"bytes,7,rep,name=network_interface_specs,json=networkInterfaceSpecs,proto3" json:"network_interface_specs,omitempty"`
PlacementPolicy *PlacementPolicy `protobuf:"bytes,10,opt,name=placement_policy,json=placementPolicy,proto3" json:"placement_policy,omitempty"`
// this parameter allows to specify type of network acceleration used on nodes (instances)
NetworkSettings *NodeTemplate_NetworkSettings `protobuf:"bytes,11,opt,name=network_settings,json=networkSettings,proto3" json:"network_settings,omitempty"`
ContainerRuntimeSettings *NodeTemplate_ContainerRuntimeSettings `protobuf:"bytes,12,opt,name=container_runtime_settings,json=containerRuntimeSettings,proto3" json:"container_runtime_settings,omitempty"`
ContainerNetworkSettings *NodeTemplate_ContainerNetworkSettings `protobuf:"bytes,16,opt,name=container_network_settings,json=containerNetworkSettings,proto3" json:"container_network_settings,omitempty"`
// GPU settings
GpuSettings *GpuSettings `protobuf:"bytes,18,opt,name=gpu_settings,json=gpuSettings,proto3" json:"gpu_settings,omitempty"`
}
func (x *NodeTemplate) Reset() {
*x = NodeTemplate{}
if protoimpl.UnsafeEnabled {
mi := &file_yandex_cloud_k8s_v1_node_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *NodeTemplate) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*NodeTemplate) ProtoMessage() {}
func (x *NodeTemplate) ProtoReflect() protoreflect.Message {
mi := &file_yandex_cloud_k8s_v1_node_proto_msgTypes[4]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use NodeTemplate.ProtoReflect.Descriptor instead.
func (*NodeTemplate) Descriptor() ([]byte, []int) {
return file_yandex_cloud_k8s_v1_node_proto_rawDescGZIP(), []int{4}
}
func (x *NodeTemplate) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *NodeTemplate) GetLabels() map[string]string {
if x != nil {
return x.Labels
}
return nil
}
func (x *NodeTemplate) GetPlatformId() string {
if x != nil {
return x.PlatformId
}
return ""
}
func (x *NodeTemplate) GetResourcesSpec() *ResourcesSpec {
if x != nil {
return x.ResourcesSpec
}
return nil
}
func (x *NodeTemplate) GetBootDiskSpec() *DiskSpec {
if x != nil {
return x.BootDiskSpec
}
return nil
}
func (x *NodeTemplate) GetMetadata() map[string]string {
if x != nil {
return x.Metadata
}
return nil
}
// Deprecated: Marked as deprecated in yandex/cloud/k8s/v1/node.proto.
func (x *NodeTemplate) GetV4AddressSpec() *NodeAddressSpec {
if x != nil {
return x.V4AddressSpec
}
return nil
}
func (x *NodeTemplate) GetSchedulingPolicy() *SchedulingPolicy {
if x != nil {
return x.SchedulingPolicy
}
return nil
}
func (x *NodeTemplate) GetNetworkInterfaceSpecs() []*NetworkInterfaceSpec {
if x != nil {
return x.NetworkInterfaceSpecs
}
return nil
}
func (x *NodeTemplate) GetPlacementPolicy() *PlacementPolicy {
if x != nil {
return x.PlacementPolicy
}
return nil
}
func (x *NodeTemplate) GetNetworkSettings() *NodeTemplate_NetworkSettings {
if x != nil {
return x.NetworkSettings
}
return nil
}
func (x *NodeTemplate) GetContainerRuntimeSettings() *NodeTemplate_ContainerRuntimeSettings {
if x != nil {
return x.ContainerRuntimeSettings
}
return nil
}
func (x *NodeTemplate) GetContainerNetworkSettings() *NodeTemplate_ContainerNetworkSettings {
if x != nil {
return x.ContainerNetworkSettings
}
return nil
}
func (x *NodeTemplate) GetGpuSettings() *GpuSettings {
if x != nil {
return x.GpuSettings
}
return nil
}
type GpuSettings struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// GPU cluster id, that mk8s node will join.
GpuClusterId string `protobuf:"bytes,1,opt,name=gpu_cluster_id,json=gpuClusterId,proto3" json:"gpu_cluster_id,omitempty"`
// GPU environment configured on node.
GpuEnvironment GpuSettings_GpuEnvironment `protobuf:"varint,2,opt,name=gpu_environment,json=gpuEnvironment,proto3,enum=yandex.cloud.k8s.v1.GpuSettings_GpuEnvironment" json:"gpu_environment,omitempty"`
}
func (x *GpuSettings) Reset() {
*x = GpuSettings{}
if protoimpl.UnsafeEnabled {
mi := &file_yandex_cloud_k8s_v1_node_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GpuSettings) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GpuSettings) ProtoMessage() {}
func (x *GpuSettings) ProtoReflect() protoreflect.Message {
mi := &file_yandex_cloud_k8s_v1_node_proto_msgTypes[5]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GpuSettings.ProtoReflect.Descriptor instead.
func (*GpuSettings) Descriptor() ([]byte, []int) {
return file_yandex_cloud_k8s_v1_node_proto_rawDescGZIP(), []int{5}
}
func (x *GpuSettings) GetGpuClusterId() string {
if x != nil {
return x.GpuClusterId
}
return ""
}
func (x *GpuSettings) GetGpuEnvironment() GpuSettings_GpuEnvironment {
if x != nil {
return x.GpuEnvironment
}
return GpuSettings_GPU_ENVIRONMENT_UNSPECIFIED
}
type NetworkInterfaceSpec struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// IDs of the subnets.
SubnetIds []string `protobuf:"bytes,2,rep,name=subnet_ids,json=subnetIds,proto3" json:"subnet_ids,omitempty"`
// Primary IPv4 address that is assigned to the instance for this network interface.
PrimaryV4AddressSpec *NodeAddressSpec `protobuf:"bytes,3,opt,name=primary_v4_address_spec,json=primaryV4AddressSpec,proto3" json:"primary_v4_address_spec,omitempty"`
// Primary IPv6 address that is assigned to the instance for this network interface.
PrimaryV6AddressSpec *NodeAddressSpec `protobuf:"bytes,4,opt,name=primary_v6_address_spec,json=primaryV6AddressSpec,proto3" json:"primary_v6_address_spec,omitempty"`
// IDs of security groups.
SecurityGroupIds []string `protobuf:"bytes,5,rep,name=security_group_ids,json=securityGroupIds,proto3" json:"security_group_ids,omitempty"`
}
func (x *NetworkInterfaceSpec) Reset() {
*x = NetworkInterfaceSpec{}
if protoimpl.UnsafeEnabled {
mi := &file_yandex_cloud_k8s_v1_node_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *NetworkInterfaceSpec) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*NetworkInterfaceSpec) ProtoMessage() {}
func (x *NetworkInterfaceSpec) ProtoReflect() protoreflect.Message {
mi := &file_yandex_cloud_k8s_v1_node_proto_msgTypes[6]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use NetworkInterfaceSpec.ProtoReflect.Descriptor instead.
func (*NetworkInterfaceSpec) Descriptor() ([]byte, []int) {
return file_yandex_cloud_k8s_v1_node_proto_rawDescGZIP(), []int{6}
}
func (x *NetworkInterfaceSpec) GetSubnetIds() []string {
if x != nil {
return x.SubnetIds
}
return nil
}
func (x *NetworkInterfaceSpec) GetPrimaryV4AddressSpec() *NodeAddressSpec {
if x != nil {
return x.PrimaryV4AddressSpec
}
return nil
}
func (x *NetworkInterfaceSpec) GetPrimaryV6AddressSpec() *NodeAddressSpec {
if x != nil {
return x.PrimaryV6AddressSpec
}
return nil
}
func (x *NetworkInterfaceSpec) GetSecurityGroupIds() []string {
if x != nil {
return x.SecurityGroupIds
}
return nil
}
type NodeAddressSpec struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// One-to-one NAT configuration. Setting up one-to-one NAT ensures that public IP addresses are assigned to nodes, and therefore internet is accessible for all nodes of the node group. If the field is not set, NAT will not be set up.
OneToOneNatSpec *OneToOneNatSpec `protobuf:"bytes,1,opt,name=one_to_one_nat_spec,json=oneToOneNatSpec,proto3" json:"one_to_one_nat_spec,omitempty"`
// Internal DNS configuration.
DnsRecordSpecs []*DnsRecordSpec `protobuf:"bytes,2,rep,name=dns_record_specs,json=dnsRecordSpecs,proto3" json:"dns_record_specs,omitempty"`
}
func (x *NodeAddressSpec) Reset() {
*x = NodeAddressSpec{}
if protoimpl.UnsafeEnabled {
mi := &file_yandex_cloud_k8s_v1_node_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *NodeAddressSpec) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*NodeAddressSpec) ProtoMessage() {}
func (x *NodeAddressSpec) ProtoReflect() protoreflect.Message {
mi := &file_yandex_cloud_k8s_v1_node_proto_msgTypes[7]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use NodeAddressSpec.ProtoReflect.Descriptor instead.
func (*NodeAddressSpec) Descriptor() ([]byte, []int) {
return file_yandex_cloud_k8s_v1_node_proto_rawDescGZIP(), []int{7}
}
func (x *NodeAddressSpec) GetOneToOneNatSpec() *OneToOneNatSpec {