/
cluster_service.pb.go
6310 lines (5782 loc) · 250 KB
/
cluster_service.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.
// source: google/container/v1/cluster_service.proto
package container // import "google.golang.org/genproto/googleapis/container/v1"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import empty "github.com/golang/protobuf/ptypes/empty"
import _ "google.golang.org/genproto/googleapis/api/annotations"
import (
context "golang.org/x/net/context"
grpc "google.golang.org/grpc"
)
// 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
// Allowed Network Policy providers.
type NetworkPolicy_Provider int32
const (
// Not set
NetworkPolicy_PROVIDER_UNSPECIFIED NetworkPolicy_Provider = 0
// Tigera (Calico Felix).
NetworkPolicy_CALICO NetworkPolicy_Provider = 1
)
var NetworkPolicy_Provider_name = map[int32]string{
0: "PROVIDER_UNSPECIFIED",
1: "CALICO",
}
var NetworkPolicy_Provider_value = map[string]int32{
"PROVIDER_UNSPECIFIED": 0,
"CALICO": 1,
}
func (x NetworkPolicy_Provider) String() string {
return proto.EnumName(NetworkPolicy_Provider_name, int32(x))
}
func (NetworkPolicy_Provider) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_cluster_service_5118ef8ec5d5f37b, []int{10, 0}
}
// The current status of the cluster.
type Cluster_Status int32
const (
// Not set.
Cluster_STATUS_UNSPECIFIED Cluster_Status = 0
// The PROVISIONING state indicates the cluster is being created.
Cluster_PROVISIONING Cluster_Status = 1
// The RUNNING state indicates the cluster has been created and is fully
// usable.
Cluster_RUNNING Cluster_Status = 2
// The RECONCILING state indicates that some work is actively being done on
// the cluster, such as upgrading the master or node software. Details can
// be found in the `statusMessage` field.
Cluster_RECONCILING Cluster_Status = 3
// The STOPPING state indicates the cluster is being deleted.
Cluster_STOPPING Cluster_Status = 4
// The ERROR state indicates the cluster may be unusable. Details
// can be found in the `statusMessage` field.
Cluster_ERROR Cluster_Status = 5
)
var Cluster_Status_name = map[int32]string{
0: "STATUS_UNSPECIFIED",
1: "PROVISIONING",
2: "RUNNING",
3: "RECONCILING",
4: "STOPPING",
5: "ERROR",
}
var Cluster_Status_value = map[string]int32{
"STATUS_UNSPECIFIED": 0,
"PROVISIONING": 1,
"RUNNING": 2,
"RECONCILING": 3,
"STOPPING": 4,
"ERROR": 5,
}
func (x Cluster_Status) String() string {
return proto.EnumName(Cluster_Status_name, int32(x))
}
func (Cluster_Status) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_cluster_service_5118ef8ec5d5f37b, []int{12, 0}
}
// Current status of the operation.
type Operation_Status int32
const (
// Not set.
Operation_STATUS_UNSPECIFIED Operation_Status = 0
// The operation has been created.
Operation_PENDING Operation_Status = 1
// The operation is currently running.
Operation_RUNNING Operation_Status = 2
// The operation is done, either cancelled or completed.
Operation_DONE Operation_Status = 3
// The operation is aborting.
Operation_ABORTING Operation_Status = 4
)
var Operation_Status_name = map[int32]string{
0: "STATUS_UNSPECIFIED",
1: "PENDING",
2: "RUNNING",
3: "DONE",
4: "ABORTING",
}
var Operation_Status_value = map[string]int32{
"STATUS_UNSPECIFIED": 0,
"PENDING": 1,
"RUNNING": 2,
"DONE": 3,
"ABORTING": 4,
}
func (x Operation_Status) String() string {
return proto.EnumName(Operation_Status_name, int32(x))
}
func (Operation_Status) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_cluster_service_5118ef8ec5d5f37b, []int{14, 0}
}
// Operation type.
type Operation_Type int32
const (
// Not set.
Operation_TYPE_UNSPECIFIED Operation_Type = 0
// Cluster create.
Operation_CREATE_CLUSTER Operation_Type = 1
// Cluster delete.
Operation_DELETE_CLUSTER Operation_Type = 2
// A master upgrade.
Operation_UPGRADE_MASTER Operation_Type = 3
// A node upgrade.
Operation_UPGRADE_NODES Operation_Type = 4
// Cluster repair.
Operation_REPAIR_CLUSTER Operation_Type = 5
// Cluster update.
Operation_UPDATE_CLUSTER Operation_Type = 6
// Node pool create.
Operation_CREATE_NODE_POOL Operation_Type = 7
// Node pool delete.
Operation_DELETE_NODE_POOL Operation_Type = 8
// Set node pool management.
Operation_SET_NODE_POOL_MANAGEMENT Operation_Type = 9
// Automatic node pool repair.
Operation_AUTO_REPAIR_NODES Operation_Type = 10
// Automatic node upgrade.
Operation_AUTO_UPGRADE_NODES Operation_Type = 11
// Set labels.
Operation_SET_LABELS Operation_Type = 12
// Set/generate master auth materials
Operation_SET_MASTER_AUTH Operation_Type = 13
// Set node pool size.
Operation_SET_NODE_POOL_SIZE Operation_Type = 14
// Updates network policy for a cluster.
Operation_SET_NETWORK_POLICY Operation_Type = 15
// Set the maintenance policy.
Operation_SET_MAINTENANCE_POLICY Operation_Type = 16
)
var Operation_Type_name = map[int32]string{
0: "TYPE_UNSPECIFIED",
1: "CREATE_CLUSTER",
2: "DELETE_CLUSTER",
3: "UPGRADE_MASTER",
4: "UPGRADE_NODES",
5: "REPAIR_CLUSTER",
6: "UPDATE_CLUSTER",
7: "CREATE_NODE_POOL",
8: "DELETE_NODE_POOL",
9: "SET_NODE_POOL_MANAGEMENT",
10: "AUTO_REPAIR_NODES",
11: "AUTO_UPGRADE_NODES",
12: "SET_LABELS",
13: "SET_MASTER_AUTH",
14: "SET_NODE_POOL_SIZE",
15: "SET_NETWORK_POLICY",
16: "SET_MAINTENANCE_POLICY",
}
var Operation_Type_value = map[string]int32{
"TYPE_UNSPECIFIED": 0,
"CREATE_CLUSTER": 1,
"DELETE_CLUSTER": 2,
"UPGRADE_MASTER": 3,
"UPGRADE_NODES": 4,
"REPAIR_CLUSTER": 5,
"UPDATE_CLUSTER": 6,
"CREATE_NODE_POOL": 7,
"DELETE_NODE_POOL": 8,
"SET_NODE_POOL_MANAGEMENT": 9,
"AUTO_REPAIR_NODES": 10,
"AUTO_UPGRADE_NODES": 11,
"SET_LABELS": 12,
"SET_MASTER_AUTH": 13,
"SET_NODE_POOL_SIZE": 14,
"SET_NETWORK_POLICY": 15,
"SET_MAINTENANCE_POLICY": 16,
}
func (x Operation_Type) String() string {
return proto.EnumName(Operation_Type_name, int32(x))
}
func (Operation_Type) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_cluster_service_5118ef8ec5d5f37b, []int{14, 1}
}
// Operation type: what type update to perform.
type SetMasterAuthRequest_Action int32
const (
// Operation is unknown and will error out.
SetMasterAuthRequest_UNKNOWN SetMasterAuthRequest_Action = 0
// Set the password to a user generated value.
SetMasterAuthRequest_SET_PASSWORD SetMasterAuthRequest_Action = 1
// Generate a new password and set it to that.
SetMasterAuthRequest_GENERATE_PASSWORD SetMasterAuthRequest_Action = 2
// Set the username. If an empty username is provided, basic authentication
// is disabled for the cluster. If a non-empty username is provided, basic
// authentication is enabled, with either a provided password or a generated
// one.
SetMasterAuthRequest_SET_USERNAME SetMasterAuthRequest_Action = 3
)
var SetMasterAuthRequest_Action_name = map[int32]string{
0: "UNKNOWN",
1: "SET_PASSWORD",
2: "GENERATE_PASSWORD",
3: "SET_USERNAME",
}
var SetMasterAuthRequest_Action_value = map[string]int32{
"UNKNOWN": 0,
"SET_PASSWORD": 1,
"GENERATE_PASSWORD": 2,
"SET_USERNAME": 3,
}
func (x SetMasterAuthRequest_Action) String() string {
return proto.EnumName(SetMasterAuthRequest_Action_name, int32(x))
}
func (SetMasterAuthRequest_Action) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_cluster_service_5118ef8ec5d5f37b, []int{25, 0}
}
// The current status of the node pool instance.
type NodePool_Status int32
const (
// Not set.
NodePool_STATUS_UNSPECIFIED NodePool_Status = 0
// The PROVISIONING state indicates the node pool is being created.
NodePool_PROVISIONING NodePool_Status = 1
// The RUNNING state indicates the node pool has been created
// and is fully usable.
NodePool_RUNNING NodePool_Status = 2
// The RUNNING_WITH_ERROR state indicates the node pool has been created
// and is partially usable. Some error state has occurred and some
// functionality may be impaired. Customer may need to reissue a request
// or trigger a new update.
NodePool_RUNNING_WITH_ERROR NodePool_Status = 3
// The RECONCILING state indicates that some work is actively being done on
// the node pool, such as upgrading node software. Details can
// be found in the `statusMessage` field.
NodePool_RECONCILING NodePool_Status = 4
// The STOPPING state indicates the node pool is being deleted.
NodePool_STOPPING NodePool_Status = 5
// The ERROR state indicates the node pool may be unusable. Details
// can be found in the `statusMessage` field.
NodePool_ERROR NodePool_Status = 6
)
var NodePool_Status_name = map[int32]string{
0: "STATUS_UNSPECIFIED",
1: "PROVISIONING",
2: "RUNNING",
3: "RUNNING_WITH_ERROR",
4: "RECONCILING",
5: "STOPPING",
6: "ERROR",
}
var NodePool_Status_value = map[string]int32{
"STATUS_UNSPECIFIED": 0,
"PROVISIONING": 1,
"RUNNING": 2,
"RUNNING_WITH_ERROR": 3,
"RECONCILING": 4,
"STOPPING": 5,
"ERROR": 6,
}
func (x NodePool_Status) String() string {
return proto.EnumName(NodePool_Status_name, int32(x))
}
func (NodePool_Status) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_cluster_service_5118ef8ec5d5f37b, []int{39, 0}
}
// Parameters that describe the nodes in a cluster.
type NodeConfig struct {
// The name of a Google Compute Engine [machine
// type](/compute/docs/machine-types) (e.g.
// `n1-standard-1`).
//
// If unspecified, the default machine type is
// `n1-standard-1`.
MachineType string `protobuf:"bytes,1,opt,name=machine_type,json=machineType,proto3" json:"machine_type,omitempty"`
// Size of the disk attached to each node, specified in GB.
// The smallest allowed disk size is 10GB.
//
// If unspecified, the default disk size is 100GB.
DiskSizeGb int32 `protobuf:"varint,2,opt,name=disk_size_gb,json=diskSizeGb,proto3" json:"disk_size_gb,omitempty"`
// The set of Google API scopes to be made available on all of the
// node VMs under the "default" service account.
//
// The following scopes are recommended, but not required, and by default are
// not included:
//
// * `https://www.googleapis.com/auth/compute` is required for mounting
// persistent storage on your nodes.
// * `https://www.googleapis.com/auth/devstorage.read_only` is required for
// communicating with **gcr.io**
// (the [Google Container Registry](/container-registry/)).
//
// If unspecified, no scopes are added, unless Cloud Logging or Cloud
// Monitoring are enabled, in which case their required scopes will be added.
OauthScopes []string `protobuf:"bytes,3,rep,name=oauth_scopes,json=oauthScopes,proto3" json:"oauth_scopes,omitempty"`
// The Google Cloud Platform Service Account to be used by the node VMs. If
// no Service Account is specified, the "default" service account is used.
ServiceAccount string `protobuf:"bytes,9,opt,name=service_account,json=serviceAccount,proto3" json:"service_account,omitempty"`
// The metadata key/value pairs assigned to instances in the cluster.
//
// Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes
// in length. These are reflected as part of a URL in the metadata server.
// Additionally, to avoid ambiguity, keys must not conflict with any other
// metadata keys for the project or be one of the four reserved keys:
// "instance-template", "kube-env", "startup-script", and "user-data"
//
// Values are free-form strings, and only have meaning as interpreted by
// the image running in the instance. The only restriction placed on them is
// that each value's size must be less than or equal to 32 KB.
//
// The total size of all keys and values must be less than 512 KB.
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"`
// The image type to use for this node. Note that for a given image type,
// the latest version of it will be used.
ImageType string `protobuf:"bytes,5,opt,name=image_type,json=imageType,proto3" json:"image_type,omitempty"`
// The map of Kubernetes labels (key/value pairs) to be applied to each node.
// These will added in addition to any default label(s) that
// Kubernetes may apply to the node.
// In case of conflict in label keys, the applied set may differ depending on
// the Kubernetes version -- it's best to assume the behavior is undefined
// and conflicts should be avoided.
// For more information, including usage and the valid values, see:
// https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
Labels map[string]string `protobuf:"bytes,6,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// The number of local SSD disks to be attached to the node.
//
// The limit for this value is dependant upon the maximum number of
// disks available on a machine per zone. See:
// https://cloud.google.com/compute/docs/disks/local-ssd#local_ssd_limits
// for more information.
LocalSsdCount int32 `protobuf:"varint,7,opt,name=local_ssd_count,json=localSsdCount,proto3" json:"local_ssd_count,omitempty"`
// The list of instance tags applied to all nodes. Tags are used to identify
// valid sources or targets for network firewalls and are specified by
// the client during cluster or node pool creation. Each tag within the list
// must comply with RFC1035.
Tags []string `protobuf:"bytes,8,rep,name=tags,proto3" json:"tags,omitempty"`
// Whether the nodes are created as preemptible VM instances. See:
// https://cloud.google.com/compute/docs/instances/preemptible for more
// information about preemptible VM instances.
Preemptible bool `protobuf:"varint,10,opt,name=preemptible,proto3" json:"preemptible,omitempty"`
// A list of hardware accelerators to be attached to each node.
// See https://cloud.google.com/compute/docs/gpus for more information about
// support for GPUs.
Accelerators []*AcceleratorConfig `protobuf:"bytes,11,rep,name=accelerators,proto3" json:"accelerators,omitempty"`
// Minimum CPU platform to be used by this instance. The instance may be
// scheduled on the specified or newer CPU platform. Applicable values are the
// friendly names of CPU platforms, such as
// <code>minCpuPlatform: "Intel Haswell"</code> or
// <code>minCpuPlatform: "Intel Sandy Bridge"</code>. For more
// information, read [how to specify min CPU platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
MinCpuPlatform string `protobuf:"bytes,13,opt,name=min_cpu_platform,json=minCpuPlatform,proto3" json:"min_cpu_platform,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *NodeConfig) Reset() { *m = NodeConfig{} }
func (m *NodeConfig) String() string { return proto.CompactTextString(m) }
func (*NodeConfig) ProtoMessage() {}
func (*NodeConfig) Descriptor() ([]byte, []int) {
return fileDescriptor_cluster_service_5118ef8ec5d5f37b, []int{0}
}
func (m *NodeConfig) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_NodeConfig.Unmarshal(m, b)
}
func (m *NodeConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_NodeConfig.Marshal(b, m, deterministic)
}
func (dst *NodeConfig) XXX_Merge(src proto.Message) {
xxx_messageInfo_NodeConfig.Merge(dst, src)
}
func (m *NodeConfig) XXX_Size() int {
return xxx_messageInfo_NodeConfig.Size(m)
}
func (m *NodeConfig) XXX_DiscardUnknown() {
xxx_messageInfo_NodeConfig.DiscardUnknown(m)
}
var xxx_messageInfo_NodeConfig proto.InternalMessageInfo
func (m *NodeConfig) GetMachineType() string {
if m != nil {
return m.MachineType
}
return ""
}
func (m *NodeConfig) GetDiskSizeGb() int32 {
if m != nil {
return m.DiskSizeGb
}
return 0
}
func (m *NodeConfig) GetOauthScopes() []string {
if m != nil {
return m.OauthScopes
}
return nil
}
func (m *NodeConfig) GetServiceAccount() string {
if m != nil {
return m.ServiceAccount
}
return ""
}
func (m *NodeConfig) GetMetadata() map[string]string {
if m != nil {
return m.Metadata
}
return nil
}
func (m *NodeConfig) GetImageType() string {
if m != nil {
return m.ImageType
}
return ""
}
func (m *NodeConfig) GetLabels() map[string]string {
if m != nil {
return m.Labels
}
return nil
}
func (m *NodeConfig) GetLocalSsdCount() int32 {
if m != nil {
return m.LocalSsdCount
}
return 0
}
func (m *NodeConfig) GetTags() []string {
if m != nil {
return m.Tags
}
return nil
}
func (m *NodeConfig) GetPreemptible() bool {
if m != nil {
return m.Preemptible
}
return false
}
func (m *NodeConfig) GetAccelerators() []*AcceleratorConfig {
if m != nil {
return m.Accelerators
}
return nil
}
func (m *NodeConfig) GetMinCpuPlatform() string {
if m != nil {
return m.MinCpuPlatform
}
return ""
}
// The authentication information for accessing the master endpoint.
// Authentication can be done using HTTP basic auth or using client
// certificates.
type MasterAuth struct {
// The username to use for HTTP basic authentication to the master endpoint.
// For clusters v1.6.0 and later, you can disable basic authentication by
// providing an empty username.
Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
// The password to use for HTTP basic authentication to the master endpoint.
// Because the master endpoint is open to the Internet, you should create a
// strong password. If a password is provided for cluster creation, username
// must be non-empty.
Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
// Configuration for client certificate authentication on the cluster. If no
// configuration is specified, a client certificate is issued.
ClientCertificateConfig *ClientCertificateConfig `protobuf:"bytes,3,opt,name=client_certificate_config,json=clientCertificateConfig,proto3" json:"client_certificate_config,omitempty"`
// [Output only] Base64-encoded public certificate that is the root of
// trust for the cluster.
ClusterCaCertificate string `protobuf:"bytes,100,opt,name=cluster_ca_certificate,json=clusterCaCertificate,proto3" json:"cluster_ca_certificate,omitempty"`
// [Output only] Base64-encoded public certificate used by clients to
// authenticate to the cluster endpoint.
ClientCertificate string `protobuf:"bytes,101,opt,name=client_certificate,json=clientCertificate,proto3" json:"client_certificate,omitempty"`
// [Output only] Base64-encoded private key used by clients to authenticate
// to the cluster endpoint.
ClientKey string `protobuf:"bytes,102,opt,name=client_key,json=clientKey,proto3" json:"client_key,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *MasterAuth) Reset() { *m = MasterAuth{} }
func (m *MasterAuth) String() string { return proto.CompactTextString(m) }
func (*MasterAuth) ProtoMessage() {}
func (*MasterAuth) Descriptor() ([]byte, []int) {
return fileDescriptor_cluster_service_5118ef8ec5d5f37b, []int{1}
}
func (m *MasterAuth) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_MasterAuth.Unmarshal(m, b)
}
func (m *MasterAuth) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_MasterAuth.Marshal(b, m, deterministic)
}
func (dst *MasterAuth) XXX_Merge(src proto.Message) {
xxx_messageInfo_MasterAuth.Merge(dst, src)
}
func (m *MasterAuth) XXX_Size() int {
return xxx_messageInfo_MasterAuth.Size(m)
}
func (m *MasterAuth) XXX_DiscardUnknown() {
xxx_messageInfo_MasterAuth.DiscardUnknown(m)
}
var xxx_messageInfo_MasterAuth proto.InternalMessageInfo
func (m *MasterAuth) GetUsername() string {
if m != nil {
return m.Username
}
return ""
}
func (m *MasterAuth) GetPassword() string {
if m != nil {
return m.Password
}
return ""
}
func (m *MasterAuth) GetClientCertificateConfig() *ClientCertificateConfig {
if m != nil {
return m.ClientCertificateConfig
}
return nil
}
func (m *MasterAuth) GetClusterCaCertificate() string {
if m != nil {
return m.ClusterCaCertificate
}
return ""
}
func (m *MasterAuth) GetClientCertificate() string {
if m != nil {
return m.ClientCertificate
}
return ""
}
func (m *MasterAuth) GetClientKey() string {
if m != nil {
return m.ClientKey
}
return ""
}
// Configuration for client certificates on the cluster.
type ClientCertificateConfig struct {
// Issue a client certificate.
IssueClientCertificate bool `protobuf:"varint,1,opt,name=issue_client_certificate,json=issueClientCertificate,proto3" json:"issue_client_certificate,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ClientCertificateConfig) Reset() { *m = ClientCertificateConfig{} }
func (m *ClientCertificateConfig) String() string { return proto.CompactTextString(m) }
func (*ClientCertificateConfig) ProtoMessage() {}
func (*ClientCertificateConfig) Descriptor() ([]byte, []int) {
return fileDescriptor_cluster_service_5118ef8ec5d5f37b, []int{2}
}
func (m *ClientCertificateConfig) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ClientCertificateConfig.Unmarshal(m, b)
}
func (m *ClientCertificateConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ClientCertificateConfig.Marshal(b, m, deterministic)
}
func (dst *ClientCertificateConfig) XXX_Merge(src proto.Message) {
xxx_messageInfo_ClientCertificateConfig.Merge(dst, src)
}
func (m *ClientCertificateConfig) XXX_Size() int {
return xxx_messageInfo_ClientCertificateConfig.Size(m)
}
func (m *ClientCertificateConfig) XXX_DiscardUnknown() {
xxx_messageInfo_ClientCertificateConfig.DiscardUnknown(m)
}
var xxx_messageInfo_ClientCertificateConfig proto.InternalMessageInfo
func (m *ClientCertificateConfig) GetIssueClientCertificate() bool {
if m != nil {
return m.IssueClientCertificate
}
return false
}
// Configuration for the addons that can be automatically spun up in the
// cluster, enabling additional functionality.
type AddonsConfig struct {
// Configuration for the HTTP (L7) load balancing controller addon, which
// makes it easy to set up HTTP load balancers for services in a cluster.
HttpLoadBalancing *HttpLoadBalancing `protobuf:"bytes,1,opt,name=http_load_balancing,json=httpLoadBalancing,proto3" json:"http_load_balancing,omitempty"`
// Configuration for the horizontal pod autoscaling feature, which
// increases or decreases the number of replica pods a replication controller
// has based on the resource usage of the existing pods.
HorizontalPodAutoscaling *HorizontalPodAutoscaling `protobuf:"bytes,2,opt,name=horizontal_pod_autoscaling,json=horizontalPodAutoscaling,proto3" json:"horizontal_pod_autoscaling,omitempty"`
// Configuration for the Kubernetes Dashboard.
KubernetesDashboard *KubernetesDashboard `protobuf:"bytes,3,opt,name=kubernetes_dashboard,json=kubernetesDashboard,proto3" json:"kubernetes_dashboard,omitempty"`
// Configuration for NetworkPolicy. This only tracks whether the addon
// is enabled or not on the Master, it does not track whether network policy
// is enabled for the nodes.
NetworkPolicyConfig *NetworkPolicyConfig `protobuf:"bytes,4,opt,name=network_policy_config,json=networkPolicyConfig,proto3" json:"network_policy_config,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *AddonsConfig) Reset() { *m = AddonsConfig{} }
func (m *AddonsConfig) String() string { return proto.CompactTextString(m) }
func (*AddonsConfig) ProtoMessage() {}
func (*AddonsConfig) Descriptor() ([]byte, []int) {
return fileDescriptor_cluster_service_5118ef8ec5d5f37b, []int{3}
}
func (m *AddonsConfig) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_AddonsConfig.Unmarshal(m, b)
}
func (m *AddonsConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_AddonsConfig.Marshal(b, m, deterministic)
}
func (dst *AddonsConfig) XXX_Merge(src proto.Message) {
xxx_messageInfo_AddonsConfig.Merge(dst, src)
}
func (m *AddonsConfig) XXX_Size() int {
return xxx_messageInfo_AddonsConfig.Size(m)
}
func (m *AddonsConfig) XXX_DiscardUnknown() {
xxx_messageInfo_AddonsConfig.DiscardUnknown(m)
}
var xxx_messageInfo_AddonsConfig proto.InternalMessageInfo
func (m *AddonsConfig) GetHttpLoadBalancing() *HttpLoadBalancing {
if m != nil {
return m.HttpLoadBalancing
}
return nil
}
func (m *AddonsConfig) GetHorizontalPodAutoscaling() *HorizontalPodAutoscaling {
if m != nil {
return m.HorizontalPodAutoscaling
}
return nil
}
func (m *AddonsConfig) GetKubernetesDashboard() *KubernetesDashboard {
if m != nil {
return m.KubernetesDashboard
}
return nil
}
func (m *AddonsConfig) GetNetworkPolicyConfig() *NetworkPolicyConfig {
if m != nil {
return m.NetworkPolicyConfig
}
return nil
}
// Configuration options for the HTTP (L7) load balancing controller addon,
// which makes it easy to set up HTTP load balancers for services in a cluster.
type HttpLoadBalancing struct {
// Whether the HTTP Load Balancing controller is enabled in the cluster.
// When enabled, it runs a small pod in the cluster that manages the load
// balancers.
Disabled bool `protobuf:"varint,1,opt,name=disabled,proto3" json:"disabled,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *HttpLoadBalancing) Reset() { *m = HttpLoadBalancing{} }
func (m *HttpLoadBalancing) String() string { return proto.CompactTextString(m) }
func (*HttpLoadBalancing) ProtoMessage() {}
func (*HttpLoadBalancing) Descriptor() ([]byte, []int) {
return fileDescriptor_cluster_service_5118ef8ec5d5f37b, []int{4}
}
func (m *HttpLoadBalancing) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_HttpLoadBalancing.Unmarshal(m, b)
}
func (m *HttpLoadBalancing) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_HttpLoadBalancing.Marshal(b, m, deterministic)
}
func (dst *HttpLoadBalancing) XXX_Merge(src proto.Message) {
xxx_messageInfo_HttpLoadBalancing.Merge(dst, src)
}
func (m *HttpLoadBalancing) XXX_Size() int {
return xxx_messageInfo_HttpLoadBalancing.Size(m)
}
func (m *HttpLoadBalancing) XXX_DiscardUnknown() {
xxx_messageInfo_HttpLoadBalancing.DiscardUnknown(m)
}
var xxx_messageInfo_HttpLoadBalancing proto.InternalMessageInfo
func (m *HttpLoadBalancing) GetDisabled() bool {
if m != nil {
return m.Disabled
}
return false
}
// Configuration options for the horizontal pod autoscaling feature, which
// increases or decreases the number of replica pods a replication controller
// has based on the resource usage of the existing pods.
type HorizontalPodAutoscaling struct {
// Whether the Horizontal Pod Autoscaling feature is enabled in the cluster.
// When enabled, it ensures that a Heapster pod is running in the cluster,
// which is also used by the Cloud Monitoring service.
Disabled bool `protobuf:"varint,1,opt,name=disabled,proto3" json:"disabled,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *HorizontalPodAutoscaling) Reset() { *m = HorizontalPodAutoscaling{} }
func (m *HorizontalPodAutoscaling) String() string { return proto.CompactTextString(m) }
func (*HorizontalPodAutoscaling) ProtoMessage() {}
func (*HorizontalPodAutoscaling) Descriptor() ([]byte, []int) {
return fileDescriptor_cluster_service_5118ef8ec5d5f37b, []int{5}
}
func (m *HorizontalPodAutoscaling) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_HorizontalPodAutoscaling.Unmarshal(m, b)
}
func (m *HorizontalPodAutoscaling) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_HorizontalPodAutoscaling.Marshal(b, m, deterministic)
}
func (dst *HorizontalPodAutoscaling) XXX_Merge(src proto.Message) {
xxx_messageInfo_HorizontalPodAutoscaling.Merge(dst, src)
}
func (m *HorizontalPodAutoscaling) XXX_Size() int {
return xxx_messageInfo_HorizontalPodAutoscaling.Size(m)
}
func (m *HorizontalPodAutoscaling) XXX_DiscardUnknown() {
xxx_messageInfo_HorizontalPodAutoscaling.DiscardUnknown(m)
}
var xxx_messageInfo_HorizontalPodAutoscaling proto.InternalMessageInfo
func (m *HorizontalPodAutoscaling) GetDisabled() bool {
if m != nil {
return m.Disabled
}
return false
}
// Configuration for the Kubernetes Dashboard.
type KubernetesDashboard struct {
// Whether the Kubernetes Dashboard is enabled for this cluster.
Disabled bool `protobuf:"varint,1,opt,name=disabled,proto3" json:"disabled,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *KubernetesDashboard) Reset() { *m = KubernetesDashboard{} }
func (m *KubernetesDashboard) String() string { return proto.CompactTextString(m) }
func (*KubernetesDashboard) ProtoMessage() {}
func (*KubernetesDashboard) Descriptor() ([]byte, []int) {
return fileDescriptor_cluster_service_5118ef8ec5d5f37b, []int{6}
}
func (m *KubernetesDashboard) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_KubernetesDashboard.Unmarshal(m, b)
}
func (m *KubernetesDashboard) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_KubernetesDashboard.Marshal(b, m, deterministic)
}
func (dst *KubernetesDashboard) XXX_Merge(src proto.Message) {
xxx_messageInfo_KubernetesDashboard.Merge(dst, src)
}
func (m *KubernetesDashboard) XXX_Size() int {
return xxx_messageInfo_KubernetesDashboard.Size(m)
}
func (m *KubernetesDashboard) XXX_DiscardUnknown() {
xxx_messageInfo_KubernetesDashboard.DiscardUnknown(m)
}
var xxx_messageInfo_KubernetesDashboard proto.InternalMessageInfo
func (m *KubernetesDashboard) GetDisabled() bool {
if m != nil {
return m.Disabled
}
return false
}
// Configuration for NetworkPolicy. This only tracks whether the addon
// is enabled or not on the Master, it does not track whether network policy
// is enabled for the nodes.
type NetworkPolicyConfig struct {
// Whether NetworkPolicy is enabled for this cluster.
Disabled bool `protobuf:"varint,1,opt,name=disabled,proto3" json:"disabled,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *NetworkPolicyConfig) Reset() { *m = NetworkPolicyConfig{} }
func (m *NetworkPolicyConfig) String() string { return proto.CompactTextString(m) }
func (*NetworkPolicyConfig) ProtoMessage() {}
func (*NetworkPolicyConfig) Descriptor() ([]byte, []int) {
return fileDescriptor_cluster_service_5118ef8ec5d5f37b, []int{7}
}
func (m *NetworkPolicyConfig) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_NetworkPolicyConfig.Unmarshal(m, b)
}
func (m *NetworkPolicyConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_NetworkPolicyConfig.Marshal(b, m, deterministic)
}
func (dst *NetworkPolicyConfig) XXX_Merge(src proto.Message) {
xxx_messageInfo_NetworkPolicyConfig.Merge(dst, src)
}
func (m *NetworkPolicyConfig) XXX_Size() int {
return xxx_messageInfo_NetworkPolicyConfig.Size(m)
}
func (m *NetworkPolicyConfig) XXX_DiscardUnknown() {
xxx_messageInfo_NetworkPolicyConfig.DiscardUnknown(m)
}
var xxx_messageInfo_NetworkPolicyConfig proto.InternalMessageInfo
func (m *NetworkPolicyConfig) GetDisabled() bool {
if m != nil {
return m.Disabled
}
return false
}
// Master authorized networks is a Beta feature.
// Configuration options for the master authorized networks feature. Enabled
// master authorized networks will disallow all external traffic to access
// Kubernetes master through HTTPS except traffic from the given CIDR blocks,
// Google Compute Engine Public IPs and Google Prod IPs.
type MasterAuthorizedNetworksConfig struct {
// Whether or not master authorized networks is enabled.
Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"`
// cidr_blocks define up to 10 external networks that could access
// Kubernetes master through HTTPS.
CidrBlocks []*MasterAuthorizedNetworksConfig_CidrBlock `protobuf:"bytes,2,rep,name=cidr_blocks,json=cidrBlocks,proto3" json:"cidr_blocks,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *MasterAuthorizedNetworksConfig) Reset() { *m = MasterAuthorizedNetworksConfig{} }
func (m *MasterAuthorizedNetworksConfig) String() string { return proto.CompactTextString(m) }
func (*MasterAuthorizedNetworksConfig) ProtoMessage() {}
func (*MasterAuthorizedNetworksConfig) Descriptor() ([]byte, []int) {
return fileDescriptor_cluster_service_5118ef8ec5d5f37b, []int{8}
}
func (m *MasterAuthorizedNetworksConfig) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_MasterAuthorizedNetworksConfig.Unmarshal(m, b)
}
func (m *MasterAuthorizedNetworksConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_MasterAuthorizedNetworksConfig.Marshal(b, m, deterministic)
}
func (dst *MasterAuthorizedNetworksConfig) XXX_Merge(src proto.Message) {
xxx_messageInfo_MasterAuthorizedNetworksConfig.Merge(dst, src)
}
func (m *MasterAuthorizedNetworksConfig) XXX_Size() int {
return xxx_messageInfo_MasterAuthorizedNetworksConfig.Size(m)
}
func (m *MasterAuthorizedNetworksConfig) XXX_DiscardUnknown() {
xxx_messageInfo_MasterAuthorizedNetworksConfig.DiscardUnknown(m)
}
var xxx_messageInfo_MasterAuthorizedNetworksConfig proto.InternalMessageInfo
func (m *MasterAuthorizedNetworksConfig) GetEnabled() bool {
if m != nil {
return m.Enabled
}
return false
}
func (m *MasterAuthorizedNetworksConfig) GetCidrBlocks() []*MasterAuthorizedNetworksConfig_CidrBlock {
if m != nil {
return m.CidrBlocks
}
return nil
}
// CidrBlock contains an optional name and one CIDR block.
type MasterAuthorizedNetworksConfig_CidrBlock struct {
// display_name is an optional field for users to identify CIDR blocks.
DisplayName string `protobuf:"bytes,1,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
// cidr_block must be specified in CIDR notation.
CidrBlock string `protobuf:"bytes,2,opt,name=cidr_block,json=cidrBlock,proto3" json:"cidr_block,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *MasterAuthorizedNetworksConfig_CidrBlock) Reset() {
*m = MasterAuthorizedNetworksConfig_CidrBlock{}
}
func (m *MasterAuthorizedNetworksConfig_CidrBlock) String() string { return proto.CompactTextString(m) }
func (*MasterAuthorizedNetworksConfig_CidrBlock) ProtoMessage() {}
func (*MasterAuthorizedNetworksConfig_CidrBlock) Descriptor() ([]byte, []int) {
return fileDescriptor_cluster_service_5118ef8ec5d5f37b, []int{8, 0}
}
func (m *MasterAuthorizedNetworksConfig_CidrBlock) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_MasterAuthorizedNetworksConfig_CidrBlock.Unmarshal(m, b)
}
func (m *MasterAuthorizedNetworksConfig_CidrBlock) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_MasterAuthorizedNetworksConfig_CidrBlock.Marshal(b, m, deterministic)
}
func (dst *MasterAuthorizedNetworksConfig_CidrBlock) XXX_Merge(src proto.Message) {
xxx_messageInfo_MasterAuthorizedNetworksConfig_CidrBlock.Merge(dst, src)
}
func (m *MasterAuthorizedNetworksConfig_CidrBlock) XXX_Size() int {
return xxx_messageInfo_MasterAuthorizedNetworksConfig_CidrBlock.Size(m)
}
func (m *MasterAuthorizedNetworksConfig_CidrBlock) XXX_DiscardUnknown() {
xxx_messageInfo_MasterAuthorizedNetworksConfig_CidrBlock.DiscardUnknown(m)
}
var xxx_messageInfo_MasterAuthorizedNetworksConfig_CidrBlock proto.InternalMessageInfo
func (m *MasterAuthorizedNetworksConfig_CidrBlock) GetDisplayName() string {
if m != nil {
return m.DisplayName
}
return ""
}
func (m *MasterAuthorizedNetworksConfig_CidrBlock) GetCidrBlock() string {
if m != nil {
return m.CidrBlock
}
return ""
}
// Configuration for the legacy Attribute Based Access Control authorization
// mode.
type LegacyAbac struct {
// Whether the ABAC authorizer is enabled for this cluster. When enabled,
// identities in the system, including service accounts, nodes, and
// controllers, will have statically granted permissions beyond those