forked from joeholley/supergloo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmesh.pb.go
1134 lines (1052 loc) · 35.7 KB
/
mesh.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: github.com/solo-io/supergloo/api/v1/mesh.proto
package v1
import (
bytes "bytes"
fmt "fmt"
math "math"
_ "github.com/gogo/protobuf/gogoproto"
proto "github.com/gogo/protobuf/proto"
_ "github.com/gogo/protobuf/types"
core "github.com/solo-io/solo-kit/pkg/api/v1/resources/core"
)
// 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.GoGoProtoPackageIsVersion2 // please upgrade the proto package
//
//Meshes represent a currently registered service mesh.
type Mesh struct {
// Status indicates the validation status of this resource.
// Status is read-only by clients, and set by supergloo during validation
Status core.Status `protobuf:"bytes,100,opt,name=status,proto3" json:"status" testdiff:"ignore"`
// Metadata contains the object metadata for this resource
Metadata core.Metadata `protobuf:"bytes,101,opt,name=metadata,proto3" json:"metadata"`
// Types that are valid to be assigned to MeshType:
// *Mesh_Istio
// *Mesh_AwsAppMesh
// *Mesh_Linkerd
MeshType isMesh_MeshType `protobuf_oneof:"mesh_type"`
// mtls config specifies configuration options for enabling mutual
// tls between pods in this mesh
MtlsConfig *MtlsConfig `protobuf:"bytes,2,opt,name=mtls_config,json=mtlsConfig,proto3" json:"mtls_config,omitempty"`
// configuration for propagating stats and metrics from
// mesh controllers and sidecars to a centralized datastore
// such as prometheus
MonitoringConfig *MonitoringConfig `protobuf:"bytes,3,opt,name=monitoring_config,json=monitoringConfig,proto3" json:"monitoring_config,omitempty"`
// object which represents the data mesh discovery finds about a given mesh
DiscoveryMetadata *DiscoveryMetadata `protobuf:"bytes,6,opt,name=discovery_metadata,json=discoveryMetadata,proto3" json:"discovery_metadata,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Mesh) Reset() { *m = Mesh{} }
func (m *Mesh) String() string { return proto.CompactTextString(m) }
func (*Mesh) ProtoMessage() {}
func (*Mesh) Descriptor() ([]byte, []int) {
return fileDescriptor_713281dd1a237b0d, []int{0}
}
func (m *Mesh) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Mesh.Unmarshal(m, b)
}
func (m *Mesh) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Mesh.Marshal(b, m, deterministic)
}
func (m *Mesh) XXX_Merge(src proto.Message) {
xxx_messageInfo_Mesh.Merge(m, src)
}
func (m *Mesh) XXX_Size() int {
return xxx_messageInfo_Mesh.Size(m)
}
func (m *Mesh) XXX_DiscardUnknown() {
xxx_messageInfo_Mesh.DiscardUnknown(m)
}
var xxx_messageInfo_Mesh proto.InternalMessageInfo
type isMesh_MeshType interface {
isMesh_MeshType()
Equal(interface{}) bool
}
type Mesh_Istio struct {
Istio *IstioMesh `protobuf:"bytes,1,opt,name=istio,proto3,oneof"`
}
type Mesh_AwsAppMesh struct {
AwsAppMesh *AwsAppMesh `protobuf:"bytes,4,opt,name=aws_app_mesh,json=awsAppMesh,proto3,oneof"`
}
type Mesh_Linkerd struct {
Linkerd *LinkerdMesh `protobuf:"bytes,5,opt,name=linkerd,proto3,oneof"`
}
func (*Mesh_Istio) isMesh_MeshType() {}
func (*Mesh_AwsAppMesh) isMesh_MeshType() {}
func (*Mesh_Linkerd) isMesh_MeshType() {}
func (m *Mesh) GetMeshType() isMesh_MeshType {
if m != nil {
return m.MeshType
}
return nil
}
func (m *Mesh) GetStatus() core.Status {
if m != nil {
return m.Status
}
return core.Status{}
}
func (m *Mesh) GetMetadata() core.Metadata {
if m != nil {
return m.Metadata
}
return core.Metadata{}
}
func (m *Mesh) GetIstio() *IstioMesh {
if x, ok := m.GetMeshType().(*Mesh_Istio); ok {
return x.Istio
}
return nil
}
func (m *Mesh) GetAwsAppMesh() *AwsAppMesh {
if x, ok := m.GetMeshType().(*Mesh_AwsAppMesh); ok {
return x.AwsAppMesh
}
return nil
}
func (m *Mesh) GetLinkerd() *LinkerdMesh {
if x, ok := m.GetMeshType().(*Mesh_Linkerd); ok {
return x.Linkerd
}
return nil
}
func (m *Mesh) GetMtlsConfig() *MtlsConfig {
if m != nil {
return m.MtlsConfig
}
return nil
}
func (m *Mesh) GetMonitoringConfig() *MonitoringConfig {
if m != nil {
return m.MonitoringConfig
}
return nil
}
func (m *Mesh) GetDiscoveryMetadata() *DiscoveryMetadata {
if m != nil {
return m.DiscoveryMetadata
}
return nil
}
// XXX_OneofFuncs is for the internal use of the proto package.
func (*Mesh) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
return _Mesh_OneofMarshaler, _Mesh_OneofUnmarshaler, _Mesh_OneofSizer, []interface{}{
(*Mesh_Istio)(nil),
(*Mesh_AwsAppMesh)(nil),
(*Mesh_Linkerd)(nil),
}
}
func _Mesh_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
m := msg.(*Mesh)
// mesh_type
switch x := m.MeshType.(type) {
case *Mesh_Istio:
_ = b.EncodeVarint(1<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.Istio); err != nil {
return err
}
case *Mesh_AwsAppMesh:
_ = b.EncodeVarint(4<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.AwsAppMesh); err != nil {
return err
}
case *Mesh_Linkerd:
_ = b.EncodeVarint(5<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.Linkerd); err != nil {
return err
}
case nil:
default:
return fmt.Errorf("Mesh.MeshType has unexpected type %T", x)
}
return nil
}
func _Mesh_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
m := msg.(*Mesh)
switch tag {
case 1: // mesh_type.istio
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(IstioMesh)
err := b.DecodeMessage(msg)
m.MeshType = &Mesh_Istio{msg}
return true, err
case 4: // mesh_type.aws_app_mesh
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(AwsAppMesh)
err := b.DecodeMessage(msg)
m.MeshType = &Mesh_AwsAppMesh{msg}
return true, err
case 5: // mesh_type.linkerd
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(LinkerdMesh)
err := b.DecodeMessage(msg)
m.MeshType = &Mesh_Linkerd{msg}
return true, err
default:
return false, nil
}
}
func _Mesh_OneofSizer(msg proto.Message) (n int) {
m := msg.(*Mesh)
// mesh_type
switch x := m.MeshType.(type) {
case *Mesh_Istio:
s := proto.Size(x.Istio)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case *Mesh_AwsAppMesh:
s := proto.Size(x.AwsAppMesh)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case *Mesh_Linkerd:
s := proto.Size(x.Linkerd)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case nil:
default:
panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
}
return n
}
// Generic discovery data shared between different meshes
type DiscoveryMetadata struct {
// list of namespaces which we know are being injected by a given mesh
InjectedNamespaceLabel string `protobuf:"bytes,1,opt,name=injected_namespace_label,json=injectedNamespaceLabel,proto3" json:"injected_namespace_label,omitempty"`
// Whether or not auto-injection is enabled for a given mesh
EnableAutoInject bool `protobuf:"varint,2,opt,name=enable_auto_inject,json=enableAutoInject,proto3" json:"enable_auto_inject,omitempty"`
// version of the mesh which is installed
MeshVersion string `protobuf:"bytes,3,opt,name=mesh_version,json=meshVersion,proto3" json:"mesh_version,omitempty"`
// namespace which the mesh is installed into
InstallationNamespace string `protobuf:"bytes,4,opt,name=installation_namespace,json=installationNamespace,proto3" json:"installation_namespace,omitempty"`
// upstreams which point to injected pods in the mesh
Upstreams []*core.ResourceRef `protobuf:"bytes,5,rep,name=upstreams,proto3" json:"upstreams,omitempty"`
// discovered mtls config of the given mesh
MtlsConfig *MtlsConfig `protobuf:"bytes,6,opt,name=mtls_config,json=mtlsConfig,proto3" json:"mtls_config,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *DiscoveryMetadata) Reset() { *m = DiscoveryMetadata{} }
func (m *DiscoveryMetadata) String() string { return proto.CompactTextString(m) }
func (*DiscoveryMetadata) ProtoMessage() {}
func (*DiscoveryMetadata) Descriptor() ([]byte, []int) {
return fileDescriptor_713281dd1a237b0d, []int{1}
}
func (m *DiscoveryMetadata) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_DiscoveryMetadata.Unmarshal(m, b)
}
func (m *DiscoveryMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_DiscoveryMetadata.Marshal(b, m, deterministic)
}
func (m *DiscoveryMetadata) XXX_Merge(src proto.Message) {
xxx_messageInfo_DiscoveryMetadata.Merge(m, src)
}
func (m *DiscoveryMetadata) XXX_Size() int {
return xxx_messageInfo_DiscoveryMetadata.Size(m)
}
func (m *DiscoveryMetadata) XXX_DiscardUnknown() {
xxx_messageInfo_DiscoveryMetadata.DiscardUnknown(m)
}
var xxx_messageInfo_DiscoveryMetadata proto.InternalMessageInfo
func (m *DiscoveryMetadata) GetInjectedNamespaceLabel() string {
if m != nil {
return m.InjectedNamespaceLabel
}
return ""
}
func (m *DiscoveryMetadata) GetEnableAutoInject() bool {
if m != nil {
return m.EnableAutoInject
}
return false
}
func (m *DiscoveryMetadata) GetMeshVersion() string {
if m != nil {
return m.MeshVersion
}
return ""
}
func (m *DiscoveryMetadata) GetInstallationNamespace() string {
if m != nil {
return m.InstallationNamespace
}
return ""
}
func (m *DiscoveryMetadata) GetUpstreams() []*core.ResourceRef {
if m != nil {
return m.Upstreams
}
return nil
}
func (m *DiscoveryMetadata) GetMtlsConfig() *MtlsConfig {
if m != nil {
return m.MtlsConfig
}
return nil
}
// Mesh object representing an installed Istio control plane
type IstioMesh struct {
// where the istio control plane has been installed
InstallationNamespace string `protobuf:"bytes,1,opt,name=installation_namespace,json=installationNamespace,proto3" json:"installation_namespace,omitempty"`
// version of istio which has been installed
Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *IstioMesh) Reset() { *m = IstioMesh{} }
func (m *IstioMesh) String() string { return proto.CompactTextString(m) }
func (*IstioMesh) ProtoMessage() {}
func (*IstioMesh) Descriptor() ([]byte, []int) {
return fileDescriptor_713281dd1a237b0d, []int{2}
}
func (m *IstioMesh) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_IstioMesh.Unmarshal(m, b)
}
func (m *IstioMesh) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_IstioMesh.Marshal(b, m, deterministic)
}
func (m *IstioMesh) XXX_Merge(src proto.Message) {
xxx_messageInfo_IstioMesh.Merge(m, src)
}
func (m *IstioMesh) XXX_Size() int {
return xxx_messageInfo_IstioMesh.Size(m)
}
func (m *IstioMesh) XXX_DiscardUnknown() {
xxx_messageInfo_IstioMesh.DiscardUnknown(m)
}
var xxx_messageInfo_IstioMesh proto.InternalMessageInfo
func (m *IstioMesh) GetInstallationNamespace() string {
if m != nil {
return m.InstallationNamespace
}
return ""
}
func (m *IstioMesh) GetVersion() string {
if m != nil {
return m.Version
}
return ""
}
// Mesh object representing AWS App Mesh
type AwsAppMesh struct {
// Reference to the secret that holds the AWS credentials that will be used to access the AWS App Mesh service.
AwsSecret *core.ResourceRef `protobuf:"bytes,1,opt,name=aws_secret,json=awsSecret,proto3" json:"aws_secret,omitempty"`
// The AWS region the AWS App Mesh control plane resources (Virtual Nodes, Virtual Routers, etc.) will be created in.
Region string `protobuf:"bytes,2,opt,name=region,proto3" json:"region,omitempty"`
// Determines whether pods will be automatically injected with the AWS App Mesh Envoy sidecar proxy.
//
// If set to true, supergloo will ensure that a MutatingAdmissionWebhook server with the injection logic is deployed
// to the cluster and that it has been registered with the Kubernetes API server via a MutatingWebhookConfiguration.
// This will cause the webhook to be invoked on each pod creation event.
EnableAutoInject bool `protobuf:"varint,3,opt,name=enable_auto_inject,json=enableAutoInject,proto3" json:"enable_auto_inject,omitempty"`
// Pods matching this selector will be injected with the sidecar proxy at creation time.
//
// NOTE: the sidecar injector webhook currently supports only the NamespaceSelector and LabelSelector
InjectionSelector *PodSelector `protobuf:"bytes,4,opt,name=injection_selector,json=injectionSelector,proto3" json:"injection_selector,omitempty"`
// If auto-injection is enabled, the value of the pod label with this key will be used to calculate the value of
// APPMESH_VIRTUAL_NODE_NAME environment variable that is set on the injected sidecar proxy container.
VirtualNodeLabel string `protobuf:"bytes,5,opt,name=virtual_node_label,json=virtualNodeLabel,proto3" json:"virtual_node_label,omitempty"`
// Reference to the config map that contains the patch that will be applied to the spec of the pods matching the
// injection_selector.
SidecarPatchConfigMap *core.ResourceRef `protobuf:"bytes,6,opt,name=sidecar_patch_config_map,json=sidecarPatchConfigMap,proto3" json:"sidecar_patch_config_map,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *AwsAppMesh) Reset() { *m = AwsAppMesh{} }
func (m *AwsAppMesh) String() string { return proto.CompactTextString(m) }
func (*AwsAppMesh) ProtoMessage() {}
func (*AwsAppMesh) Descriptor() ([]byte, []int) {
return fileDescriptor_713281dd1a237b0d, []int{3}
}
func (m *AwsAppMesh) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_AwsAppMesh.Unmarshal(m, b)
}
func (m *AwsAppMesh) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_AwsAppMesh.Marshal(b, m, deterministic)
}
func (m *AwsAppMesh) XXX_Merge(src proto.Message) {
xxx_messageInfo_AwsAppMesh.Merge(m, src)
}
func (m *AwsAppMesh) XXX_Size() int {
return xxx_messageInfo_AwsAppMesh.Size(m)
}
func (m *AwsAppMesh) XXX_DiscardUnknown() {
xxx_messageInfo_AwsAppMesh.DiscardUnknown(m)
}
var xxx_messageInfo_AwsAppMesh proto.InternalMessageInfo
func (m *AwsAppMesh) GetAwsSecret() *core.ResourceRef {
if m != nil {
return m.AwsSecret
}
return nil
}
func (m *AwsAppMesh) GetRegion() string {
if m != nil {
return m.Region
}
return ""
}
func (m *AwsAppMesh) GetEnableAutoInject() bool {
if m != nil {
return m.EnableAutoInject
}
return false
}
func (m *AwsAppMesh) GetInjectionSelector() *PodSelector {
if m != nil {
return m.InjectionSelector
}
return nil
}
func (m *AwsAppMesh) GetVirtualNodeLabel() string {
if m != nil {
return m.VirtualNodeLabel
}
return ""
}
func (m *AwsAppMesh) GetSidecarPatchConfigMap() *core.ResourceRef {
if m != nil {
return m.SidecarPatchConfigMap
}
return nil
}
// Mesh object representing an installed Linkerd control plane
type LinkerdMesh struct {
// where the Linkerd control plane has been installed
InstallationNamespace string `protobuf:"bytes,1,opt,name=installation_namespace,json=installationNamespace,proto3" json:"installation_namespace,omitempty"`
// version of istio which has been installed
Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *LinkerdMesh) Reset() { *m = LinkerdMesh{} }
func (m *LinkerdMesh) String() string { return proto.CompactTextString(m) }
func (*LinkerdMesh) ProtoMessage() {}
func (*LinkerdMesh) Descriptor() ([]byte, []int) {
return fileDescriptor_713281dd1a237b0d, []int{4}
}
func (m *LinkerdMesh) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_LinkerdMesh.Unmarshal(m, b)
}
func (m *LinkerdMesh) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_LinkerdMesh.Marshal(b, m, deterministic)
}
func (m *LinkerdMesh) XXX_Merge(src proto.Message) {
xxx_messageInfo_LinkerdMesh.Merge(m, src)
}
func (m *LinkerdMesh) XXX_Size() int {
return xxx_messageInfo_LinkerdMesh.Size(m)
}
func (m *LinkerdMesh) XXX_DiscardUnknown() {
xxx_messageInfo_LinkerdMesh.DiscardUnknown(m)
}
var xxx_messageInfo_LinkerdMesh proto.InternalMessageInfo
func (m *LinkerdMesh) GetInstallationNamespace() string {
if m != nil {
return m.InstallationNamespace
}
return ""
}
func (m *LinkerdMesh) GetVersion() string {
if m != nil {
return m.Version
}
return ""
}
// the encryption configuration that will be applied by the role
type MtlsConfig struct {
// whether or not mutual TLS should be enabled between pods in this mesh
MtlsEnabled bool `protobuf:"varint,1,opt,name=mtls_enabled,json=mtlsEnabled,proto3" json:"mtls_enabled,omitempty"`
// if set, rootCertificate will override the root certificate used by the mesh
// to encrypt mtls connections.
//
// The structure of the secret must be a standard kubernetes TLS secret
// such as can be created via `kubectl create secret tls`
//
// if mtlsEnabled is false, this field is ignored
// If deploying to Consul, Consul Connect requires that the cert and key are generated using ec, not rsa.
RootCertificate *core.ResourceRef `protobuf:"bytes,3,opt,name=root_certificate,json=rootCertificate,proto3" json:"root_certificate,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *MtlsConfig) Reset() { *m = MtlsConfig{} }
func (m *MtlsConfig) String() string { return proto.CompactTextString(m) }
func (*MtlsConfig) ProtoMessage() {}
func (*MtlsConfig) Descriptor() ([]byte, []int) {
return fileDescriptor_713281dd1a237b0d, []int{5}
}
func (m *MtlsConfig) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_MtlsConfig.Unmarshal(m, b)
}
func (m *MtlsConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_MtlsConfig.Marshal(b, m, deterministic)
}
func (m *MtlsConfig) XXX_Merge(src proto.Message) {
xxx_messageInfo_MtlsConfig.Merge(m, src)
}
func (m *MtlsConfig) XXX_Size() int {
return xxx_messageInfo_MtlsConfig.Size(m)
}
func (m *MtlsConfig) XXX_DiscardUnknown() {
xxx_messageInfo_MtlsConfig.DiscardUnknown(m)
}
var xxx_messageInfo_MtlsConfig proto.InternalMessageInfo
func (m *MtlsConfig) GetMtlsEnabled() bool {
if m != nil {
return m.MtlsEnabled
}
return false
}
func (m *MtlsConfig) GetRootCertificate() *core.ResourceRef {
if m != nil {
return m.RootCertificate
}
return nil
}
// Contains configuration options for monitoring a mesh
// Currently MonitoringConfig only contains options for configuring
// an in-cluster Prometheus instance to scrape a mesh for metrics
type MonitoringConfig struct {
// indicates to supergloo that metrics should be propagated to one or more instances of prometheus.
// add a [`core.solo.io.ResourceRef`](../../../../solo-kit/api/v1/ref.proto.sk#ResourceRef) for each
// NAMESPACE.NAME of the configmap used to configure each prometheus instance.
// assumes that the configmap contains a key named `prometheus.yml` or `prometheus.yaml` whose value
// is the prometheus yaml config as an inline string
PrometheusConfigmaps []core.ResourceRef `protobuf:"bytes,1,rep,name=prometheus_configmaps,json=prometheusConfigmaps,proto3" json:"prometheus_configmaps"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *MonitoringConfig) Reset() { *m = MonitoringConfig{} }
func (m *MonitoringConfig) String() string { return proto.CompactTextString(m) }
func (*MonitoringConfig) ProtoMessage() {}
func (*MonitoringConfig) Descriptor() ([]byte, []int) {
return fileDescriptor_713281dd1a237b0d, []int{6}
}
func (m *MonitoringConfig) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_MonitoringConfig.Unmarshal(m, b)
}
func (m *MonitoringConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_MonitoringConfig.Marshal(b, m, deterministic)
}
func (m *MonitoringConfig) XXX_Merge(src proto.Message) {
xxx_messageInfo_MonitoringConfig.Merge(m, src)
}
func (m *MonitoringConfig) XXX_Size() int {
return xxx_messageInfo_MonitoringConfig.Size(m)
}
func (m *MonitoringConfig) XXX_DiscardUnknown() {
xxx_messageInfo_MonitoringConfig.DiscardUnknown(m)
}
var xxx_messageInfo_MonitoringConfig proto.InternalMessageInfo
func (m *MonitoringConfig) GetPrometheusConfigmaps() []core.ResourceRef {
if m != nil {
return m.PrometheusConfigmaps
}
return nil
}
type MeshGroup struct {
// Status indicates the validation status of this resource.
// Status is read-only by clients, and set by supergloo during validation
Status core.Status `protobuf:"bytes,100,opt,name=status,proto3" json:"status" testdiff:"ignore"`
// Metadata contains the object metadata for this resource
Metadata core.Metadata `protobuf:"bytes,101,opt,name=metadata,proto3" json:"metadata"`
// the meshes contained in this group
Meshes []*core.ResourceRef `protobuf:"bytes,3,rep,name=meshes,proto3" json:"meshes,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *MeshGroup) Reset() { *m = MeshGroup{} }
func (m *MeshGroup) String() string { return proto.CompactTextString(m) }
func (*MeshGroup) ProtoMessage() {}
func (*MeshGroup) Descriptor() ([]byte, []int) {
return fileDescriptor_713281dd1a237b0d, []int{7}
}
func (m *MeshGroup) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_MeshGroup.Unmarshal(m, b)
}
func (m *MeshGroup) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_MeshGroup.Marshal(b, m, deterministic)
}
func (m *MeshGroup) XXX_Merge(src proto.Message) {
xxx_messageInfo_MeshGroup.Merge(m, src)
}
func (m *MeshGroup) XXX_Size() int {
return xxx_messageInfo_MeshGroup.Size(m)
}
func (m *MeshGroup) XXX_DiscardUnknown() {
xxx_messageInfo_MeshGroup.DiscardUnknown(m)
}
var xxx_messageInfo_MeshGroup proto.InternalMessageInfo
func (m *MeshGroup) GetStatus() core.Status {
if m != nil {
return m.Status
}
return core.Status{}
}
func (m *MeshGroup) GetMetadata() core.Metadata {
if m != nil {
return m.Metadata
}
return core.Metadata{}
}
func (m *MeshGroup) GetMeshes() []*core.ResourceRef {
if m != nil {
return m.Meshes
}
return nil
}
func init() {
proto.RegisterType((*Mesh)(nil), "supergloo.solo.io.Mesh")
proto.RegisterType((*DiscoveryMetadata)(nil), "supergloo.solo.io.DiscoveryMetadata")
proto.RegisterType((*IstioMesh)(nil), "supergloo.solo.io.IstioMesh")
proto.RegisterType((*AwsAppMesh)(nil), "supergloo.solo.io.AwsAppMesh")
proto.RegisterType((*LinkerdMesh)(nil), "supergloo.solo.io.LinkerdMesh")
proto.RegisterType((*MtlsConfig)(nil), "supergloo.solo.io.MtlsConfig")
proto.RegisterType((*MonitoringConfig)(nil), "supergloo.solo.io.MonitoringConfig")
proto.RegisterType((*MeshGroup)(nil), "supergloo.solo.io.MeshGroup")
}
func init() {
proto.RegisterFile("github.com/solo-io/supergloo/api/v1/mesh.proto", fileDescriptor_713281dd1a237b0d)
}
var fileDescriptor_713281dd1a237b0d = []byte{
// 900 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x55, 0xcd, 0x6e, 0xdc, 0x36,
0x10, 0xce, 0xfe, 0x78, 0xe3, 0x9d, 0x0d, 0xd0, 0x5d, 0xd6, 0x36, 0x94, 0xa0, 0x75, 0xd2, 0x6d,
0x81, 0xe6, 0x90, 0x48, 0xb0, 0xdb, 0xa2, 0x86, 0x0f, 0x05, 0x6c, 0xa7, 0x48, 0x03, 0x64, 0x03,
0x43, 0x2e, 0x7a, 0x28, 0x8a, 0x0a, 0x5c, 0x69, 0x56, 0xcb, 0x5a, 0x12, 0x09, 0x92, 0xb2, 0x91,
0xab, 0x9f, 0xa6, 0x6f, 0xd2, 0x9e, 0xfa, 0x02, 0x45, 0x73, 0xe8, 0x1b, 0xb8, 0x4f, 0x50, 0x90,
0xa2, 0xb4, 0x89, 0xb3, 0xde, 0x38, 0x40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, 0x2d, 0xe8, 0x9b, 0xd2, 0x3d, 0x95, 0xbc, 0x14,
0xff, 0x87, 0xe7, 0x69, 0x07, 0xdc, 0xdc, 0xf3, 0x3a, 0xef, 0x9a, 0x02, 0x0e, 0xb8, 0xef, 0x5d,
0x5c, 0x76, 0xbb, 0xd0, 0xce, 0xd3, 0x8b, 0xcb, 0xee, 0x1d, 0x02, 0xc6, 0x9a, 0x9a, 0xe3, 0xa8,
0xc3, 0xc7, 0xbf, 0xfe, 0xbd, 0xdd, 0xfa, 0xf1, 0xf3, 0x95, 0x2f, 0xb6, 0x38, 0x4d, 0xdd, 0xab,
0x3d, 0xed, 0xd9, 0xd7, 0xfa, 0x8b, 0x7f, 0x03, 0x00, 0x00, 0xff, 0xff, 0x9c, 0x90, 0x85, 0xa4,
0x41, 0x09, 0x00, 0x00,
}
func (this *Mesh) Equal(that interface{}) bool {
if that == nil {
return this == nil
}
that1, ok := that.(*Mesh)
if !ok {
that2, ok := that.(Mesh)
if ok {
that1 = &that2
} else {
return false
}
}
if that1 == nil {
return this == nil
} else if this == nil {
return false
}
if !this.Status.Equal(&that1.Status) {
return false
}
if !this.Metadata.Equal(&that1.Metadata) {
return false
}
if that1.MeshType == nil {
if this.MeshType != nil {
return false
}
} else if this.MeshType == nil {
return false
} else if !this.MeshType.Equal(that1.MeshType) {
return false
}
if !this.MtlsConfig.Equal(that1.MtlsConfig) {
return false
}
if !this.MonitoringConfig.Equal(that1.MonitoringConfig) {
return false
}
if !this.DiscoveryMetadata.Equal(that1.DiscoveryMetadata) {
return false
}
if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
return false
}
return true
}
func (this *Mesh_Istio) Equal(that interface{}) bool {
if that == nil {
return this == nil
}
that1, ok := that.(*Mesh_Istio)
if !ok {
that2, ok := that.(Mesh_Istio)
if ok {
that1 = &that2
} else {
return false
}
}
if that1 == nil {
return this == nil
} else if this == nil {
return false
}
if !this.Istio.Equal(that1.Istio) {
return false
}
return true
}
func (this *Mesh_AwsAppMesh) Equal(that interface{}) bool {
if that == nil {
return this == nil
}
that1, ok := that.(*Mesh_AwsAppMesh)
if !ok {
that2, ok := that.(Mesh_AwsAppMesh)
if ok {
that1 = &that2
} else {
return false
}
}
if that1 == nil {
return this == nil
} else if this == nil {
return false
}
if !this.AwsAppMesh.Equal(that1.AwsAppMesh) {
return false
}
return true
}
func (this *Mesh_Linkerd) Equal(that interface{}) bool {
if that == nil {
return this == nil
}
that1, ok := that.(*Mesh_Linkerd)
if !ok {
that2, ok := that.(Mesh_Linkerd)
if ok {
that1 = &that2
} else {
return false
}
}
if that1 == nil {
return this == nil
} else if this == nil {
return false
}
if !this.Linkerd.Equal(that1.Linkerd) {
return false
}
return true
}
func (this *DiscoveryMetadata) Equal(that interface{}) bool {
if that == nil {
return this == nil
}
that1, ok := that.(*DiscoveryMetadata)
if !ok {
that2, ok := that.(DiscoveryMetadata)
if ok {
that1 = &that2
} else {
return false
}
}
if that1 == nil {
return this == nil
} else if this == nil {
return false
}
if this.InjectedNamespaceLabel != that1.InjectedNamespaceLabel {
return false
}
if this.EnableAutoInject != that1.EnableAutoInject {
return false
}
if this.MeshVersion != that1.MeshVersion {
return false
}
if this.InstallationNamespace != that1.InstallationNamespace {
return false
}
if len(this.Upstreams) != len(that1.Upstreams) {
return false
}
for i := range this.Upstreams {
if !this.Upstreams[i].Equal(that1.Upstreams[i]) {
return false
}
}
if !this.MtlsConfig.Equal(that1.MtlsConfig) {
return false
}
if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
return false
}
return true
}
func (this *IstioMesh) Equal(that interface{}) bool {
if that == nil {
return this == nil
}
that1, ok := that.(*IstioMesh)
if !ok {
that2, ok := that.(IstioMesh)
if ok {
that1 = &that2
} else {
return false
}
}
if that1 == nil {
return this == nil
} else if this == nil {
return false
}
if this.InstallationNamespace != that1.InstallationNamespace {
return false
}
if this.Version != that1.Version {
return false
}
if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
return false
}
return true
}
func (this *AwsAppMesh) Equal(that interface{}) bool {
if that == nil {
return this == nil
}
that1, ok := that.(*AwsAppMesh)
if !ok {
that2, ok := that.(AwsAppMesh)
if ok {
that1 = &that2
} else {
return false
}
}
if that1 == nil {
return this == nil
} else if this == nil {
return false
}
if !this.AwsSecret.Equal(that1.AwsSecret) {
return false
}
if this.Region != that1.Region {
return false
}
if this.EnableAutoInject != that1.EnableAutoInject {
return false
}
if !this.InjectionSelector.Equal(that1.InjectionSelector) {
return false
}
if this.VirtualNodeLabel != that1.VirtualNodeLabel {
return false
}
if !this.SidecarPatchConfigMap.Equal(that1.SidecarPatchConfigMap) {
return false
}
if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {