-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.pb.go
2144 lines (2068 loc) · 60 KB
/
config.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: mesh/v1alpha1/config.proto
/*
Package v1alpha1 is a generated protocol buffer package.
It is generated from these files:
mesh/v1alpha1/config.proto
mesh/v1alpha1/network.proto
mesh/v1alpha1/proxy.proto
It has these top-level messages:
MeshConfig
ConfigSource
Network
MeshNetworks
Tracing
ProxyConfig
*/
package v1alpha1
import proto "github.com/gogo/protobuf/proto"
import fmt "fmt"
import math "math"
import google_protobuf "github.com/gogo/protobuf/types"
import istio_networking_v1alpha33 "istio.io/api/networking/v1alpha3"
import io "io"
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package
type MeshConfig_IngressControllerMode int32
const (
// Disables Istio ingress controller.
MeshConfig_OFF MeshConfig_IngressControllerMode = 0
// Istio ingress controller will act on ingress resources that do not
// contain any annotation or whose annotations match the value
// specified in the ingress_class parameter described earlier. Use this
// mode if Istio ingress controller will be the default ingress
// controller for the entire kubernetes cluster.
MeshConfig_DEFAULT MeshConfig_IngressControllerMode = 1
// Istio ingress controller will only act on ingress resources whose
// annotations match the value specified in the ingress_class parameter
// described earlier. Use this mode if Istio ingress controller will be
// a secondary ingress controller (e.g., in addition to a
// cloud-provided ingress controller).
MeshConfig_STRICT MeshConfig_IngressControllerMode = 2
)
var MeshConfig_IngressControllerMode_name = map[int32]string{
0: "OFF",
1: "DEFAULT",
2: "STRICT",
}
var MeshConfig_IngressControllerMode_value = map[string]int32{
"OFF": 0,
"DEFAULT": 1,
"STRICT": 2,
}
func (x MeshConfig_IngressControllerMode) String() string {
return proto.EnumName(MeshConfig_IngressControllerMode_name, int32(x))
}
func (MeshConfig_IngressControllerMode) EnumDescriptor() ([]byte, []int) {
return fileDescriptorConfig, []int{0, 0}
}
// $hide_from_docs
type MeshConfig_AuthPolicy int32
const (
MeshConfig_NONE MeshConfig_AuthPolicy = 0
MeshConfig_MUTUAL_TLS MeshConfig_AuthPolicy = 1
)
var MeshConfig_AuthPolicy_name = map[int32]string{
0: "NONE",
1: "MUTUAL_TLS",
}
var MeshConfig_AuthPolicy_value = map[string]int32{
"NONE": 0,
"MUTUAL_TLS": 1,
}
func (x MeshConfig_AuthPolicy) String() string {
return proto.EnumName(MeshConfig_AuthPolicy_name, int32(x))
}
func (MeshConfig_AuthPolicy) EnumDescriptor() ([]byte, []int) {
return fileDescriptorConfig, []int{0, 1}
}
type MeshConfig_AccessLogEncoding int32
const (
MeshConfig_TEXT MeshConfig_AccessLogEncoding = 0
MeshConfig_JSON MeshConfig_AccessLogEncoding = 1
)
var MeshConfig_AccessLogEncoding_name = map[int32]string{
0: "TEXT",
1: "JSON",
}
var MeshConfig_AccessLogEncoding_value = map[string]int32{
"TEXT": 0,
"JSON": 1,
}
func (x MeshConfig_AccessLogEncoding) String() string {
return proto.EnumName(MeshConfig_AccessLogEncoding_name, int32(x))
}
func (MeshConfig_AccessLogEncoding) EnumDescriptor() ([]byte, []int) {
return fileDescriptorConfig, []int{0, 2}
}
type MeshConfig_OutboundTrafficPolicy_Mode int32
const (
// outbound traffic will be restricted to services defined in the
// service registry as well as those defined through ServiceEntries
MeshConfig_OutboundTrafficPolicy_REGISTRY_ONLY MeshConfig_OutboundTrafficPolicy_Mode = 0
// outbound traffic to unknown destinations will be allowed, in case
// there are no services or ServiceEntries for the destination port
MeshConfig_OutboundTrafficPolicy_ALLOW_ANY MeshConfig_OutboundTrafficPolicy_Mode = 1
)
var MeshConfig_OutboundTrafficPolicy_Mode_name = map[int32]string{
0: "REGISTRY_ONLY",
1: "ALLOW_ANY",
}
var MeshConfig_OutboundTrafficPolicy_Mode_value = map[string]int32{
"REGISTRY_ONLY": 0,
"ALLOW_ANY": 1,
}
func (x MeshConfig_OutboundTrafficPolicy_Mode) String() string {
return proto.EnumName(MeshConfig_OutboundTrafficPolicy_Mode_name, int32(x))
}
func (MeshConfig_OutboundTrafficPolicy_Mode) EnumDescriptor() ([]byte, []int) {
return fileDescriptorConfig, []int{0, 0, 0}
}
// MeshConfig defines mesh-wide variables shared by all Envoy instances in the
// Istio service mesh.
//
// NOTE: This configuration type should be used for the low-level global
// configuration, such as component addresses and port numbers. It should not
// be used for the features of the mesh that can be scoped by service or by
// namespace. Some of the fields in the mesh config are going to be deprecated
// and replaced with several individual configuration types (for example,
// tracing configuration).
type MeshConfig struct {
// Address of the server that will be used by the proxies for policy
// check calls. By using different names for mixerCheckServer and
// mixerReportServer, it is possible to have one set of mixer servers handle
// policy check calls while another set of mixer servers handle telemetry
// calls.
//
// NOTE: Omitting mixerCheckServer while specifying mixerReportServer is
// equivalent to setting disablePolicyChecks to true.
MixerCheckServer string `protobuf:"bytes,1,opt,name=mixer_check_server,json=mixerCheckServer,proto3" json:"mixer_check_server,omitempty"`
// Address of the server that will be used by the proxies for policy report
// calls.
MixerReportServer string `protobuf:"bytes,2,opt,name=mixer_report_server,json=mixerReportServer,proto3" json:"mixer_report_server,omitempty"`
// Disable policy checks by the mixer service. Default
// is false, i.e. mixer policy check is enabled by default.
DisablePolicyChecks bool `protobuf:"varint,3,opt,name=disable_policy_checks,json=disablePolicyChecks,proto3" json:"disable_policy_checks,omitempty"`
// Allow all traffic in cases when the mixer policy service cannot be reached.
// Default is false which means the traffic is denied when the client is unable
// to connect to Mixer.
PolicyCheckFailOpen bool `protobuf:"varint,25,opt,name=policy_check_fail_open,json=policyCheckFailOpen,proto3" json:"policy_check_fail_open,omitempty"`
// Enable session affinity for envoy mixer reports so that calls from a proxy will
// always target the same mixer instance.
SidecarToTelemetrySessionAffinity bool `protobuf:"varint,30,opt,name=sidecar_to_telemetry_session_affinity,json=sidecarToTelemetrySessionAffinity,proto3" json:"sidecar_to_telemetry_session_affinity,omitempty"`
// Port on which Envoy should listen for incoming connections from
// other services.
ProxyListenPort int32 `protobuf:"varint,4,opt,name=proxy_listen_port,json=proxyListenPort,proto3" json:"proxy_listen_port,omitempty"`
// Port on which Envoy should listen for HTTP PROXY requests if set.
ProxyHttpPort int32 `protobuf:"varint,5,opt,name=proxy_http_port,json=proxyHttpPort,proto3" json:"proxy_http_port,omitempty"`
// Connection timeout used by Envoy. (MUST BE >=1ms)
ConnectTimeout *google_protobuf.Duration `protobuf:"bytes,6,opt,name=connect_timeout,json=connectTimeout" json:"connect_timeout,omitempty"`
// If set then set SO_KEEPALIVE on the socket to enable TCP Keepalives.
TcpKeepalive *istio_networking_v1alpha33.ConnectionPoolSettings_TCPSettings_TcpKeepalive `protobuf:"bytes,28,opt,name=tcp_keepalive,json=tcpKeepalive" json:"tcp_keepalive,omitempty"`
// Class of ingress resources to be processed by Istio ingress
// controller. This corresponds to the value of
// "kubernetes.io/ingress.class" annotation.
IngressClass string `protobuf:"bytes,7,opt,name=ingress_class,json=ingressClass,proto3" json:"ingress_class,omitempty"`
// Name of the kubernetes service used for the istio ingress controller.
IngressService string `protobuf:"bytes,8,opt,name=ingress_service,json=ingressService,proto3" json:"ingress_service,omitempty"`
// Defines whether to use Istio ingress controller for annotated or all ingress resources.
IngressControllerMode MeshConfig_IngressControllerMode `protobuf:"varint,9,opt,name=ingress_controller_mode,json=ingressControllerMode,proto3,enum=istio.mesh.v1alpha1.MeshConfig_IngressControllerMode" json:"ingress_controller_mode,omitempty"`
// $hide_from_docs
AuthPolicy MeshConfig_AuthPolicy `protobuf:"varint,10,opt,name=auth_policy,json=authPolicy,proto3,enum=istio.mesh.v1alpha1.MeshConfig_AuthPolicy" json:"auth_policy,omitempty"`
// $hide_from_docs
RdsRefreshDelay *google_protobuf.Duration `protobuf:"bytes,11,opt,name=rds_refresh_delay,json=rdsRefreshDelay" json:"rds_refresh_delay,omitempty"`
// Flag to control generation of trace spans and request IDs.
// Requires a trace span collector defined in the proxy configuration.
EnableTracing bool `protobuf:"varint,12,opt,name=enable_tracing,json=enableTracing,proto3" json:"enable_tracing,omitempty"`
// File address for the proxy access log (e.g. /dev/stdout).
// Empty value disables access logging.
AccessLogFile string `protobuf:"bytes,13,opt,name=access_log_file,json=accessLogFile,proto3" json:"access_log_file,omitempty"`
// Format for the proxy access log
// Empty value results in proxy's default access log format
AccessLogFormat string `protobuf:"bytes,24,opt,name=access_log_format,json=accessLogFormat,proto3" json:"access_log_format,omitempty"`
// Encoding for the proxy access log (text or json).
// Default value is text.
AccessLogEncoding MeshConfig_AccessLogEncoding `protobuf:"varint,27,opt,name=access_log_encoding,json=accessLogEncoding,proto3,enum=istio.mesh.v1alpha1.MeshConfig_AccessLogEncoding" json:"access_log_encoding,omitempty"`
// Default proxy config used by the proxy injection mechanism operating in the mesh
// (e.g. Kubernetes admission controller)
// In case of Kubernetes, the proxy config is applied once during the injection process,
// and remain constant for the duration of the pod. The rest of the mesh config can be changed
// at runtime and config gets distributed dynamically.
DefaultConfig *ProxyConfig `protobuf:"bytes,14,opt,name=default_config,json=defaultConfig" json:"default_config,omitempty"`
// $hide_from_docs
MixerAddress string `protobuf:"bytes,16,opt,name=mixer_address,json=mixerAddress,proto3" json:"mixer_address,omitempty"`
// Set the default behavior of the sidecar for handling outbound traffic
// from the application. If your application uses one or more external
// services that are not known apriori, setting the policy to ALLOW_ANY
// will cause the sidecars to route any unknown traffic originating from
// the application to its requested destination. Users are strongly
// encouraged to use ServiceEntries to explicitly declare any external
// dependencies, instead of using allow_any, so that traffic to these
// services can be monitored.
OutboundTrafficPolicy *MeshConfig_OutboundTrafficPolicy `protobuf:"bytes,17,opt,name=outbound_traffic_policy,json=outboundTrafficPolicy" json:"outbound_traffic_policy,omitempty"`
// Enables clide side policy checks.
EnableClientSidePolicyCheck bool `protobuf:"varint,19,opt,name=enable_client_side_policy_check,json=enableClientSidePolicyCheck,proto3" json:"enable_client_side_policy_check,omitempty"`
// Unix Domain Socket through which envoy communicates with NodeAgent SDS to get key/cert for mTLS.
// Use secret-mount files instead of SDS if set to empty.
SdsUdsPath string `protobuf:"bytes,20,opt,name=sds_uds_path,json=sdsUdsPath,proto3" json:"sds_uds_path,omitempty"`
// $hide_from_docs
SdsRefreshDelay *google_protobuf.Duration `protobuf:"bytes,21,opt,name=sds_refresh_delay,json=sdsRefreshDelay" json:"sds_refresh_delay,omitempty"`
// ConfigSource describes a source of configuration data for networking
// rules, and other Istio configuration artifacts. Multiple data sources
// can be configured for a single control plane.
ConfigSources []*ConfigSource `protobuf:"bytes,22,rep,name=config_sources,json=configSources" json:"config_sources,omitempty"`
// $hide_from_docs
// This flag is used by secret discovery service(SDS).
// If set to true(prerequisite: https://kubernetes.io/docs/concepts/storage/volumes/#projected), Istio will inject volumes mount
// for k8s service account trustworthy JWT(which is avaialbe for k8s 1.12 or higher), so that K8s API server
// mounts k8s service account trustworthy JWT to envoy container, which will be used to request key/cert eventually.
// This isn't supported for non-k8s case.
EnableSdsTokenMount bool `protobuf:"varint,23,opt,name=enable_sds_token_mount,json=enableSdsTokenMount,proto3" json:"enable_sds_token_mount,omitempty"`
// $hide_from_docs
// This flag is used by secret discovery service(SDS).
// If set to true, envoy will fetch normal k8s service account JWT from '/var/run/secrets/kubernetes.io/serviceaccount/token'
// (https://kubernetes.io/docs/tasks/access-application-cluster/access-cluster/#accessing-the-api-from-a-pod)
// and pass to sds server, which will be used to request key/cert eventually.
// If both enable_sds_token_mount and sds_use_k8s_sa_jwt are set to true, enable_sds_token_mount(trustworthy jwt) takes precedence.
// This isn't supported for non-k8s case.
SdsUseK8SSaJwt bool `protobuf:"varint,29,opt,name=sds_use_k8s_sa_jwt,json=sdsUseK8sSaJwt,proto3" json:"sds_use_k8s_sa_jwt,omitempty"`
// The trust domain corresponds to the trust root of a system.
// Refer to https://github.com/spiffe/spiffe/blob/master/standards/SPIFFE-ID.md#21-trust-domain
// Fallback to old identity format(without trust domain) if not set.
TrustDomain string `protobuf:"bytes,26,opt,name=trust_domain,json=trustDomain,proto3" json:"trust_domain,omitempty"`
}
func (m *MeshConfig) Reset() { *m = MeshConfig{} }
func (m *MeshConfig) String() string { return proto.CompactTextString(m) }
func (*MeshConfig) ProtoMessage() {}
func (*MeshConfig) Descriptor() ([]byte, []int) { return fileDescriptorConfig, []int{0} }
func (m *MeshConfig) GetMixerCheckServer() string {
if m != nil {
return m.MixerCheckServer
}
return ""
}
func (m *MeshConfig) GetMixerReportServer() string {
if m != nil {
return m.MixerReportServer
}
return ""
}
func (m *MeshConfig) GetDisablePolicyChecks() bool {
if m != nil {
return m.DisablePolicyChecks
}
return false
}
func (m *MeshConfig) GetPolicyCheckFailOpen() bool {
if m != nil {
return m.PolicyCheckFailOpen
}
return false
}
func (m *MeshConfig) GetSidecarToTelemetrySessionAffinity() bool {
if m != nil {
return m.SidecarToTelemetrySessionAffinity
}
return false
}
func (m *MeshConfig) GetProxyListenPort() int32 {
if m != nil {
return m.ProxyListenPort
}
return 0
}
func (m *MeshConfig) GetProxyHttpPort() int32 {
if m != nil {
return m.ProxyHttpPort
}
return 0
}
func (m *MeshConfig) GetConnectTimeout() *google_protobuf.Duration {
if m != nil {
return m.ConnectTimeout
}
return nil
}
func (m *MeshConfig) GetTcpKeepalive() *istio_networking_v1alpha33.ConnectionPoolSettings_TCPSettings_TcpKeepalive {
if m != nil {
return m.TcpKeepalive
}
return nil
}
func (m *MeshConfig) GetIngressClass() string {
if m != nil {
return m.IngressClass
}
return ""
}
func (m *MeshConfig) GetIngressService() string {
if m != nil {
return m.IngressService
}
return ""
}
func (m *MeshConfig) GetIngressControllerMode() MeshConfig_IngressControllerMode {
if m != nil {
return m.IngressControllerMode
}
return MeshConfig_OFF
}
func (m *MeshConfig) GetAuthPolicy() MeshConfig_AuthPolicy {
if m != nil {
return m.AuthPolicy
}
return MeshConfig_NONE
}
func (m *MeshConfig) GetRdsRefreshDelay() *google_protobuf.Duration {
if m != nil {
return m.RdsRefreshDelay
}
return nil
}
func (m *MeshConfig) GetEnableTracing() bool {
if m != nil {
return m.EnableTracing
}
return false
}
func (m *MeshConfig) GetAccessLogFile() string {
if m != nil {
return m.AccessLogFile
}
return ""
}
func (m *MeshConfig) GetAccessLogFormat() string {
if m != nil {
return m.AccessLogFormat
}
return ""
}
func (m *MeshConfig) GetAccessLogEncoding() MeshConfig_AccessLogEncoding {
if m != nil {
return m.AccessLogEncoding
}
return MeshConfig_TEXT
}
func (m *MeshConfig) GetDefaultConfig() *ProxyConfig {
if m != nil {
return m.DefaultConfig
}
return nil
}
func (m *MeshConfig) GetMixerAddress() string {
if m != nil {
return m.MixerAddress
}
return ""
}
func (m *MeshConfig) GetOutboundTrafficPolicy() *MeshConfig_OutboundTrafficPolicy {
if m != nil {
return m.OutboundTrafficPolicy
}
return nil
}
func (m *MeshConfig) GetEnableClientSidePolicyCheck() bool {
if m != nil {
return m.EnableClientSidePolicyCheck
}
return false
}
func (m *MeshConfig) GetSdsUdsPath() string {
if m != nil {
return m.SdsUdsPath
}
return ""
}
func (m *MeshConfig) GetSdsRefreshDelay() *google_protobuf.Duration {
if m != nil {
return m.SdsRefreshDelay
}
return nil
}
func (m *MeshConfig) GetConfigSources() []*ConfigSource {
if m != nil {
return m.ConfigSources
}
return nil
}
func (m *MeshConfig) GetEnableSdsTokenMount() bool {
if m != nil {
return m.EnableSdsTokenMount
}
return false
}
func (m *MeshConfig) GetSdsUseK8SSaJwt() bool {
if m != nil {
return m.SdsUseK8SSaJwt
}
return false
}
func (m *MeshConfig) GetTrustDomain() string {
if m != nil {
return m.TrustDomain
}
return ""
}
type MeshConfig_OutboundTrafficPolicy struct {
Mode MeshConfig_OutboundTrafficPolicy_Mode `protobuf:"varint,1,opt,name=mode,proto3,enum=istio.mesh.v1alpha1.MeshConfig_OutboundTrafficPolicy_Mode" json:"mode,omitempty"`
}
func (m *MeshConfig_OutboundTrafficPolicy) Reset() { *m = MeshConfig_OutboundTrafficPolicy{} }
func (m *MeshConfig_OutboundTrafficPolicy) String() string { return proto.CompactTextString(m) }
func (*MeshConfig_OutboundTrafficPolicy) ProtoMessage() {}
func (*MeshConfig_OutboundTrafficPolicy) Descriptor() ([]byte, []int) {
return fileDescriptorConfig, []int{0, 0}
}
func (m *MeshConfig_OutboundTrafficPolicy) GetMode() MeshConfig_OutboundTrafficPolicy_Mode {
if m != nil {
return m.Mode
}
return MeshConfig_OutboundTrafficPolicy_REGISTRY_ONLY
}
// ConfigSource describes information about a configuration store inside a
// mesh. A single control plane instance can interact with one or more data
// sources.
type ConfigSource struct {
// Address of the server implementing the Istio Mesh Configuration
// protocol (MCP). Can be IP address or a fully qualified DNS name.
// Use fs:/// to specify a file-based backend with absolute path to the directory.
Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
// Use the tls_settings to specify the tls mode to use. If the MCP server
// uses Istio MTLS and shares the root CA with Pilot, specify the TLS
// mode as ISTIO_MUTUAL.
TlsSettings *istio_networking_v1alpha33.TLSSettings `protobuf:"bytes,2,opt,name=tls_settings,json=tlsSettings" json:"tls_settings,omitempty"`
}
func (m *ConfigSource) Reset() { *m = ConfigSource{} }
func (m *ConfigSource) String() string { return proto.CompactTextString(m) }
func (*ConfigSource) ProtoMessage() {}
func (*ConfigSource) Descriptor() ([]byte, []int) { return fileDescriptorConfig, []int{1} }
func (m *ConfigSource) GetAddress() string {
if m != nil {
return m.Address
}
return ""
}
func (m *ConfigSource) GetTlsSettings() *istio_networking_v1alpha33.TLSSettings {
if m != nil {
return m.TlsSettings
}
return nil
}
func init() {
proto.RegisterType((*MeshConfig)(nil), "istio.mesh.v1alpha1.MeshConfig")
proto.RegisterType((*MeshConfig_OutboundTrafficPolicy)(nil), "istio.mesh.v1alpha1.MeshConfig.OutboundTrafficPolicy")
proto.RegisterType((*ConfigSource)(nil), "istio.mesh.v1alpha1.ConfigSource")
proto.RegisterEnum("istio.mesh.v1alpha1.MeshConfig_IngressControllerMode", MeshConfig_IngressControllerMode_name, MeshConfig_IngressControllerMode_value)
proto.RegisterEnum("istio.mesh.v1alpha1.MeshConfig_AuthPolicy", MeshConfig_AuthPolicy_name, MeshConfig_AuthPolicy_value)
proto.RegisterEnum("istio.mesh.v1alpha1.MeshConfig_AccessLogEncoding", MeshConfig_AccessLogEncoding_name, MeshConfig_AccessLogEncoding_value)
proto.RegisterEnum("istio.mesh.v1alpha1.MeshConfig_OutboundTrafficPolicy_Mode", MeshConfig_OutboundTrafficPolicy_Mode_name, MeshConfig_OutboundTrafficPolicy_Mode_value)
}
func (m *MeshConfig) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalTo(dAtA)
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *MeshConfig) MarshalTo(dAtA []byte) (int, error) {
var i int
_ = i
var l int
_ = l
if len(m.MixerCheckServer) > 0 {
dAtA[i] = 0xa
i++
i = encodeVarintConfig(dAtA, i, uint64(len(m.MixerCheckServer)))
i += copy(dAtA[i:], m.MixerCheckServer)
}
if len(m.MixerReportServer) > 0 {
dAtA[i] = 0x12
i++
i = encodeVarintConfig(dAtA, i, uint64(len(m.MixerReportServer)))
i += copy(dAtA[i:], m.MixerReportServer)
}
if m.DisablePolicyChecks {
dAtA[i] = 0x18
i++
if m.DisablePolicyChecks {
dAtA[i] = 1
} else {
dAtA[i] = 0
}
i++
}
if m.ProxyListenPort != 0 {
dAtA[i] = 0x20
i++
i = encodeVarintConfig(dAtA, i, uint64(m.ProxyListenPort))
}
if m.ProxyHttpPort != 0 {
dAtA[i] = 0x28
i++
i = encodeVarintConfig(dAtA, i, uint64(m.ProxyHttpPort))
}
if m.ConnectTimeout != nil {
dAtA[i] = 0x32
i++
i = encodeVarintConfig(dAtA, i, uint64(m.ConnectTimeout.Size()))
n1, err := m.ConnectTimeout.MarshalTo(dAtA[i:])
if err != nil {
return 0, err
}
i += n1
}
if len(m.IngressClass) > 0 {
dAtA[i] = 0x3a
i++
i = encodeVarintConfig(dAtA, i, uint64(len(m.IngressClass)))
i += copy(dAtA[i:], m.IngressClass)
}
if len(m.IngressService) > 0 {
dAtA[i] = 0x42
i++
i = encodeVarintConfig(dAtA, i, uint64(len(m.IngressService)))
i += copy(dAtA[i:], m.IngressService)
}
if m.IngressControllerMode != 0 {
dAtA[i] = 0x48
i++
i = encodeVarintConfig(dAtA, i, uint64(m.IngressControllerMode))
}
if m.AuthPolicy != 0 {
dAtA[i] = 0x50
i++
i = encodeVarintConfig(dAtA, i, uint64(m.AuthPolicy))
}
if m.RdsRefreshDelay != nil {
dAtA[i] = 0x5a
i++
i = encodeVarintConfig(dAtA, i, uint64(m.RdsRefreshDelay.Size()))
n2, err := m.RdsRefreshDelay.MarshalTo(dAtA[i:])
if err != nil {
return 0, err
}
i += n2
}
if m.EnableTracing {
dAtA[i] = 0x60
i++
if m.EnableTracing {
dAtA[i] = 1
} else {
dAtA[i] = 0
}
i++
}
if len(m.AccessLogFile) > 0 {
dAtA[i] = 0x6a
i++
i = encodeVarintConfig(dAtA, i, uint64(len(m.AccessLogFile)))
i += copy(dAtA[i:], m.AccessLogFile)
}
if m.DefaultConfig != nil {
dAtA[i] = 0x72
i++
i = encodeVarintConfig(dAtA, i, uint64(m.DefaultConfig.Size()))
n3, err := m.DefaultConfig.MarshalTo(dAtA[i:])
if err != nil {
return 0, err
}
i += n3
}
if len(m.MixerAddress) > 0 {
dAtA[i] = 0x82
i++
dAtA[i] = 0x1
i++
i = encodeVarintConfig(dAtA, i, uint64(len(m.MixerAddress)))
i += copy(dAtA[i:], m.MixerAddress)
}
if m.OutboundTrafficPolicy != nil {
dAtA[i] = 0x8a
i++
dAtA[i] = 0x1
i++
i = encodeVarintConfig(dAtA, i, uint64(m.OutboundTrafficPolicy.Size()))
n4, err := m.OutboundTrafficPolicy.MarshalTo(dAtA[i:])
if err != nil {
return 0, err
}
i += n4
}
if m.EnableClientSidePolicyCheck {
dAtA[i] = 0x98
i++
dAtA[i] = 0x1
i++
if m.EnableClientSidePolicyCheck {
dAtA[i] = 1
} else {
dAtA[i] = 0
}
i++
}
if len(m.SdsUdsPath) > 0 {
dAtA[i] = 0xa2
i++
dAtA[i] = 0x1
i++
i = encodeVarintConfig(dAtA, i, uint64(len(m.SdsUdsPath)))
i += copy(dAtA[i:], m.SdsUdsPath)
}
if m.SdsRefreshDelay != nil {
dAtA[i] = 0xaa
i++
dAtA[i] = 0x1
i++
i = encodeVarintConfig(dAtA, i, uint64(m.SdsRefreshDelay.Size()))
n5, err := m.SdsRefreshDelay.MarshalTo(dAtA[i:])
if err != nil {
return 0, err
}
i += n5
}
if len(m.ConfigSources) > 0 {
for _, msg := range m.ConfigSources {
dAtA[i] = 0xb2
i++
dAtA[i] = 0x1
i++
i = encodeVarintConfig(dAtA, i, uint64(msg.Size()))
n, err := msg.MarshalTo(dAtA[i:])
if err != nil {
return 0, err
}
i += n
}
}
if m.EnableSdsTokenMount {
dAtA[i] = 0xb8
i++
dAtA[i] = 0x1
i++
if m.EnableSdsTokenMount {
dAtA[i] = 1
} else {
dAtA[i] = 0
}
i++
}
if len(m.AccessLogFormat) > 0 {
dAtA[i] = 0xc2
i++
dAtA[i] = 0x1
i++
i = encodeVarintConfig(dAtA, i, uint64(len(m.AccessLogFormat)))
i += copy(dAtA[i:], m.AccessLogFormat)
}
if m.PolicyCheckFailOpen {
dAtA[i] = 0xc8
i++
dAtA[i] = 0x1
i++
if m.PolicyCheckFailOpen {
dAtA[i] = 1
} else {
dAtA[i] = 0
}
i++
}
if len(m.TrustDomain) > 0 {
dAtA[i] = 0xd2
i++
dAtA[i] = 0x1
i++
i = encodeVarintConfig(dAtA, i, uint64(len(m.TrustDomain)))
i += copy(dAtA[i:], m.TrustDomain)
}
if m.AccessLogEncoding != 0 {
dAtA[i] = 0xd8
i++
dAtA[i] = 0x1
i++
i = encodeVarintConfig(dAtA, i, uint64(m.AccessLogEncoding))
}
if m.TcpKeepalive != nil {
dAtA[i] = 0xe2
i++
dAtA[i] = 0x1
i++
i = encodeVarintConfig(dAtA, i, uint64(m.TcpKeepalive.Size()))
n6, err := m.TcpKeepalive.MarshalTo(dAtA[i:])
if err != nil {
return 0, err
}
i += n6
}
if m.SdsUseK8SSaJwt {
dAtA[i] = 0xe8
i++
dAtA[i] = 0x1
i++
if m.SdsUseK8SSaJwt {
dAtA[i] = 1
} else {
dAtA[i] = 0
}
i++
}
if m.SidecarToTelemetrySessionAffinity {
dAtA[i] = 0xf0
i++
dAtA[i] = 0x1
i++
if m.SidecarToTelemetrySessionAffinity {
dAtA[i] = 1
} else {
dAtA[i] = 0
}
i++
}
return i, nil
}
func (m *MeshConfig_OutboundTrafficPolicy) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalTo(dAtA)
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *MeshConfig_OutboundTrafficPolicy) MarshalTo(dAtA []byte) (int, error) {
var i int
_ = i
var l int
_ = l
if m.Mode != 0 {
dAtA[i] = 0x8
i++
i = encodeVarintConfig(dAtA, i, uint64(m.Mode))
}
return i, nil
}
func (m *ConfigSource) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalTo(dAtA)
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *ConfigSource) MarshalTo(dAtA []byte) (int, error) {
var i int
_ = i
var l int
_ = l
if len(m.Address) > 0 {
dAtA[i] = 0xa
i++
i = encodeVarintConfig(dAtA, i, uint64(len(m.Address)))
i += copy(dAtA[i:], m.Address)
}
if m.TlsSettings != nil {
dAtA[i] = 0x12
i++
i = encodeVarintConfig(dAtA, i, uint64(m.TlsSettings.Size()))
n7, err := m.TlsSettings.MarshalTo(dAtA[i:])
if err != nil {
return 0, err
}
i += n7
}
return i, nil
}
func encodeVarintConfig(dAtA []byte, offset int, v uint64) int {
for v >= 1<<7 {
dAtA[offset] = uint8(v&0x7f | 0x80)
v >>= 7
offset++
}
dAtA[offset] = uint8(v)
return offset + 1
}
func (m *MeshConfig) Size() (n int) {
var l int
_ = l
l = len(m.MixerCheckServer)
if l > 0 {
n += 1 + l + sovConfig(uint64(l))
}
l = len(m.MixerReportServer)
if l > 0 {
n += 1 + l + sovConfig(uint64(l))
}
if m.DisablePolicyChecks {
n += 2
}
if m.ProxyListenPort != 0 {
n += 1 + sovConfig(uint64(m.ProxyListenPort))
}
if m.ProxyHttpPort != 0 {
n += 1 + sovConfig(uint64(m.ProxyHttpPort))
}
if m.ConnectTimeout != nil {
l = m.ConnectTimeout.Size()
n += 1 + l + sovConfig(uint64(l))
}
l = len(m.IngressClass)
if l > 0 {
n += 1 + l + sovConfig(uint64(l))
}
l = len(m.IngressService)
if l > 0 {
n += 1 + l + sovConfig(uint64(l))
}
if m.IngressControllerMode != 0 {
n += 1 + sovConfig(uint64(m.IngressControllerMode))
}
if m.AuthPolicy != 0 {
n += 1 + sovConfig(uint64(m.AuthPolicy))
}
if m.RdsRefreshDelay != nil {
l = m.RdsRefreshDelay.Size()
n += 1 + l + sovConfig(uint64(l))
}
if m.EnableTracing {
n += 2
}
l = len(m.AccessLogFile)
if l > 0 {
n += 1 + l + sovConfig(uint64(l))
}
if m.DefaultConfig != nil {
l = m.DefaultConfig.Size()
n += 1 + l + sovConfig(uint64(l))
}
l = len(m.MixerAddress)
if l > 0 {
n += 2 + l + sovConfig(uint64(l))
}
if m.OutboundTrafficPolicy != nil {
l = m.OutboundTrafficPolicy.Size()
n += 2 + l + sovConfig(uint64(l))
}
if m.EnableClientSidePolicyCheck {
n += 3
}
l = len(m.SdsUdsPath)
if l > 0 {
n += 2 + l + sovConfig(uint64(l))
}
if m.SdsRefreshDelay != nil {
l = m.SdsRefreshDelay.Size()
n += 2 + l + sovConfig(uint64(l))
}
if len(m.ConfigSources) > 0 {
for _, e := range m.ConfigSources {
l = e.Size()
n += 2 + l + sovConfig(uint64(l))
}
}
if m.EnableSdsTokenMount {
n += 3
}
l = len(m.AccessLogFormat)
if l > 0 {
n += 2 + l + sovConfig(uint64(l))
}
if m.PolicyCheckFailOpen {
n += 3
}
l = len(m.TrustDomain)
if l > 0 {
n += 2 + l + sovConfig(uint64(l))
}
if m.AccessLogEncoding != 0 {
n += 2 + sovConfig(uint64(m.AccessLogEncoding))
}
if m.TcpKeepalive != nil {
l = m.TcpKeepalive.Size()
n += 2 + l + sovConfig(uint64(l))
}
if m.SdsUseK8SSaJwt {
n += 3
}
if m.SidecarToTelemetrySessionAffinity {
n += 3
}
return n
}
func (m *MeshConfig_OutboundTrafficPolicy) Size() (n int) {
var l int
_ = l
if m.Mode != 0 {
n += 1 + sovConfig(uint64(m.Mode))
}
return n
}
func (m *ConfigSource) Size() (n int) {
var l int
_ = l
l = len(m.Address)
if l > 0 {
n += 1 + l + sovConfig(uint64(l))
}
if m.TlsSettings != nil {
l = m.TlsSettings.Size()
n += 1 + l + sovConfig(uint64(l))
}
return n
}
func sovConfig(x uint64) (n int) {
for {
n++
x >>= 7
if x == 0 {
break
}
}
return n
}