v1alpha3

package
v1.21.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 4, 2024 License: Apache-2.0 Imports: 12 Imported by: 385

Documentation

Overview

Code generated by protoc-gen-deepcopy. DO NOT EDIT.

Code generated by protoc-gen-jsonshim. DO NOT EDIT.

Code generated by protoc-gen-deepcopy. DO NOT EDIT.

Code generated by protoc-gen-jsonshim. DO NOT EDIT.

Code generated by protoc-gen-deepcopy. DO NOT EDIT.

Code generated by protoc-gen-jsonshim. DO NOT EDIT.

Code generated by protoc-gen-deepcopy. DO NOT EDIT.

Code generated by protoc-gen-jsonshim. DO NOT EDIT.

Code generated by protoc-gen-deepcopy. DO NOT EDIT.

Code generated by protoc-gen-jsonshim. DO NOT EDIT.

Code generated by protoc-gen-deepcopy. DO NOT EDIT.

Code generated by protoc-gen-jsonshim. DO NOT EDIT.

Code generated by protoc-gen-deepcopy. DO NOT EDIT.

Code generated by protoc-gen-jsonshim. DO NOT EDIT.

Code generated by protoc-gen-deepcopy. DO NOT EDIT.

Code generated by protoc-gen-jsonshim. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

View Source
var (
	TrafficPolicy_ProxyProtocol_VERSION_name = map[int32]string{
		0: "V1",
		1: "V2",
	}
	TrafficPolicy_ProxyProtocol_VERSION_value = map[string]int32{
		"V1": 0,
		"V2": 1,
	}
)

Enum value maps for TrafficPolicy_ProxyProtocol_VERSION.

View Source
var (
	LoadBalancerSettings_SimpleLB_name = map[int32]string{
		0: "UNSPECIFIED",
		1: "LEAST_CONN",
		2: "RANDOM",
		3: "PASSTHROUGH",
		4: "ROUND_ROBIN",
		5: "LEAST_REQUEST",
	}
	LoadBalancerSettings_SimpleLB_value = map[string]int32{
		"UNSPECIFIED":   0,
		"LEAST_CONN":    1,
		"RANDOM":        2,
		"PASSTHROUGH":   3,
		"ROUND_ROBIN":   4,
		"LEAST_REQUEST": 5,
	}
)

Enum value maps for LoadBalancerSettings_SimpleLB.

View Source
var (
	ConnectionPoolSettings_HTTPSettings_H2UpgradePolicy_name = map[int32]string{
		0: "DEFAULT",
		1: "DO_NOT_UPGRADE",
		2: "UPGRADE",
	}
	ConnectionPoolSettings_HTTPSettings_H2UpgradePolicy_value = map[string]int32{
		"DEFAULT":        0,
		"DO_NOT_UPGRADE": 1,
		"UPGRADE":        2,
	}
)

Enum value maps for ConnectionPoolSettings_HTTPSettings_H2UpgradePolicy.

View Source
var (
	ClientTLSSettings_TLSmode_name = map[int32]string{
		0: "DISABLE",
		1: "SIMPLE",
		2: "MUTUAL",
		3: "ISTIO_MUTUAL",
	}
	ClientTLSSettings_TLSmode_value = map[string]int32{
		"DISABLE":      0,
		"SIMPLE":       1,
		"MUTUAL":       2,
		"ISTIO_MUTUAL": 3,
	}
)

Enum value maps for ClientTLSSettings_TLSmode.

View Source
var (
	DestinationRuleMarshaler   = &jsonpb.Marshaler{}
	DestinationRuleUnmarshaler = &jsonpb.Unmarshaler{AllowUnknownFields: true}
)
View Source
var (
	EnvoyFilter_ApplyTo_name = map[int32]string{
		0:  "INVALID",
		1:  "LISTENER",
		2:  "FILTER_CHAIN",
		3:  "NETWORK_FILTER",
		4:  "HTTP_FILTER",
		5:  "ROUTE_CONFIGURATION",
		6:  "VIRTUAL_HOST",
		7:  "HTTP_ROUTE",
		8:  "CLUSTER",
		9:  "EXTENSION_CONFIG",
		10: "BOOTSTRAP",
		11: "LISTENER_FILTER",
	}
	EnvoyFilter_ApplyTo_value = map[string]int32{
		"INVALID":             0,
		"LISTENER":            1,
		"FILTER_CHAIN":        2,
		"NETWORK_FILTER":      3,
		"HTTP_FILTER":         4,
		"ROUTE_CONFIGURATION": 5,
		"VIRTUAL_HOST":        6,
		"HTTP_ROUTE":          7,
		"CLUSTER":             8,
		"EXTENSION_CONFIG":    9,
		"BOOTSTRAP":           10,
		"LISTENER_FILTER":     11,
	}
)

Enum value maps for EnvoyFilter_ApplyTo.

View Source
var (
	EnvoyFilter_PatchContext_name = map[int32]string{
		0: "ANY",
		1: "SIDECAR_INBOUND",
		2: "SIDECAR_OUTBOUND",
		3: "GATEWAY",
	}
	EnvoyFilter_PatchContext_value = map[string]int32{
		"ANY":              0,
		"SIDECAR_INBOUND":  1,
		"SIDECAR_OUTBOUND": 2,
		"GATEWAY":          3,
	}
)

Enum value maps for EnvoyFilter_PatchContext.

View Source
var (
	EnvoyFilter_RouteConfigurationMatch_RouteMatch_Action_name = map[int32]string{
		0: "ANY",
		1: "ROUTE",
		2: "REDIRECT",
		3: "DIRECT_RESPONSE",
	}
	EnvoyFilter_RouteConfigurationMatch_RouteMatch_Action_value = map[string]int32{
		"ANY":             0,
		"ROUTE":           1,
		"REDIRECT":        2,
		"DIRECT_RESPONSE": 3,
	}
)

Enum value maps for EnvoyFilter_RouteConfigurationMatch_RouteMatch_Action.

View Source
var (
	EnvoyFilter_Patch_Operation_name = map[int32]string{
		0: "INVALID",
		1: "MERGE",
		2: "ADD",
		3: "REMOVE",
		4: "INSERT_BEFORE",
		5: "INSERT_AFTER",
		6: "INSERT_FIRST",
		7: "REPLACE",
	}
	EnvoyFilter_Patch_Operation_value = map[string]int32{
		"INVALID":       0,
		"MERGE":         1,
		"ADD":           2,
		"REMOVE":        3,
		"INSERT_BEFORE": 4,
		"INSERT_AFTER":  5,
		"INSERT_FIRST":  6,
		"REPLACE":       7,
	}
)

Enum value maps for EnvoyFilter_Patch_Operation.

View Source
var (
	EnvoyFilter_Patch_FilterClass_name = map[int32]string{
		0: "UNSPECIFIED",
		1: "AUTHN",
		2: "AUTHZ",
		3: "STATS",
	}
	EnvoyFilter_Patch_FilterClass_value = map[string]int32{
		"UNSPECIFIED": 0,
		"AUTHN":       1,
		"AUTHZ":       2,
		"STATS":       3,
	}
)

Enum value maps for EnvoyFilter_Patch_FilterClass.

View Source
var (
	EnvoyFilterMarshaler   = &jsonpb.Marshaler{}
	EnvoyFilterUnmarshaler = &jsonpb.Unmarshaler{AllowUnknownFields: true}
)
View Source
var (
	ServerTLSSettings_TLSmode_name = map[int32]string{
		0: "PASSTHROUGH",
		1: "SIMPLE",
		2: "MUTUAL",
		3: "AUTO_PASSTHROUGH",
		4: "ISTIO_MUTUAL",
		5: "OPTIONAL_MUTUAL",
	}
	ServerTLSSettings_TLSmode_value = map[string]int32{
		"PASSTHROUGH":      0,
		"SIMPLE":           1,
		"MUTUAL":           2,
		"AUTO_PASSTHROUGH": 3,
		"ISTIO_MUTUAL":     4,
		"OPTIONAL_MUTUAL":  5,
	}
)

Enum value maps for ServerTLSSettings_TLSmode.

View Source
var (
	ServerTLSSettings_TLSProtocol_name = map[int32]string{
		0: "TLS_AUTO",
		1: "TLSV1_0",
		2: "TLSV1_1",
		3: "TLSV1_2",
		4: "TLSV1_3",
	}
	ServerTLSSettings_TLSProtocol_value = map[string]int32{
		"TLS_AUTO": 0,
		"TLSV1_0":  1,
		"TLSV1_1":  2,
		"TLSV1_2":  3,
		"TLSV1_3":  4,
	}
)

Enum value maps for ServerTLSSettings_TLSProtocol.

View Source
var (
	GatewayMarshaler   = &jsonpb.Marshaler{}
	GatewayUnmarshaler = &jsonpb.Unmarshaler{AllowUnknownFields: true}
)
View Source
var (
	ServiceEntry_Location_name = map[int32]string{
		0: "MESH_EXTERNAL",
		1: "MESH_INTERNAL",
	}
	ServiceEntry_Location_value = map[string]int32{
		"MESH_EXTERNAL": 0,
		"MESH_INTERNAL": 1,
	}
)

Enum value maps for ServiceEntry_Location.

View Source
var (
	ServiceEntry_Resolution_name = map[int32]string{
		0: "NONE",
		1: "STATIC",
		2: "DNS",
		3: "DNS_ROUND_ROBIN",
	}
	ServiceEntry_Resolution_value = map[string]int32{
		"NONE":            0,
		"STATIC":          1,
		"DNS":             2,
		"DNS_ROUND_ROBIN": 3,
	}
)

Enum value maps for ServiceEntry_Resolution.

View Source
var (
	ServiceEntryMarshaler   = &jsonpb.Marshaler{}
	ServiceEntryUnmarshaler = &jsonpb.Unmarshaler{AllowUnknownFields: true}
)
View Source
var (
	CaptureMode_name = map[int32]string{
		0: "DEFAULT",
		1: "IPTABLES",
		2: "NONE",
	}
	CaptureMode_value = map[string]int32{
		"DEFAULT":  0,
		"IPTABLES": 1,
		"NONE":     2,
	}
)

Enum value maps for CaptureMode.

View Source
var (
	OutboundTrafficPolicy_Mode_name = map[int32]string{
		0: "REGISTRY_ONLY",
		1: "ALLOW_ANY",
	}
	OutboundTrafficPolicy_Mode_value = map[string]int32{
		"REGISTRY_ONLY": 0,
		"ALLOW_ANY":     1,
	}
)

Enum value maps for OutboundTrafficPolicy_Mode.

View Source
var (
	SidecarMarshaler   = &jsonpb.Marshaler{}
	SidecarUnmarshaler = &jsonpb.Unmarshaler{AllowUnknownFields: true}
)
View Source
var (
	HTTPRedirect_RedirectPortSelection_name = map[int32]string{
		0: "FROM_PROTOCOL_DEFAULT",
		1: "FROM_REQUEST_PORT",
	}
	HTTPRedirect_RedirectPortSelection_value = map[string]int32{
		"FROM_PROTOCOL_DEFAULT": 0,
		"FROM_REQUEST_PORT":     1,
	}
)

Enum value maps for HTTPRedirect_RedirectPortSelection.

View Source
var (
	VirtualServiceMarshaler   = &jsonpb.Marshaler{}
	VirtualServiceUnmarshaler = &jsonpb.Unmarshaler{AllowUnknownFields: true}
)
View Source
var (
	WorkloadEntryMarshaler   = &jsonpb.Marshaler{}
	WorkloadEntryUnmarshaler = &jsonpb.Unmarshaler{AllowUnknownFields: true}
)
View Source
var (
	WorkloadGroupMarshaler   = &jsonpb.Marshaler{}
	WorkloadGroupUnmarshaler = &jsonpb.Unmarshaler{AllowUnknownFields: true}
)
View Source
var File_networking_v1alpha3_destination_rule_proto protoreflect.FileDescriptor
View Source
var File_networking_v1alpha3_envoy_filter_proto protoreflect.FileDescriptor
View Source
var File_networking_v1alpha3_gateway_proto protoreflect.FileDescriptor
View Source
var File_networking_v1alpha3_service_entry_proto protoreflect.FileDescriptor
View Source
var File_networking_v1alpha3_sidecar_proto protoreflect.FileDescriptor
View Source
var File_networking_v1alpha3_virtual_service_proto protoreflect.FileDescriptor
View Source
var File_networking_v1alpha3_workload_entry_proto protoreflect.FileDescriptor
View Source
var File_networking_v1alpha3_workload_group_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type CaptureMode

type CaptureMode int32

`CaptureMode` describes how traffic to a listener is expected to be captured. Applicable only when the listener is bound to an IP.

const (
	// The default capture mode defined by the environment.
	CaptureMode_DEFAULT CaptureMode = 0
	// Capture traffic using IPtables redirection.
	CaptureMode_IPTABLES CaptureMode = 1
	// No traffic capture. When used in an egress listener, the application is
	// expected to explicitly communicate with the listener port or Unix
	// domain socket. When used in an ingress listener, care needs to be taken
	// to ensure that the listener port is not in use by other processes on
	// the host.
	CaptureMode_NONE CaptureMode = 2
)

func (CaptureMode) Descriptor

func (CaptureMode) Enum

func (x CaptureMode) Enum() *CaptureMode

func (CaptureMode) EnumDescriptor deprecated

func (CaptureMode) EnumDescriptor() ([]byte, []int)

Deprecated: Use CaptureMode.Descriptor instead.

func (CaptureMode) Number

func (x CaptureMode) Number() protoreflect.EnumNumber

func (CaptureMode) String

func (x CaptureMode) String() string

func (CaptureMode) Type

type ClientTLSSettings

type ClientTLSSettings struct {

	// Indicates whether connections to this port should be secured
	// using TLS. The value of this field determines how TLS is enforced.
	Mode ClientTLSSettings_TLSmode `protobuf:"varint,1,opt,name=mode,proto3,enum=istio.networking.v1alpha3.ClientTLSSettings_TLSmode" json:"mode,omitempty"`
	// REQUIRED if mode is `MUTUAL`. The path to the file holding the
	// client-side TLS certificate to use.
	// Should be empty if mode is `ISTIO_MUTUAL`.
	ClientCertificate string `protobuf:"bytes,2,opt,name=client_certificate,json=clientCertificate,proto3" json:"client_certificate,omitempty"`
	// REQUIRED if mode is `MUTUAL`. The path to the file holding the
	// client's private key.
	// Should be empty if mode is `ISTIO_MUTUAL`.
	PrivateKey string `protobuf:"bytes,3,opt,name=private_key,json=privateKey,proto3" json:"private_key,omitempty"`
	// OPTIONAL: The path to the file containing certificate authority
	// certificates to use in verifying a presented server certificate. If
	// omitted, the proxy will not verify the server's certificate.
	// Should be empty if mode is `ISTIO_MUTUAL`.
	CaCertificates string `protobuf:"bytes,4,opt,name=ca_certificates,json=caCertificates,proto3" json:"ca_certificates,omitempty"`
	// The name of the secret that holds the TLS certs for the
	// client including the CA certificates. This secret must exist in
	// the namespace of the proxy using the certificates.
	// An Opaque secret should contain the following keys and values:
	// `key: <privateKey>`, `cert: <clientCert>`, `cacert: <CACertificate>`,
	// `crl: <certificateRevocationList>`
	// Here CACertificate is used to verify the server certificate.
	// For mutual TLS, `cacert: <CACertificate>` can be provided in the
	// same secret or a separate secret named `<secret>-cacert`.
	// A TLS secret for client certificates with an additional
	// `ca.crt` key for CA certificates and `ca.crl` key for
	// certificate revocation list(CRL) is also supported.
	// Only one of client certificates and CA certificate
	// or credentialName can be specified.
	//
	// **NOTE:** This field is applicable at sidecars only if
	// `DestinationRule` has a `workloadSelector` specified.
	// Otherwise the field will be applicable only at gateways, and
	// sidecars will continue to use the certificate paths.
	CredentialName string `protobuf:"bytes,7,opt,name=credential_name,json=credentialName,proto3" json:"credential_name,omitempty"`
	// A list of alternate names to verify the subject identity in the
	// certificate. If specified, the proxy will verify that the server
	// certificate's subject alt name matches one of the specified values.
	// If specified, this list overrides the value of subject_alt_names
	// from the ServiceEntry. If unspecified, automatic validation of upstream
	// presented certificate for new upstream connections will be done based on the
	// downstream HTTP host/authority header, provided `VERIFY_CERTIFICATE_AT_CLIENT`
	// and `ENABLE_AUTO_SNI` environmental variables are set to `true`.
	SubjectAltNames []string `protobuf:"bytes,5,rep,name=subject_alt_names,json=subjectAltNames,proto3" json:"subject_alt_names,omitempty"`
	// SNI string to present to the server during TLS handshake.
	// If unspecified, SNI will be automatically set based on downstream HTTP
	// host/authority header for SIMPLE and MUTUAL TLS modes, provided `ENABLE_AUTO_SNI`
	// environmental variable is set to `true`.
	Sni string `protobuf:"bytes,6,opt,name=sni,proto3" json:"sni,omitempty"`
	// `insecureSkipVerify` specifies whether the proxy should skip verifying the
	// CA signature and SAN for the server certificate corresponding to the host.
	// This flag should only be set if global CA signature verification is
	// enabled, `VERIFY_CERTIFICATE_AT_CLIENT` environmental variable is set to `true`,
	// but no verification is desired for a specific host. If enabled with or
	// without `VERIFY_CERTIFICATE_AT_CLIENT` enabled, verification of the CA signature and
	// SAN will be skipped.
	//
	// `insecureSkipVerify` is `false` by default.
	// `VERIFY_CERTIFICATE_AT_CLIENT` is `false` by default in Istio version 1.9 but will
	// be `true` by default in a later version where, going forward, it will be
	// enabled by default.
	InsecureSkipVerify *wrappers.BoolValue `protobuf:"bytes,8,opt,name=insecure_skip_verify,json=insecureSkipVerify,proto3" json:"insecure_skip_verify,omitempty"`
	// contains filtered or unexported fields
}

SSL/TLS related settings for upstream connections. See Envoy's [TLS context](https://www.envoyproxy.io/docs/envoy/latest/api-v3/extensions/transport_sockets/tls/v3/common.proto.html#common-tls-configuration) for more details. These settings are common to both HTTP and TCP upstreams.

For example, the following rule configures a client to use mutual TLS for connections to upstream database cluster.

{{<tabset category-name="example">}} {{<tab name="v1alpha3" category-value="v1alpha3">}} ```yaml apiVersion: networking.istio.io/v1alpha3 kind: DestinationRule metadata:

name: db-mtls

spec:

host: mydbserver.prod.svc.cluster.local
trafficPolicy:
  tls:
    mode: MUTUAL
    clientCertificate: /etc/certs/myclientcert.pem
    privateKey: /etc/certs/client_private_key.pem
    caCertificates: /etc/certs/rootcacerts.pem

``` {{</tab>}}

{{<tab name="v1beta1" category-value="v1beta1">}} ```yaml apiVersion: networking.istio.io/v1beta1 kind: DestinationRule metadata:

name: db-mtls

spec:

host: mydbserver.prod.svc.cluster.local
trafficPolicy:
  tls:
    mode: MUTUAL
    clientCertificate: /etc/certs/myclientcert.pem
    privateKey: /etc/certs/client_private_key.pem
    caCertificates: /etc/certs/rootcacerts.pem

``` {{</tab>}} {{</tabset>}}

The following rule configures a client to use TLS when talking to a foreign service whose domain matches *.foo.com.

{{<tabset category-name="example">}} {{<tab name="v1alpha3" category-value="v1alpha3">}} ```yaml apiVersion: networking.istio.io/v1alpha3 kind: DestinationRule metadata:

name: tls-foo

spec:

host: "*.foo.com"
trafficPolicy:
  tls:
    mode: SIMPLE

``` {{</tab>}}

{{<tab name="v1beta1" category-value="v1beta1">}} ```yaml apiVersion: networking.istio.io/v1beta1 kind: DestinationRule metadata:

name: tls-foo

spec:

host: "*.foo.com"
trafficPolicy:
  tls:
    mode: SIMPLE

``` {{</tab>}} {{</tabset>}}

The following rule configures a client to use Istio mutual TLS when talking to rating services.

{{<tabset category-name="example">}} {{<tab name="v1alpha3" category-value="v1alpha3">}} ```yaml apiVersion: networking.istio.io/v1alpha3 kind: DestinationRule metadata:

name: ratings-istio-mtls

spec:

host: ratings.prod.svc.cluster.local
trafficPolicy:
  tls:
    mode: ISTIO_MUTUAL

``` {{</tab>}}

{{<tab name="v1beta1" category-value="v1beta1">}} ```yaml apiVersion: networking.istio.io/v1beta1 kind: DestinationRule metadata:

name: ratings-istio-mtls

spec:

host: ratings.prod.svc.cluster.local
trafficPolicy:
  tls:
    mode: ISTIO_MUTUAL

``` {{</tab>}} {{</tabset>}}

func (*ClientTLSSettings) DeepCopy

func (in *ClientTLSSettings) DeepCopy() *ClientTLSSettings

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClientTLSSettings. Required by controller-gen.

func (*ClientTLSSettings) DeepCopyInterface

func (in *ClientTLSSettings) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new ClientTLSSettings. Required by controller-gen.

func (*ClientTLSSettings) DeepCopyInto

func (in *ClientTLSSettings) DeepCopyInto(out *ClientTLSSettings)

DeepCopyInto supports using ClientTLSSettings within kubernetes types, where deepcopy-gen is used.

func (*ClientTLSSettings) Descriptor deprecated

func (*ClientTLSSettings) Descriptor() ([]byte, []int)

Deprecated: Use ClientTLSSettings.ProtoReflect.Descriptor instead.

func (*ClientTLSSettings) GetCaCertificates

func (x *ClientTLSSettings) GetCaCertificates() string

func (*ClientTLSSettings) GetClientCertificate

func (x *ClientTLSSettings) GetClientCertificate() string

func (*ClientTLSSettings) GetCredentialName

func (x *ClientTLSSettings) GetCredentialName() string

func (*ClientTLSSettings) GetInsecureSkipVerify

func (x *ClientTLSSettings) GetInsecureSkipVerify() *wrappers.BoolValue

func (*ClientTLSSettings) GetMode

func (*ClientTLSSettings) GetPrivateKey

func (x *ClientTLSSettings) GetPrivateKey() string

func (*ClientTLSSettings) GetSni

func (x *ClientTLSSettings) GetSni() string

func (*ClientTLSSettings) GetSubjectAltNames

func (x *ClientTLSSettings) GetSubjectAltNames() []string

func (*ClientTLSSettings) MarshalJSON

func (this *ClientTLSSettings) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for ClientTLSSettings

func (*ClientTLSSettings) ProtoMessage

func (*ClientTLSSettings) ProtoMessage()

func (*ClientTLSSettings) ProtoReflect

func (x *ClientTLSSettings) ProtoReflect() protoreflect.Message

func (*ClientTLSSettings) Reset

func (x *ClientTLSSettings) Reset()

func (*ClientTLSSettings) String

func (x *ClientTLSSettings) String() string

func (*ClientTLSSettings) UnmarshalJSON

func (this *ClientTLSSettings) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for ClientTLSSettings

type ClientTLSSettings_TLSmode

type ClientTLSSettings_TLSmode int32

TLS connection mode

const (
	// Do not setup a TLS connection to the upstream endpoint.
	ClientTLSSettings_DISABLE ClientTLSSettings_TLSmode = 0
	// Originate a TLS connection to the upstream endpoint.
	ClientTLSSettings_SIMPLE ClientTLSSettings_TLSmode = 1
	// Secure connections to the upstream using mutual TLS by presenting
	// client certificates for authentication.
	ClientTLSSettings_MUTUAL ClientTLSSettings_TLSmode = 2
	// Secure connections to the upstream using mutual TLS by presenting
	// client certificates for authentication.
	// Compared to Mutual mode, this mode uses certificates generated
	// automatically by Istio for mTLS authentication. When this mode is
	// used, all other fields in `ClientTLSSettings` should be empty.
	ClientTLSSettings_ISTIO_MUTUAL ClientTLSSettings_TLSmode = 3
)

func (ClientTLSSettings_TLSmode) Descriptor

func (ClientTLSSettings_TLSmode) Enum

func (ClientTLSSettings_TLSmode) EnumDescriptor deprecated

func (ClientTLSSettings_TLSmode) EnumDescriptor() ([]byte, []int)

Deprecated: Use ClientTLSSettings_TLSmode.Descriptor instead.

func (ClientTLSSettings_TLSmode) Number

func (ClientTLSSettings_TLSmode) String

func (x ClientTLSSettings_TLSmode) String() string

func (ClientTLSSettings_TLSmode) Type

type ConnectionPoolSettings

type ConnectionPoolSettings struct {

	// Settings common to both HTTP and TCP upstream connections.
	Tcp *ConnectionPoolSettings_TCPSettings `protobuf:"bytes,1,opt,name=tcp,proto3" json:"tcp,omitempty"`
	// HTTP connection pool settings.
	Http *ConnectionPoolSettings_HTTPSettings `protobuf:"bytes,2,opt,name=http,proto3" json:"http,omitempty"`
	// contains filtered or unexported fields
}

Connection pool settings for an upstream host. The settings apply to each individual host in the upstream service. See Envoy's [circuit breaker](https://www.envoyproxy.io/docs/envoy/latest/intro/arch_overview/upstream/circuit_breaking) for more details. Connection pool settings can be applied at the TCP level as well as at HTTP level.

For example, the following rule sets a limit of 100 connections to redis service called myredissrv with a connect timeout of 30ms

{{<tabset category-name="example">}} {{<tab name="v1alpha3" category-value="v1alpha3">}} ```yaml apiVersion: networking.istio.io/v1alpha3 kind: DestinationRule metadata:

name: bookinfo-redis

spec:

host: myredissrv.prod.svc.cluster.local
trafficPolicy:
  connectionPool:
    tcp:
      maxConnections: 100
      connectTimeout: 30ms
      tcpKeepalive:
        time: 7200s
        interval: 75s

``` {{</tab>}}

{{<tab name="v1beta1" category-value="v1beta1">}} ```yaml apiVersion: networking.istio.io/v1beta1 kind: DestinationRule metadata:

name: bookinfo-redis

spec:

host: myredissrv.prod.svc.cluster.local
trafficPolicy:
  connectionPool:
    tcp:
      maxConnections: 100
      connectTimeout: 30ms
      tcpKeepalive:
        time: 7200s
        interval: 75s

``` {{</tab>}} {{</tabset>}}

func (*ConnectionPoolSettings) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConnectionPoolSettings. Required by controller-gen.

func (*ConnectionPoolSettings) DeepCopyInterface

func (in *ConnectionPoolSettings) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new ConnectionPoolSettings. Required by controller-gen.

func (*ConnectionPoolSettings) DeepCopyInto

func (in *ConnectionPoolSettings) DeepCopyInto(out *ConnectionPoolSettings)

DeepCopyInto supports using ConnectionPoolSettings within kubernetes types, where deepcopy-gen is used.

func (*ConnectionPoolSettings) Descriptor deprecated

func (*ConnectionPoolSettings) Descriptor() ([]byte, []int)

Deprecated: Use ConnectionPoolSettings.ProtoReflect.Descriptor instead.

func (*ConnectionPoolSettings) GetHttp

func (*ConnectionPoolSettings) GetTcp

func (*ConnectionPoolSettings) MarshalJSON

func (this *ConnectionPoolSettings) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for ConnectionPoolSettings

func (*ConnectionPoolSettings) ProtoMessage

func (*ConnectionPoolSettings) ProtoMessage()

func (*ConnectionPoolSettings) ProtoReflect

func (x *ConnectionPoolSettings) ProtoReflect() protoreflect.Message

func (*ConnectionPoolSettings) Reset

func (x *ConnectionPoolSettings) Reset()

func (*ConnectionPoolSettings) String

func (x *ConnectionPoolSettings) String() string

func (*ConnectionPoolSettings) UnmarshalJSON

func (this *ConnectionPoolSettings) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for ConnectionPoolSettings

type ConnectionPoolSettings_HTTPSettings

type ConnectionPoolSettings_HTTPSettings struct {

	// Maximum number of requests that will be queued while waiting for
	// a ready connection pool connection. Default 2^32-1.
	// Refer to https://www.envoyproxy.io/docs/envoy/latest/intro/arch_overview/upstream/circuit_breaking
	// under which conditions a new connection is created for HTTP2.
	// Please note that this is applicable to both HTTP/1.1 and HTTP2.
	Http1MaxPendingRequests int32 `` /* 135-byte string literal not displayed */
	// Maximum number of active requests to a destination. Default 2^32-1.
	// Please note that this is applicable to both HTTP/1.1 and HTTP2.
	Http2MaxRequests int32 `protobuf:"varint,2,opt,name=http2_max_requests,json=http2MaxRequests,proto3" json:"http2_max_requests,omitempty"`
	// Maximum number of requests per connection to a backend. Setting this
	// parameter to 1 disables keep alive. Default 0, meaning "unlimited",
	// up to 2^29.
	MaxRequestsPerConnection int32 `` /* 138-byte string literal not displayed */
	// Maximum number of retries that can be outstanding to all hosts in a
	// cluster at a given time. Defaults to 2^32-1.
	MaxRetries int32 `protobuf:"varint,4,opt,name=max_retries,json=maxRetries,proto3" json:"max_retries,omitempty"`
	// The idle timeout for upstream connection pool connections. The idle timeout
	// is defined as the period in which there are no active requests.
	// If not set, the default is 1 hour. When the idle timeout is reached,
	// the connection will be closed. If the connection is an HTTP/2
	// connection a drain sequence will occur prior to closing the connection.
	// Note that request based timeouts mean that HTTP/2 PINGs will not
	// keep the connection alive. Applies to both HTTP1.1 and HTTP2 connections.
	IdleTimeout *duration.Duration `protobuf:"bytes,5,opt,name=idle_timeout,json=idleTimeout,proto3" json:"idle_timeout,omitempty"`
	// Specify if http1.1 connection should be upgraded to http2 for the associated destination.
	H2UpgradePolicy ConnectionPoolSettings_HTTPSettings_H2UpgradePolicy `` /* 192-byte string literal not displayed */
	// If set to true, client protocol will be preserved while initiating connection to backend.
	// Note that when this is set to true, h2_upgrade_policy will be ineffective i.e. the client
	// connections will not be upgraded to http2.
	UseClientProtocol bool `protobuf:"varint,7,opt,name=use_client_protocol,json=useClientProtocol,proto3" json:"use_client_protocol,omitempty"`
	// The maximum number of concurrent streams allowed for a peer on one HTTP/2 connection.
	// Defaults to 2^31-1.
	MaxConcurrentStreams int32 `protobuf:"varint,8,opt,name=max_concurrent_streams,json=maxConcurrentStreams,proto3" json:"max_concurrent_streams,omitempty"`
	// contains filtered or unexported fields
}

Settings applicable to HTTP1.1/HTTP2/GRPC connections.

func (*ConnectionPoolSettings_HTTPSettings) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConnectionPoolSettings_HTTPSettings. Required by controller-gen.

func (*ConnectionPoolSettings_HTTPSettings) DeepCopyInterface

func (in *ConnectionPoolSettings_HTTPSettings) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new ConnectionPoolSettings_HTTPSettings. Required by controller-gen.

func (*ConnectionPoolSettings_HTTPSettings) DeepCopyInto

DeepCopyInto supports using ConnectionPoolSettings_HTTPSettings within kubernetes types, where deepcopy-gen is used.

func (*ConnectionPoolSettings_HTTPSettings) Descriptor deprecated

func (*ConnectionPoolSettings_HTTPSettings) Descriptor() ([]byte, []int)

Deprecated: Use ConnectionPoolSettings_HTTPSettings.ProtoReflect.Descriptor instead.

func (*ConnectionPoolSettings_HTTPSettings) GetH2UpgradePolicy

func (*ConnectionPoolSettings_HTTPSettings) GetHttp1MaxPendingRequests

func (x *ConnectionPoolSettings_HTTPSettings) GetHttp1MaxPendingRequests() int32

func (*ConnectionPoolSettings_HTTPSettings) GetHttp2MaxRequests

func (x *ConnectionPoolSettings_HTTPSettings) GetHttp2MaxRequests() int32

func (*ConnectionPoolSettings_HTTPSettings) GetIdleTimeout

func (*ConnectionPoolSettings_HTTPSettings) GetMaxConcurrentStreams added in v1.21.0

func (x *ConnectionPoolSettings_HTTPSettings) GetMaxConcurrentStreams() int32

func (*ConnectionPoolSettings_HTTPSettings) GetMaxRequestsPerConnection

func (x *ConnectionPoolSettings_HTTPSettings) GetMaxRequestsPerConnection() int32

func (*ConnectionPoolSettings_HTTPSettings) GetMaxRetries

func (x *ConnectionPoolSettings_HTTPSettings) GetMaxRetries() int32

func (*ConnectionPoolSettings_HTTPSettings) GetUseClientProtocol

func (x *ConnectionPoolSettings_HTTPSettings) GetUseClientProtocol() bool

func (*ConnectionPoolSettings_HTTPSettings) MarshalJSON

func (this *ConnectionPoolSettings_HTTPSettings) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for ConnectionPoolSettings_HTTPSettings

func (*ConnectionPoolSettings_HTTPSettings) ProtoMessage

func (*ConnectionPoolSettings_HTTPSettings) ProtoMessage()

func (*ConnectionPoolSettings_HTTPSettings) ProtoReflect

func (*ConnectionPoolSettings_HTTPSettings) Reset

func (*ConnectionPoolSettings_HTTPSettings) String

func (*ConnectionPoolSettings_HTTPSettings) UnmarshalJSON

func (this *ConnectionPoolSettings_HTTPSettings) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for ConnectionPoolSettings_HTTPSettings

type ConnectionPoolSettings_HTTPSettings_H2UpgradePolicy

type ConnectionPoolSettings_HTTPSettings_H2UpgradePolicy int32

Policy for upgrading http1.1 connections to http2.

const (
	// Use the global default.
	ConnectionPoolSettings_HTTPSettings_DEFAULT ConnectionPoolSettings_HTTPSettings_H2UpgradePolicy = 0
	// Do not upgrade the connection to http2.
	// This opt-out option overrides the default.
	ConnectionPoolSettings_HTTPSettings_DO_NOT_UPGRADE ConnectionPoolSettings_HTTPSettings_H2UpgradePolicy = 1
	// Upgrade the connection to http2.
	// This opt-in option overrides the default.
	ConnectionPoolSettings_HTTPSettings_UPGRADE ConnectionPoolSettings_HTTPSettings_H2UpgradePolicy = 2
)

func (ConnectionPoolSettings_HTTPSettings_H2UpgradePolicy) Descriptor

func (ConnectionPoolSettings_HTTPSettings_H2UpgradePolicy) Enum

func (ConnectionPoolSettings_HTTPSettings_H2UpgradePolicy) EnumDescriptor deprecated

Deprecated: Use ConnectionPoolSettings_HTTPSettings_H2UpgradePolicy.Descriptor instead.

func (ConnectionPoolSettings_HTTPSettings_H2UpgradePolicy) Number

func (ConnectionPoolSettings_HTTPSettings_H2UpgradePolicy) String

func (ConnectionPoolSettings_HTTPSettings_H2UpgradePolicy) Type

type ConnectionPoolSettings_TCPSettings

type ConnectionPoolSettings_TCPSettings struct {

	// Maximum number of HTTP1 /TCP connections to a destination host. Default 2^32-1.
	MaxConnections int32 `protobuf:"varint,1,opt,name=max_connections,json=maxConnections,proto3" json:"max_connections,omitempty"`
	// TCP connection timeout. format:
	// 1h/1m/1s/1ms. MUST BE >=1ms. Default is 10s.
	ConnectTimeout *duration.Duration `protobuf:"bytes,2,opt,name=connect_timeout,json=connectTimeout,proto3" json:"connect_timeout,omitempty"`
	// If set then set SO_KEEPALIVE on the socket to enable TCP Keepalives.
	TcpKeepalive *ConnectionPoolSettings_TCPSettings_TcpKeepalive `protobuf:"bytes,3,opt,name=tcp_keepalive,json=tcpKeepalive,proto3" json:"tcp_keepalive,omitempty"`
	// The maximum duration of a connection. The duration is defined as the period since a connection
	// was established. If not set, there is no max duration. When max_connection_duration
	// is reached the connection will be closed. Duration must be at least 1ms.
	MaxConnectionDuration *duration.Duration `` /* 126-byte string literal not displayed */
	// The idle timeout for TCP connections.
	// The idle timeout is defined as the period in which there are no bytes sent or received on either
	// the upstream or downstream connection.
	// If not set, the default idle timeout is 1 hour. If set to 0s, the timeout will be disabled.
	// Idle timeout is not configured per each cluster individually when weighted destinations are used,
	// because idleTimeout is a property of a listener, not a cluster. In that case, idleTimeout
	// specified in a destination rule for the first weighted route is configured in the listener,
	// which means also for all weighted routes.
	IdleTimeout *duration.Duration `protobuf:"bytes,5,opt,name=idle_timeout,json=idleTimeout,proto3" json:"idle_timeout,omitempty"`
	// contains filtered or unexported fields
}

Settings common to both HTTP and TCP upstream connections.

func (*ConnectionPoolSettings_TCPSettings) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConnectionPoolSettings_TCPSettings. Required by controller-gen.

func (*ConnectionPoolSettings_TCPSettings) DeepCopyInterface

func (in *ConnectionPoolSettings_TCPSettings) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new ConnectionPoolSettings_TCPSettings. Required by controller-gen.

func (*ConnectionPoolSettings_TCPSettings) DeepCopyInto

DeepCopyInto supports using ConnectionPoolSettings_TCPSettings within kubernetes types, where deepcopy-gen is used.

func (*ConnectionPoolSettings_TCPSettings) Descriptor deprecated

func (*ConnectionPoolSettings_TCPSettings) Descriptor() ([]byte, []int)

Deprecated: Use ConnectionPoolSettings_TCPSettings.ProtoReflect.Descriptor instead.

func (*ConnectionPoolSettings_TCPSettings) GetConnectTimeout

func (x *ConnectionPoolSettings_TCPSettings) GetConnectTimeout() *duration.Duration

func (*ConnectionPoolSettings_TCPSettings) GetIdleTimeout added in v1.21.0

func (*ConnectionPoolSettings_TCPSettings) GetMaxConnectionDuration

func (x *ConnectionPoolSettings_TCPSettings) GetMaxConnectionDuration() *duration.Duration

func (*ConnectionPoolSettings_TCPSettings) GetMaxConnections

func (x *ConnectionPoolSettings_TCPSettings) GetMaxConnections() int32

func (*ConnectionPoolSettings_TCPSettings) GetTcpKeepalive

func (*ConnectionPoolSettings_TCPSettings) MarshalJSON

func (this *ConnectionPoolSettings_TCPSettings) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for ConnectionPoolSettings_TCPSettings

func (*ConnectionPoolSettings_TCPSettings) ProtoMessage

func (*ConnectionPoolSettings_TCPSettings) ProtoMessage()

func (*ConnectionPoolSettings_TCPSettings) ProtoReflect

func (*ConnectionPoolSettings_TCPSettings) Reset

func (*ConnectionPoolSettings_TCPSettings) String

func (*ConnectionPoolSettings_TCPSettings) UnmarshalJSON

func (this *ConnectionPoolSettings_TCPSettings) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for ConnectionPoolSettings_TCPSettings

type ConnectionPoolSettings_TCPSettings_TcpKeepalive

type ConnectionPoolSettings_TCPSettings_TcpKeepalive struct {

	// Maximum number of keepalive probes to send without response before
	// deciding the connection is dead. Default is to use the OS level configuration
	// (unless overridden, Linux defaults to 9.)
	Probes uint32 `protobuf:"varint,1,opt,name=probes,proto3" json:"probes,omitempty"`
	// The time duration a connection needs to be idle before keep-alive
	// probes start being sent. Default is to use the OS level configuration
	// (unless overridden, Linux defaults to 7200s (ie 2 hours.)
	Time *duration.Duration `protobuf:"bytes,2,opt,name=time,proto3" json:"time,omitempty"`
	// The time duration between keep-alive probes.
	// Default is to use the OS level configuration
	// (unless overridden, Linux defaults to 75s.)
	Interval *duration.Duration `protobuf:"bytes,3,opt,name=interval,proto3" json:"interval,omitempty"`
	// contains filtered or unexported fields
}

TCP keepalive.

func (*ConnectionPoolSettings_TCPSettings_TcpKeepalive) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConnectionPoolSettings_TCPSettings_TcpKeepalive. Required by controller-gen.

func (*ConnectionPoolSettings_TCPSettings_TcpKeepalive) DeepCopyInterface

func (in *ConnectionPoolSettings_TCPSettings_TcpKeepalive) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new ConnectionPoolSettings_TCPSettings_TcpKeepalive. Required by controller-gen.

func (*ConnectionPoolSettings_TCPSettings_TcpKeepalive) DeepCopyInto

DeepCopyInto supports using ConnectionPoolSettings_TCPSettings_TcpKeepalive within kubernetes types, where deepcopy-gen is used.

func (*ConnectionPoolSettings_TCPSettings_TcpKeepalive) Descriptor deprecated

Deprecated: Use ConnectionPoolSettings_TCPSettings_TcpKeepalive.ProtoReflect.Descriptor instead.

func (*ConnectionPoolSettings_TCPSettings_TcpKeepalive) GetInterval

func (*ConnectionPoolSettings_TCPSettings_TcpKeepalive) GetProbes

func (*ConnectionPoolSettings_TCPSettings_TcpKeepalive) GetTime

func (*ConnectionPoolSettings_TCPSettings_TcpKeepalive) MarshalJSON

MarshalJSON is a custom marshaler for ConnectionPoolSettings_TCPSettings_TcpKeepalive

func (*ConnectionPoolSettings_TCPSettings_TcpKeepalive) ProtoMessage

func (*ConnectionPoolSettings_TCPSettings_TcpKeepalive) ProtoReflect

func (*ConnectionPoolSettings_TCPSettings_TcpKeepalive) Reset

func (*ConnectionPoolSettings_TCPSettings_TcpKeepalive) String

func (*ConnectionPoolSettings_TCPSettings_TcpKeepalive) UnmarshalJSON

UnmarshalJSON is a custom unmarshaler for ConnectionPoolSettings_TCPSettings_TcpKeepalive

type CorsPolicy

type CorsPolicy struct {

	// The list of origins that are allowed to perform CORS requests. The
	// content will be serialized into the Access-Control-Allow-Origin
	// header. Wildcard * will allow all origins.
	// $hide_from_docs
	//
	// Deprecated: Marked as deprecated in networking/v1alpha3/virtual_service.proto.
	AllowOrigin []string `protobuf:"bytes,1,rep,name=allow_origin,json=allowOrigin,proto3" json:"allow_origin,omitempty"`
	// String patterns that match allowed origins.
	// An origin is allowed if any of the string matchers match.
	// If a match is found, then the outgoing Access-Control-Allow-Origin would be set to the origin as provided by the client.
	AllowOrigins []*StringMatch `protobuf:"bytes,7,rep,name=allow_origins,json=allowOrigins,proto3" json:"allow_origins,omitempty"`
	// List of HTTP methods allowed to access the resource. The content will
	// be serialized into the Access-Control-Allow-Methods header.
	AllowMethods []string `protobuf:"bytes,2,rep,name=allow_methods,json=allowMethods,proto3" json:"allow_methods,omitempty"`
	// List of HTTP headers that can be used when requesting the
	// resource. Serialized to Access-Control-Allow-Headers header.
	AllowHeaders []string `protobuf:"bytes,3,rep,name=allow_headers,json=allowHeaders,proto3" json:"allow_headers,omitempty"`
	// A list of HTTP headers that the browsers are allowed to
	// access. Serialized into Access-Control-Expose-Headers header.
	ExposeHeaders []string `protobuf:"bytes,4,rep,name=expose_headers,json=exposeHeaders,proto3" json:"expose_headers,omitempty"`
	// Specifies how long the results of a preflight request can be
	// cached. Translates to the `Access-Control-Max-Age` header.
	MaxAge *duration.Duration `protobuf:"bytes,5,opt,name=max_age,json=maxAge,proto3" json:"max_age,omitempty"`
	// Indicates whether the caller is allowed to send the actual request
	// (not the preflight) using credentials. Translates to
	// `Access-Control-Allow-Credentials` header.
	AllowCredentials *wrappers.BoolValue `protobuf:"bytes,6,opt,name=allow_credentials,json=allowCredentials,proto3" json:"allow_credentials,omitempty"`
	// contains filtered or unexported fields
}

Describes the Cross-Origin Resource Sharing (CORS) policy, for a given service. Refer to [CORS](https://developer.mozilla.org/en-US/docs/Web/HTTP/Access_control_CORS) for further details about cross origin resource sharing. For example, the following rule restricts cross origin requests to those originating from example.com domain using HTTP POST/GET, and sets the `Access-Control-Allow-Credentials` header to false. In addition, it only exposes `X-Foo-bar` header and sets an expiry period of 1 day.

{{<tabset category-name="example">}} {{<tab name="v1alpha3" category-value="v1alpha3">}} ```yaml apiVersion: networking.istio.io/v1alpha3 kind: VirtualService metadata:

name: ratings-route

spec:

hosts:
- ratings.prod.svc.cluster.local
http:
- route:
  - destination:
      host: ratings.prod.svc.cluster.local
      subset: v1
  corsPolicy:
    allowOrigins:
    - exact: https://example.com
    allowMethods:
    - POST
    - GET
    allowCredentials: false
    allowHeaders:
    - X-Foo-Bar
    maxAge: "24h"

``` {{</tab>}}

{{<tab name="v1beta1" category-value="v1beta1">}} ```yaml apiVersion: networking.istio.io/v1beta1 kind: VirtualService metadata:

name: ratings-route

spec:

hosts:
- ratings.prod.svc.cluster.local
http:
- route:
  - destination:
      host: ratings.prod.svc.cluster.local
      subset: v1
  corsPolicy:
    allowOrigins:
    - exact: https://example.com
    allowMethods:
    - POST
    - GET
    allowCredentials: false
    allowHeaders:
    - X-Foo-Bar
    maxAge: "24h"

``` {{</tab>}} {{</tabset>}}

func (*CorsPolicy) DeepCopy

func (in *CorsPolicy) DeepCopy() *CorsPolicy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CorsPolicy. Required by controller-gen.

func (*CorsPolicy) DeepCopyInterface

func (in *CorsPolicy) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new CorsPolicy. Required by controller-gen.

func (*CorsPolicy) DeepCopyInto

func (in *CorsPolicy) DeepCopyInto(out *CorsPolicy)

DeepCopyInto supports using CorsPolicy within kubernetes types, where deepcopy-gen is used.

func (*CorsPolicy) Descriptor deprecated

func (*CorsPolicy) Descriptor() ([]byte, []int)

Deprecated: Use CorsPolicy.ProtoReflect.Descriptor instead.

func (*CorsPolicy) GetAllowCredentials

func (x *CorsPolicy) GetAllowCredentials() *wrappers.BoolValue

func (*CorsPolicy) GetAllowHeaders

func (x *CorsPolicy) GetAllowHeaders() []string

func (*CorsPolicy) GetAllowMethods

func (x *CorsPolicy) GetAllowMethods() []string

func (*CorsPolicy) GetAllowOrigin deprecated

func (x *CorsPolicy) GetAllowOrigin() []string

Deprecated: Marked as deprecated in networking/v1alpha3/virtual_service.proto.

func (*CorsPolicy) GetAllowOrigins

func (x *CorsPolicy) GetAllowOrigins() []*StringMatch

func (*CorsPolicy) GetExposeHeaders

func (x *CorsPolicy) GetExposeHeaders() []string

func (*CorsPolicy) GetMaxAge

func (x *CorsPolicy) GetMaxAge() *duration.Duration

func (*CorsPolicy) MarshalJSON

func (this *CorsPolicy) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for CorsPolicy

func (*CorsPolicy) ProtoMessage

func (*CorsPolicy) ProtoMessage()

func (*CorsPolicy) ProtoReflect

func (x *CorsPolicy) ProtoReflect() protoreflect.Message

func (*CorsPolicy) Reset

func (x *CorsPolicy) Reset()

func (*CorsPolicy) String

func (x *CorsPolicy) String() string

func (*CorsPolicy) UnmarshalJSON

func (this *CorsPolicy) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for CorsPolicy

type Delegate

type Delegate struct {

	// Name specifies the name of the delegate VirtualService.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Namespace specifies the namespace where the delegate VirtualService resides.
	// By default, it is same to the root's.
	Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"`
	// contains filtered or unexported fields
}

Describes the delegate VirtualService. The following routing rules forward the traffic to `/productpage` by a delegate VirtualService named `productpage`, forward the traffic to `/reviews` by a delegate VirtualService named `reviews`.

```yaml apiVersion: networking.istio.io/v1alpha3 kind: VirtualService metadata:

name: bookinfo

spec:

hosts:
- "bookinfo.com"
gateways:
- mygateway
http:
- match:
  - uri:
      prefix: "/productpage"
  delegate:
     name: productpage
     namespace: nsA
- match:
  - uri:
      prefix: "/reviews"
  delegate:
      name: reviews
      namespace: nsB

```

```yaml apiVersion: networking.istio.io/v1alpha3 kind: VirtualService metadata:

name: productpage
namespace: nsA

spec:

http:
- match:
   - uri:
      prefix: "/productpage/v1/"
  route:
  - destination:
      host: productpage-v1.nsA.svc.cluster.local
- route:
  - destination:
      host: productpage.nsA.svc.cluster.local

```

```yaml apiVersion: networking.istio.io/v1alpha3 kind: VirtualService metadata:

name: reviews
namespace: nsB

spec:

http:
- route:
  - destination:
      host: reviews.nsB.svc.cluster.local

```

func (*Delegate) DeepCopy

func (in *Delegate) DeepCopy() *Delegate

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Delegate. Required by controller-gen.

func (*Delegate) DeepCopyInterface

func (in *Delegate) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new Delegate. Required by controller-gen.

func (*Delegate) DeepCopyInto

func (in *Delegate) DeepCopyInto(out *Delegate)

DeepCopyInto supports using Delegate within kubernetes types, where deepcopy-gen is used.

func (*Delegate) Descriptor deprecated

func (*Delegate) Descriptor() ([]byte, []int)

Deprecated: Use Delegate.ProtoReflect.Descriptor instead.

func (*Delegate) GetName

func (x *Delegate) GetName() string

func (*Delegate) GetNamespace

func (x *Delegate) GetNamespace() string

func (*Delegate) MarshalJSON

func (this *Delegate) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for Delegate

func (*Delegate) ProtoMessage

func (*Delegate) ProtoMessage()

func (*Delegate) ProtoReflect

func (x *Delegate) ProtoReflect() protoreflect.Message

func (*Delegate) Reset

func (x *Delegate) Reset()

func (*Delegate) String

func (x *Delegate) String() string

func (*Delegate) UnmarshalJSON

func (this *Delegate) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for Delegate

type Destination

type Destination struct {

	// The name of a service from the service registry. Service
	// names are looked up from the platform's service registry (e.g.,
	// Kubernetes services, Consul services, etc.) and from the hosts
	// declared by [ServiceEntry](https://istio.io/docs/reference/config/networking/service-entry/#ServiceEntry). Traffic forwarded to
	// destinations that are not found in either of the two, will be dropped.
	//
	// *Note for Kubernetes users*: When short names are used (e.g. "reviews"
	// instead of "reviews.default.svc.cluster.local"), Istio will interpret
	// the short name based on the namespace of the rule, not the service. A
	// rule in the "default" namespace containing a host "reviews will be
	// interpreted as "reviews.default.svc.cluster.local", irrespective of
	// the actual namespace associated with the reviews service. To avoid
	// potential misconfiguration, it is recommended to always use fully
	// qualified domain names over short names.
	Host string `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"`
	// The name of a subset within the service. Applicable only to services
	// within the mesh. The subset must be defined in a corresponding
	// DestinationRule.
	Subset string `protobuf:"bytes,2,opt,name=subset,proto3" json:"subset,omitempty"`
	// Specifies the port on the host that is being addressed. If a service
	// exposes only a single port it is not required to explicitly select the
	// port.
	Port *PortSelector `protobuf:"bytes,3,opt,name=port,proto3" json:"port,omitempty"`
	// contains filtered or unexported fields
}

Destination indicates the network addressable service to which the request/connection will be sent after processing a routing rule. The destination.host should unambiguously refer to a service in the service registry. Istio's service registry is composed of all the services found in the platform's service registry (e.g., Kubernetes services, Consul services), as well as services declared through the ServiceEntry(https://istio.io/docs/reference/config/networking/service-entry/#ServiceEntry) resource.

*Note for Kubernetes users*: When short names are used (e.g. "reviews" instead of "reviews.default.svc.cluster.local"), Istio will interpret the short name based on the namespace of the rule, not the service. A rule in the "default" namespace containing a host "reviews will be interpreted as "reviews.default.svc.cluster.local", irrespective of the actual namespace associated with the reviews service. _To avoid potential misconfigurations, it is recommended to always use fully qualified domain names over short names._

The following Kubernetes example routes all traffic by default to pods of the reviews service with label "version: v1" (i.e., subset v1), and some to subset v2, in a Kubernetes environment.

{{<tabset category-name="example">}} {{<tab name="v1alpha3" category-value="v1alpha3">}} ```yaml apiVersion: networking.istio.io/v1alpha3 kind: VirtualService metadata:

name: reviews-route
namespace: foo

spec:

hosts:
- reviews # interpreted as reviews.foo.svc.cluster.local
http:
- match:
  - uri:
      prefix: "/wpcatalog"
  - uri:
      prefix: "/consumercatalog"
  rewrite:
    uri: "/newcatalog"
  route:
  - destination:
      host: reviews # interpreted as reviews.foo.svc.cluster.local
      subset: v2
- route:
  - destination:
      host: reviews # interpreted as reviews.foo.svc.cluster.local
      subset: v1

``` {{</tab>}}

{{<tab name="v1beta1" category-value="v1beta1">}} ```yaml apiVersion: networking.istio.io/v1beta1 kind: VirtualService metadata:

name: reviews-route
namespace: foo

spec:

hosts:
- reviews # interpreted as reviews.foo.svc.cluster.local
http:
- match:
  - uri:
      prefix: "/wpcatalog"
  - uri:
      prefix: "/consumercatalog"
  rewrite:
    uri: "/newcatalog"
  route:
  - destination:
      host: reviews # interpreted as reviews.foo.svc.cluster.local
      subset: v2
- route:
  - destination:
      host: reviews # interpreted as reviews.foo.svc.cluster.local
      subset: v1

``` {{</tab>}} {{</tabset>}}

And the associated DestinationRule

{{<tabset category-name="example">}} {{<tab name="v1alpha3" category-value="v1alpha3">}} ```yaml apiVersion: networking.istio.io/v1alpha3 kind: DestinationRule metadata:

name: reviews-destination
namespace: foo

spec:

host: reviews # interpreted as reviews.foo.svc.cluster.local
subsets:
- name: v1
  labels:
    version: v1
- name: v2
  labels:
    version: v2

``` {{</tab>}}

{{<tab name="v1beta1" category-value="v1beta1">}} ```yaml apiVersion: networking.istio.io/v1beta1 kind: DestinationRule metadata:

name: reviews-destination
namespace: foo

spec:

host: reviews # interpreted as reviews.foo.svc.cluster.local
subsets:
- name: v1
  labels:
    version: v1
- name: v2
  labels:
    version: v2

``` {{</tab>}} {{</tabset>}}

The following VirtualService sets a timeout of 5s for all calls to productpage.prod.svc.cluster.local service in Kubernetes. Notice that there are no subsets defined in this rule. Istio will fetch all instances of productpage.prod.svc.cluster.local service from the service registry and populate the sidecar's load balancing pool. Also, notice that this rule is set in the istio-system namespace but uses the fully qualified domain name of the productpage service, productpage.prod.svc.cluster.local. Therefore the rule's namespace does not have an impact in resolving the name of the productpage service.

{{<tabset category-name="example">}} {{<tab name="v1alpha3" category-value="v1alpha3">}} ```yaml apiVersion: networking.istio.io/v1alpha3 kind: VirtualService metadata:

name: my-productpage-rule
namespace: istio-system

spec:

hosts:
- productpage.prod.svc.cluster.local # ignores rule namespace
http:
- timeout: 5s
  route:
  - destination:
      host: productpage.prod.svc.cluster.local

``` {{</tab>}}

{{<tab name="v1beta1" category-value="v1beta1">}} ```yaml apiVersion: networking.istio.io/v1beta1 kind: VirtualService metadata:

name: my-productpage-rule
namespace: istio-system

spec:

hosts:
- productpage.prod.svc.cluster.local # ignores rule namespace
http:
- timeout: 5s
  route:
  - destination:
      host: productpage.prod.svc.cluster.local

``` {{</tab>}} {{</tabset>}}

To control routing for traffic bound to services outside the mesh, external services must first be added to Istio's internal service registry using the ServiceEntry resource. VirtualServices can then be defined to control traffic bound to these external services. For example, the following rules define a Service for wikipedia.org and set a timeout of 5s for HTTP requests.

{{<tabset category-name="example">}} {{<tab name="v1alpha3" category-value="v1alpha3">}} ```yaml apiVersion: networking.istio.io/v1alpha3 kind: ServiceEntry metadata:

name: external-svc-wikipedia

spec:

hosts:
- wikipedia.org
location: MESH_EXTERNAL
ports:
- number: 80
  name: example-http
  protocol: HTTP
resolution: DNS

--- apiVersion: networking.istio.io/v1alpha3 kind: VirtualService metadata:

name: my-wiki-rule

spec:

hosts:
- wikipedia.org
http:
- timeout: 5s
  route:
  - destination:
      host: wikipedia.org

``` {{</tab>}}

{{<tab name="v1beta1" category-value="v1beta1">}} ```yaml apiVersion: networking.istio.io/v1beta1 kind: ServiceEntry metadata:

name: external-svc-wikipedia

spec:

hosts:
- wikipedia.org
location: MESH_EXTERNAL
ports:
- number: 80
  name: example-http
  protocol: HTTP
resolution: DNS

--- apiVersion: networking.istio.io/v1beta1 kind: VirtualService metadata:

name: my-wiki-rule

spec:

hosts:
- wikipedia.org
http:
- timeout: 5s
  route:
  - destination:
      host: wikipedia.org

``` {{</tab>}} {{</tabset>}}

func (*Destination) DeepCopy

func (in *Destination) DeepCopy() *Destination

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Destination. Required by controller-gen.

func (*Destination) DeepCopyInterface

func (in *Destination) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new Destination. Required by controller-gen.

func (*Destination) DeepCopyInto

func (in *Destination) DeepCopyInto(out *Destination)

DeepCopyInto supports using Destination within kubernetes types, where deepcopy-gen is used.

func (*Destination) Descriptor deprecated

func (*Destination) Descriptor() ([]byte, []int)

Deprecated: Use Destination.ProtoReflect.Descriptor instead.

func (*Destination) GetHost

func (x *Destination) GetHost() string

func (*Destination) GetPort

func (x *Destination) GetPort() *PortSelector

func (*Destination) GetSubset

func (x *Destination) GetSubset() string

func (*Destination) MarshalJSON

func (this *Destination) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for Destination

func (*Destination) ProtoMessage

func (*Destination) ProtoMessage()

func (*Destination) ProtoReflect

func (x *Destination) ProtoReflect() protoreflect.Message

func (*Destination) Reset

func (x *Destination) Reset()

func (*Destination) String

func (x *Destination) String() string

func (*Destination) UnmarshalJSON

func (this *Destination) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for Destination

type DestinationRule

type DestinationRule struct {

	// The name of a service from the service registry. Service
	// names are looked up from the platform's service registry (e.g.,
	// Kubernetes services, Consul services, etc.) and from the hosts
	// declared by [ServiceEntries](https://istio.io/docs/reference/config/networking/service-entry/#ServiceEntry). Rules defined for
	// services that do not exist in the service registry will be ignored.
	//
	// *Note for Kubernetes users*: When short names are used (e.g. "reviews"
	// instead of "reviews.default.svc.cluster.local"), Istio will interpret
	// the short name based on the namespace of the rule, not the service. A
	// rule in the "default" namespace containing a host "reviews" will be
	// interpreted as "reviews.default.svc.cluster.local", irrespective of
	// the actual namespace associated with the reviews service. _To avoid
	// potential misconfigurations, it is recommended to always use fully
	// qualified domain names over short names._
	//
	// Note that the host field applies to both HTTP and TCP services.
	Host string `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"`
	// Traffic policies to apply (load balancing policy, connection pool
	// sizes, outlier detection).
	TrafficPolicy *TrafficPolicy `protobuf:"bytes,2,opt,name=traffic_policy,json=trafficPolicy,proto3" json:"traffic_policy,omitempty"`
	// One or more named sets that represent individual versions of a
	// service. Traffic policies can be overridden at subset level.
	Subsets []*Subset `protobuf:"bytes,3,rep,name=subsets,proto3" json:"subsets,omitempty"`
	// A list of namespaces to which this destination rule is exported.
	// The resolution of a destination rule to apply to a service occurs in the
	// context of a hierarchy of namespaces. Exporting a destination rule allows
	// it to be included in the resolution hierarchy for services in
	// other namespaces. This feature provides a mechanism for service owners
	// and mesh administrators to control the visibility of destination rules
	// across namespace boundaries.
	//
	// If no namespaces are specified then the destination rule is exported to all
	// namespaces by default.
	//
	// The value "." is reserved and defines an export to the same namespace that
	// the destination rule is declared in. Similarly, the value "*" is reserved and
	// defines an export to all namespaces.
	ExportTo []string `protobuf:"bytes,4,rep,name=export_to,json=exportTo,proto3" json:"export_to,omitempty"`
	// Criteria used to select the specific set of pods/VMs on which this
	// `DestinationRule` configuration should be applied. If specified, the `DestinationRule`
	// configuration will be applied only to the workload instances matching the workload selector
	// label in the same namespace. Workload selectors do not apply across namespace boundaries.
	// If omitted, the `DestinationRule` falls back to its default behavior.
	// For example, if specific sidecars need to have egress TLS settings for services outside
	// of the mesh, instead of every sidecar in the mesh needing to have the
	// configuration (which is the default behaviour), a workload selector can be specified.
	WorkloadSelector *v1beta1.WorkloadSelector `protobuf:"bytes,5,opt,name=workload_selector,json=workloadSelector,proto3" json:"workload_selector,omitempty"`
	// contains filtered or unexported fields
}

DestinationRule defines policies that apply to traffic intended for a service after routing has occurred.

<!-- crd generation tags +cue-gen:DestinationRule:groupName:networking.istio.io +cue-gen:DestinationRule:version:v1alpha3 +cue-gen:DestinationRule:storageVersion +cue-gen:DestinationRule:annotations:helm.sh/resource-policy=keep +cue-gen:DestinationRule:labels:app=istio-pilot,chart=istio,heritage=Tiller,release=istio +cue-gen:DestinationRule:subresource:status +cue-gen:DestinationRule:scope:Namespaced +cue-gen:DestinationRule:resource:categories=istio-io,networking-istio-io,shortNames=dr +cue-gen:DestinationRule:printerColumn:name=Host,type=string,JSONPath=.spec.host,description="The name of a service from the service registry" +cue-gen:DestinationRule:printerColumn:name=Age,type=date,JSONPath=.metadata.creationTimestamp,description="CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata" +cue-gen:DestinationRule:preserveUnknownFields:false -->

<!-- go code generation tags +kubetype-gen +kubetype-gen:groupVersion=networking.istio.io/v1alpha3 +genclient +k8s:deepcopy-gen=true --> <!-- istio code generation tags +istio.io/sync-start -->

func (*DestinationRule) DeepCopy

func (in *DestinationRule) DeepCopy() *DestinationRule

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DestinationRule. Required by controller-gen.

func (*DestinationRule) DeepCopyInterface

func (in *DestinationRule) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new DestinationRule. Required by controller-gen.

func (*DestinationRule) DeepCopyInto

func (in *DestinationRule) DeepCopyInto(out *DestinationRule)

DeepCopyInto supports using DestinationRule within kubernetes types, where deepcopy-gen is used.

func (*DestinationRule) Descriptor deprecated

func (*DestinationRule) Descriptor() ([]byte, []int)

Deprecated: Use DestinationRule.ProtoReflect.Descriptor instead.

func (*DestinationRule) GetExportTo

func (x *DestinationRule) GetExportTo() []string

func (*DestinationRule) GetHost

func (x *DestinationRule) GetHost() string

func (*DestinationRule) GetSubsets

func (x *DestinationRule) GetSubsets() []*Subset

func (*DestinationRule) GetTrafficPolicy

func (x *DestinationRule) GetTrafficPolicy() *TrafficPolicy

func (*DestinationRule) GetWorkloadSelector

func (x *DestinationRule) GetWorkloadSelector() *v1beta1.WorkloadSelector

func (*DestinationRule) MarshalJSON

func (this *DestinationRule) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for DestinationRule

func (*DestinationRule) ProtoMessage

func (*DestinationRule) ProtoMessage()

func (*DestinationRule) ProtoReflect

func (x *DestinationRule) ProtoReflect() protoreflect.Message

func (*DestinationRule) Reset

func (x *DestinationRule) Reset()

func (*DestinationRule) String

func (x *DestinationRule) String() string

func (*DestinationRule) UnmarshalJSON

func (this *DestinationRule) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for DestinationRule

type EnvoyFilter

type EnvoyFilter struct {

	// Criteria used to select the specific set of pods/VMs on which
	// this patch configuration should be applied. If omitted, the set
	// of patches in this configuration will be applied to all workload
	// instances in the same namespace. If the `EnvoyFilter` is present
	// in the config root namespace, it will be applied to all applicable
	// workloads in any namespace.
	WorkloadSelector *WorkloadSelector `protobuf:"bytes,3,opt,name=workload_selector,json=workloadSelector,proto3" json:"workload_selector,omitempty"`
	// One or more patches with match conditions.
	ConfigPatches []*EnvoyFilter_EnvoyConfigObjectPatch `protobuf:"bytes,4,rep,name=config_patches,json=configPatches,proto3" json:"config_patches,omitempty"`
	// Priority defines the order in which patch sets are applied within a context.
	// When one patch depends on another patch, the order of patch application
	// is significant. The API provides two primary ways to order patches.
	// Patch sets in the root namespace are applied before the patch sets in the
	// workload namespace. Patches within a patch set are processed in the order
	// that they appear in the `configPatches` list.
	//
	// The default value for priority is 0 and the range is [ min-int32, max-int32 ].
	// A patch set with a negative priority is processed before the default. A patch
	// set with a positive priority is processed after the default.
	//
	// It is recommended to start with priority values that are multiples of 10
	// to leave room for further insertion.
	//
	// Patch sets are sorted in the following ascending key order:
	// priority, creation time, fully qualified resource name.
	Priority int32 `protobuf:"varint,5,opt,name=priority,proto3" json:"priority,omitempty"`
	// contains filtered or unexported fields
}

EnvoyFilter provides a mechanism to customize the Envoy configuration generated by Istio Pilot.

<!-- crd generation tags +cue-gen:EnvoyFilter:groupName:networking.istio.io +cue-gen:EnvoyFilter:version:v1alpha3 +cue-gen:EnvoyFilter:storageVersion +cue-gen:EnvoyFilter:annotations:helm.sh/resource-policy=keep +cue-gen:EnvoyFilter:labels:app=istio-pilot,chart=istio,heritage=Tiller,release=istio +cue-gen:EnvoyFilter:subresource:status +cue-gen:EnvoyFilter:scope:Namespaced +cue-gen:EnvoyFilter:resource:categories=istio-io,networking-istio-io +cue-gen:EnvoyFilter:preserveUnknownFields:configPatches.[].patch.value -->

<!-- go code generation tags +kubetype-gen +kubetype-gen:groupVersion=networking.istio.io/v1alpha3 +genclient +k8s:deepcopy-gen=true -->

func (*EnvoyFilter) DeepCopy

func (in *EnvoyFilter) DeepCopy() *EnvoyFilter

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EnvoyFilter. Required by controller-gen.

func (*EnvoyFilter) DeepCopyInterface

func (in *EnvoyFilter) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new EnvoyFilter. Required by controller-gen.

func (*EnvoyFilter) DeepCopyInto

func (in *EnvoyFilter) DeepCopyInto(out *EnvoyFilter)

DeepCopyInto supports using EnvoyFilter within kubernetes types, where deepcopy-gen is used.

func (*EnvoyFilter) Descriptor deprecated

func (*EnvoyFilter) Descriptor() ([]byte, []int)

Deprecated: Use EnvoyFilter.ProtoReflect.Descriptor instead.

func (*EnvoyFilter) GetConfigPatches

func (x *EnvoyFilter) GetConfigPatches() []*EnvoyFilter_EnvoyConfigObjectPatch

func (*EnvoyFilter) GetPriority

func (x *EnvoyFilter) GetPriority() int32

func (*EnvoyFilter) GetWorkloadSelector

func (x *EnvoyFilter) GetWorkloadSelector() *WorkloadSelector

func (*EnvoyFilter) MarshalJSON

func (this *EnvoyFilter) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for EnvoyFilter

func (*EnvoyFilter) ProtoMessage

func (*EnvoyFilter) ProtoMessage()

func (*EnvoyFilter) ProtoReflect

func (x *EnvoyFilter) ProtoReflect() protoreflect.Message

func (*EnvoyFilter) Reset

func (x *EnvoyFilter) Reset()

func (*EnvoyFilter) String

func (x *EnvoyFilter) String() string

func (*EnvoyFilter) UnmarshalJSON

func (this *EnvoyFilter) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for EnvoyFilter

type EnvoyFilter_ApplyTo

type EnvoyFilter_ApplyTo int32

`ApplyTo` specifies where in the Envoy configuration, the given patch should be applied.

const (
	EnvoyFilter_INVALID EnvoyFilter_ApplyTo = 0
	// Applies the patch to the listener.
	EnvoyFilter_LISTENER EnvoyFilter_ApplyTo = 1
	// Applies the patch to the filter chain.
	EnvoyFilter_FILTER_CHAIN EnvoyFilter_ApplyTo = 2
	// Applies the patch to the network filter chain, to modify an
	// existing filter or add a new filter.
	EnvoyFilter_NETWORK_FILTER EnvoyFilter_ApplyTo = 3
	// Applies the patch to the HTTP filter chain in the http
	// connection manager, to modify an existing filter or add a new
	// filter.
	EnvoyFilter_HTTP_FILTER EnvoyFilter_ApplyTo = 4
	// Applies the patch to the Route configuration (rds output)
	// inside a HTTP connection manager. This does not apply to the
	// virtual host. Currently, only `MERGE` operation is allowed on the
	// route configuration objects.
	EnvoyFilter_ROUTE_CONFIGURATION EnvoyFilter_ApplyTo = 5
	// Applies the patch to a virtual host inside a route configuration.
	EnvoyFilter_VIRTUAL_HOST EnvoyFilter_ApplyTo = 6
	// Applies the patch to a route object inside the matched virtual
	// host in a route configuration.
	EnvoyFilter_HTTP_ROUTE EnvoyFilter_ApplyTo = 7
	// Applies the patch to a cluster in a CDS output. Also used to add new clusters.
	EnvoyFilter_CLUSTER EnvoyFilter_ApplyTo = 8
	// Applies the patch to or adds an extension config in ECDS output. Note that ECDS
	// is only supported by HTTP filters.
	EnvoyFilter_EXTENSION_CONFIG EnvoyFilter_ApplyTo = 9
	// DEPRECATED. Applies the patch to bootstrap configuration.
	EnvoyFilter_BOOTSTRAP EnvoyFilter_ApplyTo = 10
	// Applies the patch to the listener filter.
	EnvoyFilter_LISTENER_FILTER EnvoyFilter_ApplyTo = 11
)

func (EnvoyFilter_ApplyTo) Descriptor

func (EnvoyFilter_ApplyTo) Enum

func (EnvoyFilter_ApplyTo) EnumDescriptor deprecated

func (EnvoyFilter_ApplyTo) EnumDescriptor() ([]byte, []int)

Deprecated: Use EnvoyFilter_ApplyTo.Descriptor instead.

func (EnvoyFilter_ApplyTo) Number

func (EnvoyFilter_ApplyTo) String

func (x EnvoyFilter_ApplyTo) String() string

func (EnvoyFilter_ApplyTo) Type

type EnvoyFilter_ClusterMatch

type EnvoyFilter_ClusterMatch struct {

	// The service port for which this cluster was generated.  If
	// omitted, applies to clusters for any port.
	// **Note:** for inbound cluster, it is the service target port.
	PortNumber uint32 `protobuf:"varint,1,opt,name=port_number,json=portNumber,proto3" json:"port_number,omitempty"`
	// The fully qualified service name for this cluster. If omitted,
	// applies to clusters for any service. For services defined
	// through service entries, the service name is same as the hosts
	// defined in the service entry.
	// **Note:** for inbound cluster, this is ignored.
	Service string `protobuf:"bytes,2,opt,name=service,proto3" json:"service,omitempty"`
	// The subset associated with the service. If omitted, applies to
	// clusters for any subset of a service.
	Subset string `protobuf:"bytes,3,opt,name=subset,proto3" json:"subset,omitempty"`
	// The exact name of the cluster to match. To match a specific
	// cluster by name, such as the internally generated `Passthrough`
	// cluster, leave all fields in clusterMatch empty, except the
	// name.
	Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

Conditions specified in `ClusterMatch` must be met for the patch to be applied to a cluster.

func (*EnvoyFilter_ClusterMatch) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EnvoyFilter_ClusterMatch. Required by controller-gen.

func (*EnvoyFilter_ClusterMatch) DeepCopyInterface

func (in *EnvoyFilter_ClusterMatch) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new EnvoyFilter_ClusterMatch. Required by controller-gen.

func (*EnvoyFilter_ClusterMatch) DeepCopyInto

func (in *EnvoyFilter_ClusterMatch) DeepCopyInto(out *EnvoyFilter_ClusterMatch)

DeepCopyInto supports using EnvoyFilter_ClusterMatch within kubernetes types, where deepcopy-gen is used.

func (*EnvoyFilter_ClusterMatch) Descriptor deprecated

func (*EnvoyFilter_ClusterMatch) Descriptor() ([]byte, []int)

Deprecated: Use EnvoyFilter_ClusterMatch.ProtoReflect.Descriptor instead.

func (*EnvoyFilter_ClusterMatch) GetName

func (x *EnvoyFilter_ClusterMatch) GetName() string

func (*EnvoyFilter_ClusterMatch) GetPortNumber

func (x *EnvoyFilter_ClusterMatch) GetPortNumber() uint32

func (*EnvoyFilter_ClusterMatch) GetService

func (x *EnvoyFilter_ClusterMatch) GetService() string

func (*EnvoyFilter_ClusterMatch) GetSubset

func (x *EnvoyFilter_ClusterMatch) GetSubset() string

func (*EnvoyFilter_ClusterMatch) MarshalJSON

func (this *EnvoyFilter_ClusterMatch) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for EnvoyFilter_ClusterMatch

func (*EnvoyFilter_ClusterMatch) ProtoMessage

func (*EnvoyFilter_ClusterMatch) ProtoMessage()

func (*EnvoyFilter_ClusterMatch) ProtoReflect

func (x *EnvoyFilter_ClusterMatch) ProtoReflect() protoreflect.Message

func (*EnvoyFilter_ClusterMatch) Reset

func (x *EnvoyFilter_ClusterMatch) Reset()

func (*EnvoyFilter_ClusterMatch) String

func (x *EnvoyFilter_ClusterMatch) String() string

func (*EnvoyFilter_ClusterMatch) UnmarshalJSON

func (this *EnvoyFilter_ClusterMatch) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for EnvoyFilter_ClusterMatch

type EnvoyFilter_EnvoyConfigObjectMatch

type EnvoyFilter_EnvoyConfigObjectMatch struct {

	// The specific config generation context to match on. Istio Pilot
	// generates envoy configuration in the context of a gateway,
	// inbound traffic to sidecar and outbound traffic from sidecar.
	Context EnvoyFilter_PatchContext `protobuf:"varint,1,opt,name=context,proto3,enum=istio.networking.v1alpha3.EnvoyFilter_PatchContext" json:"context,omitempty"`
	// Match on properties associated with a proxy.
	Proxy *EnvoyFilter_ProxyMatch `protobuf:"bytes,2,opt,name=proxy,proto3" json:"proxy,omitempty"`
	// Types that are assignable to ObjectTypes:
	//
	//	*EnvoyFilter_EnvoyConfigObjectMatch_Listener
	//	*EnvoyFilter_EnvoyConfigObjectMatch_RouteConfiguration
	//	*EnvoyFilter_EnvoyConfigObjectMatch_Cluster
	ObjectTypes isEnvoyFilter_EnvoyConfigObjectMatch_ObjectTypes `protobuf_oneof:"object_types"`
	// contains filtered or unexported fields
}

One or more match conditions to be met before a patch is applied to the generated configuration for a given proxy.

func (*EnvoyFilter_EnvoyConfigObjectMatch) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EnvoyFilter_EnvoyConfigObjectMatch. Required by controller-gen.

func (*EnvoyFilter_EnvoyConfigObjectMatch) DeepCopyInterface

func (in *EnvoyFilter_EnvoyConfigObjectMatch) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new EnvoyFilter_EnvoyConfigObjectMatch. Required by controller-gen.

func (*EnvoyFilter_EnvoyConfigObjectMatch) DeepCopyInto

DeepCopyInto supports using EnvoyFilter_EnvoyConfigObjectMatch within kubernetes types, where deepcopy-gen is used.

func (*EnvoyFilter_EnvoyConfigObjectMatch) Descriptor deprecated

func (*EnvoyFilter_EnvoyConfigObjectMatch) Descriptor() ([]byte, []int)

Deprecated: Use EnvoyFilter_EnvoyConfigObjectMatch.ProtoReflect.Descriptor instead.

func (*EnvoyFilter_EnvoyConfigObjectMatch) GetCluster

func (*EnvoyFilter_EnvoyConfigObjectMatch) GetContext

func (*EnvoyFilter_EnvoyConfigObjectMatch) GetListener

func (*EnvoyFilter_EnvoyConfigObjectMatch) GetObjectTypes

func (m *EnvoyFilter_EnvoyConfigObjectMatch) GetObjectTypes() isEnvoyFilter_EnvoyConfigObjectMatch_ObjectTypes

func (*EnvoyFilter_EnvoyConfigObjectMatch) GetProxy

func (*EnvoyFilter_EnvoyConfigObjectMatch) GetRouteConfiguration

func (*EnvoyFilter_EnvoyConfigObjectMatch) MarshalJSON

func (this *EnvoyFilter_EnvoyConfigObjectMatch) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for EnvoyFilter_EnvoyConfigObjectMatch

func (*EnvoyFilter_EnvoyConfigObjectMatch) ProtoMessage

func (*EnvoyFilter_EnvoyConfigObjectMatch) ProtoMessage()

func (*EnvoyFilter_EnvoyConfigObjectMatch) ProtoReflect

func (*EnvoyFilter_EnvoyConfigObjectMatch) Reset

func (*EnvoyFilter_EnvoyConfigObjectMatch) String

func (*EnvoyFilter_EnvoyConfigObjectMatch) UnmarshalJSON

func (this *EnvoyFilter_EnvoyConfigObjectMatch) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for EnvoyFilter_EnvoyConfigObjectMatch

type EnvoyFilter_EnvoyConfigObjectMatch_Cluster

type EnvoyFilter_EnvoyConfigObjectMatch_Cluster struct {
	// Match on envoy cluster attributes.
	Cluster *EnvoyFilter_ClusterMatch `protobuf:"bytes,5,opt,name=cluster,proto3,oneof"`
}

type EnvoyFilter_EnvoyConfigObjectMatch_Listener

type EnvoyFilter_EnvoyConfigObjectMatch_Listener struct {
	// Match on envoy listener attributes.
	Listener *EnvoyFilter_ListenerMatch `protobuf:"bytes,3,opt,name=listener,proto3,oneof"`
}

type EnvoyFilter_EnvoyConfigObjectMatch_RouteConfiguration

type EnvoyFilter_EnvoyConfigObjectMatch_RouteConfiguration struct {
	// Match on envoy HTTP route configuration attributes.
	RouteConfiguration *EnvoyFilter_RouteConfigurationMatch `protobuf:"bytes,4,opt,name=route_configuration,json=routeConfiguration,proto3,oneof"`
}

type EnvoyFilter_EnvoyConfigObjectPatch

type EnvoyFilter_EnvoyConfigObjectPatch struct {

	// Specifies where in the Envoy configuration, the patch should be
	// applied.  The match is expected to select the appropriate
	// object based on applyTo.  For example, an applyTo with
	// `HTTP_FILTER` is expected to have a match condition on the
	// listeners, with a network filter selection on
	// `envoy.filters.network.http_connection_manager` and a sub filter selection on the
	// HTTP filter relative to which the insertion should be
	// performed. Similarly, an applyTo on `CLUSTER` should have a match
	// (if provided) on the cluster and not on a listener.
	ApplyTo EnvoyFilter_ApplyTo `` /* 134-byte string literal not displayed */
	// Match on listener/route configuration/cluster.
	Match *EnvoyFilter_EnvoyConfigObjectMatch `protobuf:"bytes,2,opt,name=match,proto3" json:"match,omitempty"`
	// The patch to apply along with the operation.
	Patch *EnvoyFilter_Patch `protobuf:"bytes,3,opt,name=patch,proto3" json:"patch,omitempty"`
	// contains filtered or unexported fields
}

Changes to be made to various envoy config objects.

func (*EnvoyFilter_EnvoyConfigObjectPatch) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EnvoyFilter_EnvoyConfigObjectPatch. Required by controller-gen.

func (*EnvoyFilter_EnvoyConfigObjectPatch) DeepCopyInterface

func (in *EnvoyFilter_EnvoyConfigObjectPatch) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new EnvoyFilter_EnvoyConfigObjectPatch. Required by controller-gen.

func (*EnvoyFilter_EnvoyConfigObjectPatch) DeepCopyInto

DeepCopyInto supports using EnvoyFilter_EnvoyConfigObjectPatch within kubernetes types, where deepcopy-gen is used.

func (*EnvoyFilter_EnvoyConfigObjectPatch) Descriptor deprecated

func (*EnvoyFilter_EnvoyConfigObjectPatch) Descriptor() ([]byte, []int)

Deprecated: Use EnvoyFilter_EnvoyConfigObjectPatch.ProtoReflect.Descriptor instead.

func (*EnvoyFilter_EnvoyConfigObjectPatch) GetApplyTo

func (*EnvoyFilter_EnvoyConfigObjectPatch) GetMatch

func (*EnvoyFilter_EnvoyConfigObjectPatch) GetPatch

func (*EnvoyFilter_EnvoyConfigObjectPatch) MarshalJSON

func (this *EnvoyFilter_EnvoyConfigObjectPatch) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for EnvoyFilter_EnvoyConfigObjectPatch

func (*EnvoyFilter_EnvoyConfigObjectPatch) ProtoMessage

func (*EnvoyFilter_EnvoyConfigObjectPatch) ProtoMessage()

func (*EnvoyFilter_EnvoyConfigObjectPatch) ProtoReflect

func (*EnvoyFilter_EnvoyConfigObjectPatch) Reset

func (*EnvoyFilter_EnvoyConfigObjectPatch) String

func (*EnvoyFilter_EnvoyConfigObjectPatch) UnmarshalJSON

func (this *EnvoyFilter_EnvoyConfigObjectPatch) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for EnvoyFilter_EnvoyConfigObjectPatch

type EnvoyFilter_ListenerMatch

type EnvoyFilter_ListenerMatch struct {

	// The service port/gateway port to which traffic is being
	// sent/received. If not specified, matches all listeners. Even though
	// inbound listeners are generated for the instance/pod ports, only
	// service ports should be used to match listeners.
	PortNumber uint32 `protobuf:"varint,1,opt,name=port_number,json=portNumber,proto3" json:"port_number,omitempty"`
	// Instead of using specific port numbers, a set of ports matching
	// a given service's port name can be selected. Matching is case
	// insensitive.
	// Not implemented.
	// $hide_from_docs
	PortName string `protobuf:"bytes,2,opt,name=port_name,json=portName,proto3" json:"port_name,omitempty"`
	// Match a specific filter chain in a listener. If specified, the
	// patch will be applied to the filter chain (and a specific
	// filter if specified) and not to other filter chains in the
	// listener.
	FilterChain *EnvoyFilter_ListenerMatch_FilterChainMatch `protobuf:"bytes,3,opt,name=filter_chain,json=filterChain,proto3" json:"filter_chain,omitempty"`
	// Match a specific listener filter. If specified, the
	// patch will be applied to the listener filter.
	ListenerFilter string `protobuf:"bytes,5,opt,name=listener_filter,json=listenerFilter,proto3" json:"listener_filter,omitempty"`
	// Match a specific listener by its name. The listeners generated
	// by Pilot are typically named as IP:Port.
	Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

Conditions specified in a listener match must be met for the patch to be applied to a specific listener across all filter chains, or a specific filter chain inside the listener.

func (*EnvoyFilter_ListenerMatch) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EnvoyFilter_ListenerMatch. Required by controller-gen.

func (*EnvoyFilter_ListenerMatch) DeepCopyInterface

func (in *EnvoyFilter_ListenerMatch) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new EnvoyFilter_ListenerMatch. Required by controller-gen.

func (*EnvoyFilter_ListenerMatch) DeepCopyInto

DeepCopyInto supports using EnvoyFilter_ListenerMatch within kubernetes types, where deepcopy-gen is used.

func (*EnvoyFilter_ListenerMatch) Descriptor deprecated

func (*EnvoyFilter_ListenerMatch) Descriptor() ([]byte, []int)

Deprecated: Use EnvoyFilter_ListenerMatch.ProtoReflect.Descriptor instead.

func (*EnvoyFilter_ListenerMatch) GetFilterChain

func (*EnvoyFilter_ListenerMatch) GetListenerFilter

func (x *EnvoyFilter_ListenerMatch) GetListenerFilter() string

func (*EnvoyFilter_ListenerMatch) GetName

func (x *EnvoyFilter_ListenerMatch) GetName() string

func (*EnvoyFilter_ListenerMatch) GetPortName

func (x *EnvoyFilter_ListenerMatch) GetPortName() string

func (*EnvoyFilter_ListenerMatch) GetPortNumber

func (x *EnvoyFilter_ListenerMatch) GetPortNumber() uint32

func (*EnvoyFilter_ListenerMatch) MarshalJSON

func (this *EnvoyFilter_ListenerMatch) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for EnvoyFilter_ListenerMatch

func (*EnvoyFilter_ListenerMatch) ProtoMessage

func (*EnvoyFilter_ListenerMatch) ProtoMessage()

func (*EnvoyFilter_ListenerMatch) ProtoReflect

func (*EnvoyFilter_ListenerMatch) Reset

func (x *EnvoyFilter_ListenerMatch) Reset()

func (*EnvoyFilter_ListenerMatch) String

func (x *EnvoyFilter_ListenerMatch) String() string

func (*EnvoyFilter_ListenerMatch) UnmarshalJSON

func (this *EnvoyFilter_ListenerMatch) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for EnvoyFilter_ListenerMatch

type EnvoyFilter_ListenerMatch_FilterChainMatch

type EnvoyFilter_ListenerMatch_FilterChainMatch struct {

	// The name assigned to the filter chain.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// The SNI value used by a filter chain's match condition.  This
	// condition will evaluate to false if the filter chain has no
	// sni match.
	Sni string `protobuf:"bytes,2,opt,name=sni,proto3" json:"sni,omitempty"`
	// Applies only to `SIDECAR_INBOUND` context. If non-empty, a
	// transport protocol to consider when determining a filter
	// chain match.  This value will be compared against the
	// transport protocol of a new connection, when it's detected by
	// the `tls_inspector` listener filter.
	//
	// Accepted values include:
	//
	// * `raw_buffer` - default, used when no transport protocol is detected.
	// * `tls` - set when TLS protocol is detected by the TLS inspector.
	TransportProtocol string `protobuf:"bytes,3,opt,name=transport_protocol,json=transportProtocol,proto3" json:"transport_protocol,omitempty"`
	// Applies only to sidecars. If non-empty, a comma separated set
	// of application protocols to consider when determining a
	// filter chain match.  This value will be compared against the
	// application protocols of a new connection, when it's detected
	// by one of the listener filters such as the `http_inspector`.
	//
	// Accepted values include: h2, http/1.1, http/1.0
	ApplicationProtocols string `protobuf:"bytes,4,opt,name=application_protocols,json=applicationProtocols,proto3" json:"application_protocols,omitempty"`
	// The name of a specific filter to apply the patch to. Set this
	// to `envoy.filters.network.http_connection_manager` to add a filter or apply a
	// patch to the HTTP connection manager.
	Filter *EnvoyFilter_ListenerMatch_FilterMatch `protobuf:"bytes,5,opt,name=filter,proto3" json:"filter,omitempty"`
	// The destination_port value used by a filter chain's match condition.
	// This condition will evaluate to false if the filter chain has no destination_port match.
	DestinationPort uint32 `protobuf:"varint,6,opt,name=destination_port,json=destinationPort,proto3" json:"destination_port,omitempty"`
	// contains filtered or unexported fields
}

For listeners with multiple filter chains (e.g., inbound listeners on sidecars with permissive mTLS, gateway listeners with multiple SNI matches), the filter chain match can be used to select a specific filter chain to patch.

func (*EnvoyFilter_ListenerMatch_FilterChainMatch) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EnvoyFilter_ListenerMatch_FilterChainMatch. Required by controller-gen.

func (*EnvoyFilter_ListenerMatch_FilterChainMatch) DeepCopyInterface

func (in *EnvoyFilter_ListenerMatch_FilterChainMatch) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new EnvoyFilter_ListenerMatch_FilterChainMatch. Required by controller-gen.

func (*EnvoyFilter_ListenerMatch_FilterChainMatch) DeepCopyInto

DeepCopyInto supports using EnvoyFilter_ListenerMatch_FilterChainMatch within kubernetes types, where deepcopy-gen is used.

func (*EnvoyFilter_ListenerMatch_FilterChainMatch) Descriptor deprecated

Deprecated: Use EnvoyFilter_ListenerMatch_FilterChainMatch.ProtoReflect.Descriptor instead.

func (*EnvoyFilter_ListenerMatch_FilterChainMatch) GetApplicationProtocols

func (x *EnvoyFilter_ListenerMatch_FilterChainMatch) GetApplicationProtocols() string

func (*EnvoyFilter_ListenerMatch_FilterChainMatch) GetDestinationPort

func (x *EnvoyFilter_ListenerMatch_FilterChainMatch) GetDestinationPort() uint32

func (*EnvoyFilter_ListenerMatch_FilterChainMatch) GetFilter

func (*EnvoyFilter_ListenerMatch_FilterChainMatch) GetName

func (*EnvoyFilter_ListenerMatch_FilterChainMatch) GetSni

func (*EnvoyFilter_ListenerMatch_FilterChainMatch) GetTransportProtocol

func (x *EnvoyFilter_ListenerMatch_FilterChainMatch) GetTransportProtocol() string

func (*EnvoyFilter_ListenerMatch_FilterChainMatch) MarshalJSON

func (this *EnvoyFilter_ListenerMatch_FilterChainMatch) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for EnvoyFilter_ListenerMatch_FilterChainMatch

func (*EnvoyFilter_ListenerMatch_FilterChainMatch) ProtoMessage

func (*EnvoyFilter_ListenerMatch_FilterChainMatch) ProtoReflect

func (*EnvoyFilter_ListenerMatch_FilterChainMatch) Reset

func (*EnvoyFilter_ListenerMatch_FilterChainMatch) String

func (*EnvoyFilter_ListenerMatch_FilterChainMatch) UnmarshalJSON

func (this *EnvoyFilter_ListenerMatch_FilterChainMatch) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for EnvoyFilter_ListenerMatch_FilterChainMatch

type EnvoyFilter_ListenerMatch_FilterMatch

type EnvoyFilter_ListenerMatch_FilterMatch struct {

	// The filter name to match on.
	// For standard Envoy filters, [canonical filter](https://www.envoyproxy.io/docs/envoy/latest/version_history/v1.14.0#deprecated)
	// names should be used.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// The next level filter within this filter to match
	// upon. Typically used for HTTP Connection Manager filters and
	// Thrift filters.
	SubFilter *EnvoyFilter_ListenerMatch_SubFilterMatch `protobuf:"bytes,2,opt,name=sub_filter,json=subFilter,proto3" json:"sub_filter,omitempty"`
	// contains filtered or unexported fields
}

Conditions to match a specific filter within a filter chain.

func (*EnvoyFilter_ListenerMatch_FilterMatch) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EnvoyFilter_ListenerMatch_FilterMatch. Required by controller-gen.

func (*EnvoyFilter_ListenerMatch_FilterMatch) DeepCopyInterface

func (in *EnvoyFilter_ListenerMatch_FilterMatch) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new EnvoyFilter_ListenerMatch_FilterMatch. Required by controller-gen.

func (*EnvoyFilter_ListenerMatch_FilterMatch) DeepCopyInto

DeepCopyInto supports using EnvoyFilter_ListenerMatch_FilterMatch within kubernetes types, where deepcopy-gen is used.

func (*EnvoyFilter_ListenerMatch_FilterMatch) Descriptor deprecated

func (*EnvoyFilter_ListenerMatch_FilterMatch) Descriptor() ([]byte, []int)

Deprecated: Use EnvoyFilter_ListenerMatch_FilterMatch.ProtoReflect.Descriptor instead.

func (*EnvoyFilter_ListenerMatch_FilterMatch) GetName

func (*EnvoyFilter_ListenerMatch_FilterMatch) GetSubFilter

func (*EnvoyFilter_ListenerMatch_FilterMatch) MarshalJSON

func (this *EnvoyFilter_ListenerMatch_FilterMatch) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for EnvoyFilter_ListenerMatch_FilterMatch

func (*EnvoyFilter_ListenerMatch_FilterMatch) ProtoMessage

func (*EnvoyFilter_ListenerMatch_FilterMatch) ProtoMessage()

func (*EnvoyFilter_ListenerMatch_FilterMatch) ProtoReflect

func (*EnvoyFilter_ListenerMatch_FilterMatch) Reset

func (*EnvoyFilter_ListenerMatch_FilterMatch) String

func (*EnvoyFilter_ListenerMatch_FilterMatch) UnmarshalJSON

func (this *EnvoyFilter_ListenerMatch_FilterMatch) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for EnvoyFilter_ListenerMatch_FilterMatch

type EnvoyFilter_ListenerMatch_SubFilterMatch

type EnvoyFilter_ListenerMatch_SubFilterMatch struct {

	// The filter name to match on.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

Conditions to match a specific filter within another filter. This field is typically useful to match a HTTP filter inside the `envoy.filters.network.http_connection_manager` network filter. This could also be applicable for thrift filters.

func (*EnvoyFilter_ListenerMatch_SubFilterMatch) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EnvoyFilter_ListenerMatch_SubFilterMatch. Required by controller-gen.

func (*EnvoyFilter_ListenerMatch_SubFilterMatch) DeepCopyInterface

func (in *EnvoyFilter_ListenerMatch_SubFilterMatch) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new EnvoyFilter_ListenerMatch_SubFilterMatch. Required by controller-gen.

func (*EnvoyFilter_ListenerMatch_SubFilterMatch) DeepCopyInto

DeepCopyInto supports using EnvoyFilter_ListenerMatch_SubFilterMatch within kubernetes types, where deepcopy-gen is used.

func (*EnvoyFilter_ListenerMatch_SubFilterMatch) Descriptor deprecated

func (*EnvoyFilter_ListenerMatch_SubFilterMatch) Descriptor() ([]byte, []int)

Deprecated: Use EnvoyFilter_ListenerMatch_SubFilterMatch.ProtoReflect.Descriptor instead.

func (*EnvoyFilter_ListenerMatch_SubFilterMatch) GetName

func (*EnvoyFilter_ListenerMatch_SubFilterMatch) MarshalJSON

func (this *EnvoyFilter_ListenerMatch_SubFilterMatch) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for EnvoyFilter_ListenerMatch_SubFilterMatch

func (*EnvoyFilter_ListenerMatch_SubFilterMatch) ProtoMessage

func (*EnvoyFilter_ListenerMatch_SubFilterMatch) ProtoReflect

func (*EnvoyFilter_ListenerMatch_SubFilterMatch) Reset

func (*EnvoyFilter_ListenerMatch_SubFilterMatch) String

func (*EnvoyFilter_ListenerMatch_SubFilterMatch) UnmarshalJSON

func (this *EnvoyFilter_ListenerMatch_SubFilterMatch) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for EnvoyFilter_ListenerMatch_SubFilterMatch

type EnvoyFilter_Patch

type EnvoyFilter_Patch struct {

	// Determines how the patch should be applied.
	Operation EnvoyFilter_Patch_Operation `` /* 131-byte string literal not displayed */
	// The JSON config of the object being patched. This will be merged using
	// proto merge semantics with the existing proto in the path.
	Value *_struct.Struct `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	// Determines the filter insertion order.
	FilterClass EnvoyFilter_Patch_FilterClass `` /* 156-byte string literal not displayed */
	// contains filtered or unexported fields
}

Patch specifies how the selected object should be modified.

func (*EnvoyFilter_Patch) DeepCopy

func (in *EnvoyFilter_Patch) DeepCopy() *EnvoyFilter_Patch

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EnvoyFilter_Patch. Required by controller-gen.

func (*EnvoyFilter_Patch) DeepCopyInterface

func (in *EnvoyFilter_Patch) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new EnvoyFilter_Patch. Required by controller-gen.

func (*EnvoyFilter_Patch) DeepCopyInto

func (in *EnvoyFilter_Patch) DeepCopyInto(out *EnvoyFilter_Patch)

DeepCopyInto supports using EnvoyFilter_Patch within kubernetes types, where deepcopy-gen is used.

func (*EnvoyFilter_Patch) Descriptor deprecated

func (*EnvoyFilter_Patch) Descriptor() ([]byte, []int)

Deprecated: Use EnvoyFilter_Patch.ProtoReflect.Descriptor instead.

func (*EnvoyFilter_Patch) GetFilterClass

func (*EnvoyFilter_Patch) GetOperation

func (*EnvoyFilter_Patch) GetValue

func (x *EnvoyFilter_Patch) GetValue() *_struct.Struct

func (*EnvoyFilter_Patch) MarshalJSON

func (this *EnvoyFilter_Patch) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for EnvoyFilter_Patch

func (*EnvoyFilter_Patch) ProtoMessage

func (*EnvoyFilter_Patch) ProtoMessage()

func (*EnvoyFilter_Patch) ProtoReflect

func (x *EnvoyFilter_Patch) ProtoReflect() protoreflect.Message

func (*EnvoyFilter_Patch) Reset

func (x *EnvoyFilter_Patch) Reset()

func (*EnvoyFilter_Patch) String

func (x *EnvoyFilter_Patch) String() string

func (*EnvoyFilter_Patch) UnmarshalJSON

func (this *EnvoyFilter_Patch) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for EnvoyFilter_Patch

type EnvoyFilter_PatchContext

type EnvoyFilter_PatchContext int32

PatchContext selects a class of configurations based on the traffic flow direction and workload type.

const (
	// All listeners/routes/clusters in both sidecars and gateways.
	EnvoyFilter_ANY EnvoyFilter_PatchContext = 0
	// Inbound listener/route/cluster in sidecar.
	EnvoyFilter_SIDECAR_INBOUND EnvoyFilter_PatchContext = 1
	// Outbound listener/route/cluster in sidecar.
	EnvoyFilter_SIDECAR_OUTBOUND EnvoyFilter_PatchContext = 2
	// Gateway listener/route/cluster.
	EnvoyFilter_GATEWAY EnvoyFilter_PatchContext = 3
)

func (EnvoyFilter_PatchContext) Descriptor

func (EnvoyFilter_PatchContext) Enum

func (EnvoyFilter_PatchContext) EnumDescriptor deprecated

func (EnvoyFilter_PatchContext) EnumDescriptor() ([]byte, []int)

Deprecated: Use EnvoyFilter_PatchContext.Descriptor instead.

func (EnvoyFilter_PatchContext) Number

func (EnvoyFilter_PatchContext) String

func (x EnvoyFilter_PatchContext) String() string

func (EnvoyFilter_PatchContext) Type

type EnvoyFilter_Patch_FilterClass

type EnvoyFilter_Patch_FilterClass int32

FilterClass determines the filter insertion point in the filter chain relative to the filters implicitly inserted by the control plane. It is used in conjunction with the `ADD` operation. This is the preferred insertion mechanism for adding filters over the `INSERT_*` operations since those operations rely on potentially unstable filter names. Filter ordering is important if your filter depends on or affects the functioning of a another filter in the filter chain. Within a filter class, filters are inserted in the order of processing.

const (
	// Control plane decides where to insert the filter.
	// Do not specify `FilterClass` if the filter is independent of others.
	EnvoyFilter_Patch_UNSPECIFIED EnvoyFilter_Patch_FilterClass = 0
	// Insert filter after Istio authentication filters.
	EnvoyFilter_Patch_AUTHN EnvoyFilter_Patch_FilterClass = 1
	// Insert filter after Istio authorization filters.
	EnvoyFilter_Patch_AUTHZ EnvoyFilter_Patch_FilterClass = 2
	// Insert filter before Istio stats filters.
	EnvoyFilter_Patch_STATS EnvoyFilter_Patch_FilterClass = 3
)

func (EnvoyFilter_Patch_FilterClass) Descriptor

func (EnvoyFilter_Patch_FilterClass) Enum

func (EnvoyFilter_Patch_FilterClass) EnumDescriptor deprecated

func (EnvoyFilter_Patch_FilterClass) EnumDescriptor() ([]byte, []int)

Deprecated: Use EnvoyFilter_Patch_FilterClass.Descriptor instead.

func (EnvoyFilter_Patch_FilterClass) Number

func (EnvoyFilter_Patch_FilterClass) String

func (EnvoyFilter_Patch_FilterClass) Type

type EnvoyFilter_Patch_Operation

type EnvoyFilter_Patch_Operation int32

Operation denotes how the patch should be applied to the selected configuration.

const (
	EnvoyFilter_Patch_INVALID EnvoyFilter_Patch_Operation = 0
	// Merge the provided config with the generated config using
	// proto merge semantics. If you are specifying config in its
	// entirety, use `REPLACE` instead.
	EnvoyFilter_Patch_MERGE EnvoyFilter_Patch_Operation = 1
	// Add the provided config to an existing list (of listeners,
	// clusters, virtual hosts, network filters, or http
	// filters). This operation will be ignored when `applyTo` is set
	// to `ROUTE_CONFIGURATION`, or `HTTP_ROUTE`.
	EnvoyFilter_Patch_ADD EnvoyFilter_Patch_Operation = 2
	// Remove the selected object from the list (of listeners,
	// clusters, virtual hosts, network filters, routes, or http
	// filters). Does not require a value to be specified. This
	// operation will be ignored when `applyTo` is set to
	// `ROUTE_CONFIGURATION`, or `HTTP_ROUTE`.
	EnvoyFilter_Patch_REMOVE EnvoyFilter_Patch_Operation = 3
	// Insert operation on an array of named objects. This operation
	// is typically useful only in the context of filters or routes,
	// where the order of elements matter. Routes should be ordered
	// based on most to least specific matching criteria since the
	// first matching element is selected. For clusters and virtual hosts,
	// order of the element in the array does not matter. Insert
	// before the selected filter or sub filter. If no filter is
	// selected, the specified filter will be inserted at the front
	// of the list.
	EnvoyFilter_Patch_INSERT_BEFORE EnvoyFilter_Patch_Operation = 4
	// Insert operation on an array of named objects. This operation
	// is typically useful only in the context of filters or routes,
	// where the order of elements matter. Routes should be ordered
	// based on most to least specific matching criteria since the
	// first matching element is selected. For clusters and virtual hosts,
	// order of the element in the array does not matter. Insert
	// after the selected filter or sub filter. If no filter is
	// selected, the specified filter will be inserted at the end
	// of the list.
	EnvoyFilter_Patch_INSERT_AFTER EnvoyFilter_Patch_Operation = 5
	// Insert operation on an array of named objects. This operation
	// is typically useful only in the context of filters or routes,
	// where the order of elements matter. Routes should be ordered
	// based on most to least specific matching criteria since the
	// first matching element is selected. For clusters and virtual hosts,
	// order of the element in the array does not matter. Insert
	// first in the list based on the presence of selected filter or not.
	// This is specifically useful when you want your filter first in the
	// list based on a match condition specified in Match clause.
	EnvoyFilter_Patch_INSERT_FIRST EnvoyFilter_Patch_Operation = 6
	// Replace contents of a named filter with new contents.
	// `REPLACE` operation is only valid for `HTTP_FILTER` and
	// `NETWORK_FILTER`. If the named filter is not found, this operation
	// has no effect.
	EnvoyFilter_Patch_REPLACE EnvoyFilter_Patch_Operation = 7
)

func (EnvoyFilter_Patch_Operation) Descriptor

func (EnvoyFilter_Patch_Operation) Enum

func (EnvoyFilter_Patch_Operation) EnumDescriptor deprecated

func (EnvoyFilter_Patch_Operation) EnumDescriptor() ([]byte, []int)

Deprecated: Use EnvoyFilter_Patch_Operation.Descriptor instead.

func (EnvoyFilter_Patch_Operation) Number

func (EnvoyFilter_Patch_Operation) String

func (EnvoyFilter_Patch_Operation) Type

type EnvoyFilter_ProxyMatch

type EnvoyFilter_ProxyMatch struct {

	// A regular expression in golang regex format (RE2) that can be
	// used to select proxies using a specific version of istio
	// proxy. The Istio version for a given proxy is obtained from the
	// node metadata field `ISTIO_VERSION` supplied by the proxy when
	// connecting to Pilot. This value is embedded as an environment
	// variable (`ISTIO_META_ISTIO_VERSION`) in the Istio proxy docker
	// image. Custom proxy implementations should provide this metadata
	// variable to take advantage of the Istio version check option.
	ProxyVersion string `protobuf:"bytes,1,opt,name=proxy_version,json=proxyVersion,proto3" json:"proxy_version,omitempty"`
	// Match on the node metadata supplied by a proxy when connecting
	// to Istio Pilot. Note that while Envoy's node metadata is of
	// type Struct, only string key-value pairs are processed by
	// Pilot. All keys specified in the metadata must match with exact
	// values. The match will fail if any of the specified keys are
	// absent or the values fail to match.
	Metadata map[string]string `` /* 157-byte string literal not displayed */
	// contains filtered or unexported fields
}

One or more properties of the proxy to match on.

func (*EnvoyFilter_ProxyMatch) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EnvoyFilter_ProxyMatch. Required by controller-gen.

func (*EnvoyFilter_ProxyMatch) DeepCopyInterface

func (in *EnvoyFilter_ProxyMatch) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new EnvoyFilter_ProxyMatch. Required by controller-gen.

func (*EnvoyFilter_ProxyMatch) DeepCopyInto

func (in *EnvoyFilter_ProxyMatch) DeepCopyInto(out *EnvoyFilter_ProxyMatch)

DeepCopyInto supports using EnvoyFilter_ProxyMatch within kubernetes types, where deepcopy-gen is used.

func (*EnvoyFilter_ProxyMatch) Descriptor deprecated

func (*EnvoyFilter_ProxyMatch) Descriptor() ([]byte, []int)

Deprecated: Use EnvoyFilter_ProxyMatch.ProtoReflect.Descriptor instead.

func (*EnvoyFilter_ProxyMatch) GetMetadata

func (x *EnvoyFilter_ProxyMatch) GetMetadata() map[string]string

func (*EnvoyFilter_ProxyMatch) GetProxyVersion

func (x *EnvoyFilter_ProxyMatch) GetProxyVersion() string

func (*EnvoyFilter_ProxyMatch) MarshalJSON

func (this *EnvoyFilter_ProxyMatch) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for EnvoyFilter_ProxyMatch

func (*EnvoyFilter_ProxyMatch) ProtoMessage

func (*EnvoyFilter_ProxyMatch) ProtoMessage()

func (*EnvoyFilter_ProxyMatch) ProtoReflect

func (x *EnvoyFilter_ProxyMatch) ProtoReflect() protoreflect.Message

func (*EnvoyFilter_ProxyMatch) Reset

func (x *EnvoyFilter_ProxyMatch) Reset()

func (*EnvoyFilter_ProxyMatch) String

func (x *EnvoyFilter_ProxyMatch) String() string

func (*EnvoyFilter_ProxyMatch) UnmarshalJSON

func (this *EnvoyFilter_ProxyMatch) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for EnvoyFilter_ProxyMatch

type EnvoyFilter_RouteConfigurationMatch

type EnvoyFilter_RouteConfigurationMatch struct {

	// The service port number or gateway server port number for which
	// this route configuration was generated. If omitted, applies to
	// route configurations for all ports.
	PortNumber uint32 `protobuf:"varint,1,opt,name=port_number,json=portNumber,proto3" json:"port_number,omitempty"`
	// Applicable only for GATEWAY context. The gateway server port
	// name for which this route configuration was generated.
	PortName string `protobuf:"bytes,2,opt,name=port_name,json=portName,proto3" json:"port_name,omitempty"`
	// The Istio gateway config's namespace/name for which this route
	// configuration was generated. Applies only if the context is
	// GATEWAY. Should be in the namespace/name format. Use this field
	// in conjunction with the `portNumber` and `portName` to accurately
	// select the Envoy route configuration for a specific HTTPS
	// server within a gateway config object.
	Gateway string `protobuf:"bytes,3,opt,name=gateway,proto3" json:"gateway,omitempty"`
	// Match a specific virtual host in a route configuration and
	// apply the patch to the virtual host.
	Vhost *EnvoyFilter_RouteConfigurationMatch_VirtualHostMatch `protobuf:"bytes,4,opt,name=vhost,proto3" json:"vhost,omitempty"`
	// Route configuration name to match on. Can be used to match a
	// specific route configuration by name, such as the internally
	// generated `http_proxy` route configuration for all sidecars.
	Name string `protobuf:"bytes,5,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

Conditions specified in RouteConfigurationMatch must be met for the patch to be applied to a route configuration object or a specific virtual host within the route configuration.

func (*EnvoyFilter_RouteConfigurationMatch) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EnvoyFilter_RouteConfigurationMatch. Required by controller-gen.

func (*EnvoyFilter_RouteConfigurationMatch) DeepCopyInterface

func (in *EnvoyFilter_RouteConfigurationMatch) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new EnvoyFilter_RouteConfigurationMatch. Required by controller-gen.

func (*EnvoyFilter_RouteConfigurationMatch) DeepCopyInto

DeepCopyInto supports using EnvoyFilter_RouteConfigurationMatch within kubernetes types, where deepcopy-gen is used.

func (*EnvoyFilter_RouteConfigurationMatch) Descriptor deprecated

func (*EnvoyFilter_RouteConfigurationMatch) Descriptor() ([]byte, []int)

Deprecated: Use EnvoyFilter_RouteConfigurationMatch.ProtoReflect.Descriptor instead.

func (*EnvoyFilter_RouteConfigurationMatch) GetGateway

func (*EnvoyFilter_RouteConfigurationMatch) GetName

func (*EnvoyFilter_RouteConfigurationMatch) GetPortName

func (*EnvoyFilter_RouteConfigurationMatch) GetPortNumber

func (x *EnvoyFilter_RouteConfigurationMatch) GetPortNumber() uint32

func (*EnvoyFilter_RouteConfigurationMatch) GetVhost

func (*EnvoyFilter_RouteConfigurationMatch) MarshalJSON

func (this *EnvoyFilter_RouteConfigurationMatch) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for EnvoyFilter_RouteConfigurationMatch

func (*EnvoyFilter_RouteConfigurationMatch) ProtoMessage

func (*EnvoyFilter_RouteConfigurationMatch) ProtoMessage()

func (*EnvoyFilter_RouteConfigurationMatch) ProtoReflect

func (*EnvoyFilter_RouteConfigurationMatch) Reset

func (*EnvoyFilter_RouteConfigurationMatch) String

func (*EnvoyFilter_RouteConfigurationMatch) UnmarshalJSON

func (this *EnvoyFilter_RouteConfigurationMatch) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for EnvoyFilter_RouteConfigurationMatch

type EnvoyFilter_RouteConfigurationMatch_RouteMatch

type EnvoyFilter_RouteConfigurationMatch_RouteMatch struct {

	// The Route objects generated by default are named as
	// default.  Route objects generated using a virtual service
	// will carry the name used in the virtual service's HTTP
	// routes.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Match a route with specific action type.
	Action EnvoyFilter_RouteConfigurationMatch_RouteMatch_Action `` /* 151-byte string literal not displayed */
	// contains filtered or unexported fields
}

Match a specific route inside a virtual host in a route configuration.

func (*EnvoyFilter_RouteConfigurationMatch_RouteMatch) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EnvoyFilter_RouteConfigurationMatch_RouteMatch. Required by controller-gen.

func (*EnvoyFilter_RouteConfigurationMatch_RouteMatch) DeepCopyInterface

func (in *EnvoyFilter_RouteConfigurationMatch_RouteMatch) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new EnvoyFilter_RouteConfigurationMatch_RouteMatch. Required by controller-gen.

func (*EnvoyFilter_RouteConfigurationMatch_RouteMatch) DeepCopyInto

DeepCopyInto supports using EnvoyFilter_RouteConfigurationMatch_RouteMatch within kubernetes types, where deepcopy-gen is used.

func (*EnvoyFilter_RouteConfigurationMatch_RouteMatch) Descriptor deprecated

Deprecated: Use EnvoyFilter_RouteConfigurationMatch_RouteMatch.ProtoReflect.Descriptor instead.

func (*EnvoyFilter_RouteConfigurationMatch_RouteMatch) GetAction

func (*EnvoyFilter_RouteConfigurationMatch_RouteMatch) GetName

func (*EnvoyFilter_RouteConfigurationMatch_RouteMatch) MarshalJSON

MarshalJSON is a custom marshaler for EnvoyFilter_RouteConfigurationMatch_RouteMatch

func (*EnvoyFilter_RouteConfigurationMatch_RouteMatch) ProtoMessage

func (*EnvoyFilter_RouteConfigurationMatch_RouteMatch) ProtoReflect

func (*EnvoyFilter_RouteConfigurationMatch_RouteMatch) Reset

func (*EnvoyFilter_RouteConfigurationMatch_RouteMatch) String

func (*EnvoyFilter_RouteConfigurationMatch_RouteMatch) UnmarshalJSON

UnmarshalJSON is a custom unmarshaler for EnvoyFilter_RouteConfigurationMatch_RouteMatch

type EnvoyFilter_RouteConfigurationMatch_RouteMatch_Action

type EnvoyFilter_RouteConfigurationMatch_RouteMatch_Action int32

Action refers to the route action taken by Envoy when a http route matches.

const (
	// All three route actions
	EnvoyFilter_RouteConfigurationMatch_RouteMatch_ANY EnvoyFilter_RouteConfigurationMatch_RouteMatch_Action = 0
	// Route traffic to a cluster / weighted clusters.
	EnvoyFilter_RouteConfigurationMatch_RouteMatch_ROUTE EnvoyFilter_RouteConfigurationMatch_RouteMatch_Action = 1
	// Redirect request.
	EnvoyFilter_RouteConfigurationMatch_RouteMatch_REDIRECT EnvoyFilter_RouteConfigurationMatch_RouteMatch_Action = 2
	// directly respond to a request with specific payload.
	EnvoyFilter_RouteConfigurationMatch_RouteMatch_DIRECT_RESPONSE EnvoyFilter_RouteConfigurationMatch_RouteMatch_Action = 3
)

func (EnvoyFilter_RouteConfigurationMatch_RouteMatch_Action) Descriptor

func (EnvoyFilter_RouteConfigurationMatch_RouteMatch_Action) Enum

func (EnvoyFilter_RouteConfigurationMatch_RouteMatch_Action) EnumDescriptor deprecated

Deprecated: Use EnvoyFilter_RouteConfigurationMatch_RouteMatch_Action.Descriptor instead.

func (EnvoyFilter_RouteConfigurationMatch_RouteMatch_Action) Number

func (EnvoyFilter_RouteConfigurationMatch_RouteMatch_Action) String

func (EnvoyFilter_RouteConfigurationMatch_RouteMatch_Action) Type

type EnvoyFilter_RouteConfigurationMatch_VirtualHostMatch

type EnvoyFilter_RouteConfigurationMatch_VirtualHostMatch struct {

	// The VirtualHosts objects generated by Istio are named as
	// host:port, where the host typically corresponds to the
	// VirtualService's host field or the hostname of a service in the
	// registry.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Match a specific route within the virtual host.
	Route *EnvoyFilter_RouteConfigurationMatch_RouteMatch `protobuf:"bytes,2,opt,name=route,proto3" json:"route,omitempty"`
	// contains filtered or unexported fields
}

Match a specific virtual host inside a route configuration.

func (*EnvoyFilter_RouteConfigurationMatch_VirtualHostMatch) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EnvoyFilter_RouteConfigurationMatch_VirtualHostMatch. Required by controller-gen.

func (*EnvoyFilter_RouteConfigurationMatch_VirtualHostMatch) DeepCopyInterface

func (in *EnvoyFilter_RouteConfigurationMatch_VirtualHostMatch) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new EnvoyFilter_RouteConfigurationMatch_VirtualHostMatch. Required by controller-gen.

func (*EnvoyFilter_RouteConfigurationMatch_VirtualHostMatch) DeepCopyInto

DeepCopyInto supports using EnvoyFilter_RouteConfigurationMatch_VirtualHostMatch within kubernetes types, where deepcopy-gen is used.

func (*EnvoyFilter_RouteConfigurationMatch_VirtualHostMatch) Descriptor deprecated

Deprecated: Use EnvoyFilter_RouteConfigurationMatch_VirtualHostMatch.ProtoReflect.Descriptor instead.

func (*EnvoyFilter_RouteConfigurationMatch_VirtualHostMatch) GetName

func (*EnvoyFilter_RouteConfigurationMatch_VirtualHostMatch) GetRoute

func (*EnvoyFilter_RouteConfigurationMatch_VirtualHostMatch) MarshalJSON

MarshalJSON is a custom marshaler for EnvoyFilter_RouteConfigurationMatch_VirtualHostMatch

func (*EnvoyFilter_RouteConfigurationMatch_VirtualHostMatch) ProtoMessage

func (*EnvoyFilter_RouteConfigurationMatch_VirtualHostMatch) ProtoReflect

func (*EnvoyFilter_RouteConfigurationMatch_VirtualHostMatch) Reset

func (*EnvoyFilter_RouteConfigurationMatch_VirtualHostMatch) String

func (*EnvoyFilter_RouteConfigurationMatch_VirtualHostMatch) UnmarshalJSON

UnmarshalJSON is a custom unmarshaler for EnvoyFilter_RouteConfigurationMatch_VirtualHostMatch

type ExecHealthCheckConfig

type ExecHealthCheckConfig struct {

	// Command to run. Exit status of 0 is treated as live/healthy and non-zero is unhealthy.
	Command []string `protobuf:"bytes,1,rep,name=command,proto3" json:"command,omitempty"`
	// contains filtered or unexported fields
}

func (*ExecHealthCheckConfig) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExecHealthCheckConfig. Required by controller-gen.

func (*ExecHealthCheckConfig) DeepCopyInterface

func (in *ExecHealthCheckConfig) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new ExecHealthCheckConfig. Required by controller-gen.

func (*ExecHealthCheckConfig) DeepCopyInto

func (in *ExecHealthCheckConfig) DeepCopyInto(out *ExecHealthCheckConfig)

DeepCopyInto supports using ExecHealthCheckConfig within kubernetes types, where deepcopy-gen is used.

func (*ExecHealthCheckConfig) Descriptor deprecated

func (*ExecHealthCheckConfig) Descriptor() ([]byte, []int)

Deprecated: Use ExecHealthCheckConfig.ProtoReflect.Descriptor instead.

func (*ExecHealthCheckConfig) GetCommand

func (x *ExecHealthCheckConfig) GetCommand() []string

func (*ExecHealthCheckConfig) MarshalJSON

func (this *ExecHealthCheckConfig) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for ExecHealthCheckConfig

func (*ExecHealthCheckConfig) ProtoMessage

func (*ExecHealthCheckConfig) ProtoMessage()

func (*ExecHealthCheckConfig) ProtoReflect

func (x *ExecHealthCheckConfig) ProtoReflect() protoreflect.Message

func (*ExecHealthCheckConfig) Reset

func (x *ExecHealthCheckConfig) Reset()

func (*ExecHealthCheckConfig) String

func (x *ExecHealthCheckConfig) String() string

func (*ExecHealthCheckConfig) UnmarshalJSON

func (this *ExecHealthCheckConfig) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for ExecHealthCheckConfig

type Gateway

type Gateway struct {

	// A list of server specifications.
	Servers []*Server `protobuf:"bytes,1,rep,name=servers,proto3" json:"servers,omitempty"`
	// One or more labels that indicate a specific set of pods/VMs
	// on which this gateway configuration should be applied.
	// By default workloads are searched across all namespaces based on label selectors.
	// This implies that a gateway resource in the namespace "foo" can select pods in
	// the namespace "bar" based on labels.
	// This behavior can be controlled via the `PILOT_SCOPE_GATEWAY_TO_NAMESPACE`
	// environment variable in istiod. If this variable is set
	// to true, the scope of label search is restricted to the configuration
	// namespace in which the the resource is present. In other words, the Gateway
	// resource must reside in the same namespace as the gateway workload
	// instance.
	// If selector is nil, the Gateway will be applied to all workloads.
	Selector map[string]string `` /* 157-byte string literal not displayed */
	// contains filtered or unexported fields
}

Gateway describes a load balancer operating at the edge of the mesh receiving incoming or outgoing HTTP/TCP connections.

<!-- crd generation tags +cue-gen:Gateway:groupName:networking.istio.io +cue-gen:Gateway:version:v1alpha3 +cue-gen:Gateway:storageVersion +cue-gen:Gateway:annotations:helm.sh/resource-policy=keep +cue-gen:Gateway:labels:app=istio-pilot,chart=istio,heritage=Tiller,release=istio +cue-gen:Gateway:subresource:status +cue-gen:Gateway:scope:Namespaced +cue-gen:Gateway:resource:categories=istio-io,networking-istio-io,shortNames=gw +cue-gen:Gateway:preserveUnknownFields:false -->

<!-- go code generation tags +kubetype-gen +kubetype-gen:groupVersion=networking.istio.io/v1alpha3 +genclient +k8s:deepcopy-gen=true --> <!-- istio code generation tags +istio.io/sync-start -->

func (*Gateway) DeepCopy

func (in *Gateway) DeepCopy() *Gateway

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Gateway. Required by controller-gen.

func (*Gateway) DeepCopyInterface

func (in *Gateway) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new Gateway. Required by controller-gen.

func (*Gateway) DeepCopyInto

func (in *Gateway) DeepCopyInto(out *Gateway)

DeepCopyInto supports using Gateway within kubernetes types, where deepcopy-gen is used.

func (*Gateway) Descriptor deprecated

func (*Gateway) Descriptor() ([]byte, []int)

Deprecated: Use Gateway.ProtoReflect.Descriptor instead.

func (*Gateway) GetSelector

func (x *Gateway) GetSelector() map[string]string

func (*Gateway) GetServers

func (x *Gateway) GetServers() []*Server

func (*Gateway) MarshalJSON

func (this *Gateway) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for Gateway

func (*Gateway) ProtoMessage

func (*Gateway) ProtoMessage()

func (*Gateway) ProtoReflect

func (x *Gateway) ProtoReflect() protoreflect.Message

func (*Gateway) Reset

func (x *Gateway) Reset()

func (*Gateway) String

func (x *Gateway) String() string

func (*Gateway) UnmarshalJSON

func (this *Gateway) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for Gateway

type HTTPBody

type HTTPBody struct {

	// Types that are assignable to Specifier:
	//
	//	*HTTPBody_String_
	//	*HTTPBody_Bytes
	Specifier isHTTPBody_Specifier `protobuf_oneof:"specifier"`
	// contains filtered or unexported fields
}

func (*HTTPBody) DeepCopy

func (in *HTTPBody) DeepCopy() *HTTPBody

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HTTPBody. Required by controller-gen.

func (*HTTPBody) DeepCopyInterface

func (in *HTTPBody) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new HTTPBody. Required by controller-gen.

func (*HTTPBody) DeepCopyInto

func (in *HTTPBody) DeepCopyInto(out *HTTPBody)

DeepCopyInto supports using HTTPBody within kubernetes types, where deepcopy-gen is used.

func (*HTTPBody) Descriptor deprecated

func (*HTTPBody) Descriptor() ([]byte, []int)

Deprecated: Use HTTPBody.ProtoReflect.Descriptor instead.

func (*HTTPBody) GetBytes

func (x *HTTPBody) GetBytes() []byte

func (*HTTPBody) GetSpecifier

func (m *HTTPBody) GetSpecifier() isHTTPBody_Specifier

func (*HTTPBody) GetString_

func (x *HTTPBody) GetString_() string

func (*HTTPBody) MarshalJSON

func (this *HTTPBody) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for HTTPBody

func (*HTTPBody) ProtoMessage

func (*HTTPBody) ProtoMessage()

func (*HTTPBody) ProtoReflect

func (x *HTTPBody) ProtoReflect() protoreflect.Message

func (*HTTPBody) Reset

func (x *HTTPBody) Reset()

func (*HTTPBody) String

func (x *HTTPBody) String() string

func (*HTTPBody) UnmarshalJSON

func (this *HTTPBody) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for HTTPBody

type HTTPBody_Bytes

type HTTPBody_Bytes struct {
	// response body as base64 encoded bytes.
	Bytes []byte `protobuf:"bytes,2,opt,name=bytes,proto3,oneof"`
}

type HTTPBody_String_

type HTTPBody_String_ struct {
	// response body as a string
	String_ string `protobuf:"bytes,1,opt,name=string,proto3,oneof"`
}

type HTTPDirectResponse

type HTTPDirectResponse struct {

	// Specifies the HTTP response status to be returned.
	Status uint32 `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"`
	// Specifies the content of the response body. If this setting is omitted,
	// no body is included in the generated response.
	Body *HTTPBody `protobuf:"bytes,2,opt,name=body,proto3" json:"body,omitempty"`
	// contains filtered or unexported fields
}

HTTPDirectResponse can be used to send a fixed response to clients. For example, the following rule returns a fixed 503 status with a body to requests for /v1/getProductRatings API.

{{<tabset category-name="example">}} {{<tab name="v1alpha3" category-value="v1alpha3">}} ```yaml apiVersion: networking.istio.io/v1alpha3 kind: VirtualService metadata:

name: ratings-route

spec:

hosts:
- ratings.prod.svc.cluster.local
http:
- match:
  - uri:
      exact: /v1/getProductRatings
  directResponse:
    status: 503
    body:
      string: "unknown error"
...

``` {{</tab>}}

{{<tab name="v1beta1" category-value="v1beta1">}} ```yaml apiVersion: networking.istio.io/v1beta1 kind: VirtualService metadata:

name: ratings-route

spec:

hosts:
- ratings.prod.svc.cluster.local
http:
- match:
  - uri:
      exact: /v1/getProductRatings
  directResponse:
    status: 503
    body:
      string: "unknown error"
...

``` {{</tab>}} {{</tabset>}}

It is also possible to specify a binary response body. This is mostly useful for non text-based protocols such as gRPC.

{{<tabset category-name="example">}} {{<tab name="v1alpha3" category-value="v1alpha3">}} ```yaml apiVersion: networking.istio.io/v1alpha3 kind: VirtualService metadata:

name: ratings-route

spec:

hosts:
- ratings.prod.svc.cluster.local
http:
- match:
  - uri:
      exact: /v1/getProductRatings
  directResponse:
    status: 503
    body:
      bytes: "dW5rbm93biBlcnJvcg==" # "unknown error" in base64
...

``` {{</tab>}}

{{<tab name="v1beta1" category-value="v1beta1">}} ```yaml apiVersion: networking.istio.io/v1beta1 kind: VirtualService metadata:

name: ratings-route

spec:

hosts:
- ratings.prod.svc.cluster.local
http:
- match:
  - uri:
      exact: /v1/getProductRatings
  directResponse:
    status: 503
    body:
      bytes: "dW5rbm93biBlcnJvcg==" # "unknown error" in base64
...

``` {{</tab>}} {{</tabset>}}

It is good practice to add headers in the HTTPRoute as well as the direct_response, for example to specify the returned Content-Type.

{{<tabset category-name="example">}} {{<tab name="v1alpha3" category-value="v1alpha3">}} ```yaml apiVersion: networking.istio.io/v1alpha3 kind: VirtualService metadata:

name: ratings-route

spec:

hosts:
- ratings.prod.svc.cluster.local
http:
- match:
  - uri:
      exact: /v1/getProductRatings
  directResponse:
    status: 503
    body:
      string: "{\"error\": \"unknown error\"}"
  headers:
    response:
      set:
        content-type: "application/json"
...

``` {{</tab>}}

{{<tab name="v1beta1" category-value="v1beta1">}} ```yaml apiVersion: networking.istio.io/v1beta1 kind: VirtualService metadata:

name: ratings-route

spec:

hosts:
- ratings.prod.svc.cluster.local
http:
- match:
  - uri:
      exact: /v1/getProductRatings
  directResponse:
    status: 503
    body:
      string: "{\"error\": \"unknown error\"}"
  headers:
    response:
      set:
        content-type: "text/plain"
...

``` {{</tab>}} {{</tabset>}}

func (*HTTPDirectResponse) DeepCopy

func (in *HTTPDirectResponse) DeepCopy() *HTTPDirectResponse

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HTTPDirectResponse. Required by controller-gen.

func (*HTTPDirectResponse) DeepCopyInterface

func (in *HTTPDirectResponse) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new HTTPDirectResponse. Required by controller-gen.

func (*HTTPDirectResponse) DeepCopyInto

func (in *HTTPDirectResponse) DeepCopyInto(out *HTTPDirectResponse)

DeepCopyInto supports using HTTPDirectResponse within kubernetes types, where deepcopy-gen is used.

func (*HTTPDirectResponse) Descriptor deprecated

func (*HTTPDirectResponse) Descriptor() ([]byte, []int)

Deprecated: Use HTTPDirectResponse.ProtoReflect.Descriptor instead.

func (*HTTPDirectResponse) GetBody

func (x *HTTPDirectResponse) GetBody() *HTTPBody

func (*HTTPDirectResponse) GetStatus

func (x *HTTPDirectResponse) GetStatus() uint32

func (*HTTPDirectResponse) MarshalJSON

func (this *HTTPDirectResponse) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for HTTPDirectResponse

func (*HTTPDirectResponse) ProtoMessage

func (*HTTPDirectResponse) ProtoMessage()

func (*HTTPDirectResponse) ProtoReflect

func (x *HTTPDirectResponse) ProtoReflect() protoreflect.Message

func (*HTTPDirectResponse) Reset

func (x *HTTPDirectResponse) Reset()

func (*HTTPDirectResponse) String

func (x *HTTPDirectResponse) String() string

func (*HTTPDirectResponse) UnmarshalJSON

func (this *HTTPDirectResponse) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for HTTPDirectResponse

type HTTPFaultInjection

type HTTPFaultInjection struct {

	// Delay requests before forwarding, emulating various failures such as
	// network issues, overloaded upstream service, etc.
	Delay *HTTPFaultInjection_Delay `protobuf:"bytes,1,opt,name=delay,proto3" json:"delay,omitempty"`
	// Abort Http request attempts and return error codes back to downstream
	// service, giving the impression that the upstream service is faulty.
	Abort *HTTPFaultInjection_Abort `protobuf:"bytes,2,opt,name=abort,proto3" json:"abort,omitempty"`
	// contains filtered or unexported fields
}

HTTPFaultInjection can be used to specify one or more faults to inject while forwarding HTTP requests to the destination specified in a route. Fault specification is part of a VirtualService rule. Faults include aborting the Http request from downstream service, and/or delaying proxying of requests. A fault rule MUST HAVE delay or abort or both.

*Note:* Delay and abort faults are independent of one another, even if both are specified simultaneously.

func (*HTTPFaultInjection) DeepCopy

func (in *HTTPFaultInjection) DeepCopy() *HTTPFaultInjection

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HTTPFaultInjection. Required by controller-gen.

func (*HTTPFaultInjection) DeepCopyInterface

func (in *HTTPFaultInjection) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new HTTPFaultInjection. Required by controller-gen.

func (*HTTPFaultInjection) DeepCopyInto

func (in *HTTPFaultInjection) DeepCopyInto(out *HTTPFaultInjection)

DeepCopyInto supports using HTTPFaultInjection within kubernetes types, where deepcopy-gen is used.

func (*HTTPFaultInjection) Descriptor deprecated

func (*HTTPFaultInjection) Descriptor() ([]byte, []int)

Deprecated: Use HTTPFaultInjection.ProtoReflect.Descriptor instead.

func (*HTTPFaultInjection) GetAbort

func (*HTTPFaultInjection) GetDelay

func (*HTTPFaultInjection) MarshalJSON

func (this *HTTPFaultInjection) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for HTTPFaultInjection

func (*HTTPFaultInjection) ProtoMessage

func (*HTTPFaultInjection) ProtoMessage()

func (*HTTPFaultInjection) ProtoReflect

func (x *HTTPFaultInjection) ProtoReflect() protoreflect.Message

func (*HTTPFaultInjection) Reset

func (x *HTTPFaultInjection) Reset()

func (*HTTPFaultInjection) String

func (x *HTTPFaultInjection) String() string

func (*HTTPFaultInjection) UnmarshalJSON

func (this *HTTPFaultInjection) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for HTTPFaultInjection

type HTTPFaultInjection_Abort

type HTTPFaultInjection_Abort struct {

	// Types that are assignable to ErrorType:
	//
	//	*HTTPFaultInjection_Abort_HttpStatus
	//	*HTTPFaultInjection_Abort_GrpcStatus
	//	*HTTPFaultInjection_Abort_Http2Error
	ErrorType isHTTPFaultInjection_Abort_ErrorType `protobuf_oneof:"error_type"`
	// Percentage of requests to be aborted with the error code provided.
	// If not specified, no request will be aborted.
	Percentage *Percent `protobuf:"bytes,5,opt,name=percentage,proto3" json:"percentage,omitempty"`
	// contains filtered or unexported fields
}

Abort specification is used to prematurely abort a request with a pre-specified error code. The following example will return an HTTP 400 error code for 1 out of every 1000 requests to the "ratings" service "v1".

{{<tabset category-name="example">}} {{<tab name="v1alpha3" category-value="v1alpha3">}} ```yaml apiVersion: networking.istio.io/v1alpha3 kind: VirtualService metadata:

name: ratings-route

spec:

hosts:
- ratings.prod.svc.cluster.local
http:
- route:
  - destination:
      host: ratings.prod.svc.cluster.local
      subset: v1
  fault:
    abort:
      percentage:
        value: 0.1
      httpStatus: 400

``` {{</tab>}}

{{<tab name="v1beta1" category-value="v1beta1">}} ```yaml apiVersion: networking.istio.io/v1beta1 kind: VirtualService metadata:

name: ratings-route

spec:

hosts:
- ratings.prod.svc.cluster.local
http:
- route:
  - destination:
      host: ratings.prod.svc.cluster.local
      subset: v1
  fault:
    abort:
      percentage:
        value: 0.1
      httpStatus: 400

``` {{</tab>}} {{</tabset>}}

The _httpStatus_ field is used to indicate the HTTP status code to return to the caller. The optional _percentage_ field can be used to only abort a certain percentage of requests. If not specified, no request will be aborted.

func (*HTTPFaultInjection_Abort) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HTTPFaultInjection_Abort. Required by controller-gen.

func (*HTTPFaultInjection_Abort) DeepCopyInterface

func (in *HTTPFaultInjection_Abort) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new HTTPFaultInjection_Abort. Required by controller-gen.

func (*HTTPFaultInjection_Abort) DeepCopyInto

func (in *HTTPFaultInjection_Abort) DeepCopyInto(out *HTTPFaultInjection_Abort)

DeepCopyInto supports using HTTPFaultInjection_Abort within kubernetes types, where deepcopy-gen is used.

func (*HTTPFaultInjection_Abort) Descriptor deprecated

func (*HTTPFaultInjection_Abort) Descriptor() ([]byte, []int)

Deprecated: Use HTTPFaultInjection_Abort.ProtoReflect.Descriptor instead.

func (*HTTPFaultInjection_Abort) GetErrorType

func (m *HTTPFaultInjection_Abort) GetErrorType() isHTTPFaultInjection_Abort_ErrorType

func (*HTTPFaultInjection_Abort) GetGrpcStatus

func (x *HTTPFaultInjection_Abort) GetGrpcStatus() string

func (*HTTPFaultInjection_Abort) GetHttp2Error

func (x *HTTPFaultInjection_Abort) GetHttp2Error() string

func (*HTTPFaultInjection_Abort) GetHttpStatus

func (x *HTTPFaultInjection_Abort) GetHttpStatus() int32

func (*HTTPFaultInjection_Abort) GetPercentage

func (x *HTTPFaultInjection_Abort) GetPercentage() *Percent

func (*HTTPFaultInjection_Abort) MarshalJSON

func (this *HTTPFaultInjection_Abort) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for HTTPFaultInjection_Abort

func (*HTTPFaultInjection_Abort) ProtoMessage

func (*HTTPFaultInjection_Abort) ProtoMessage()

func (*HTTPFaultInjection_Abort) ProtoReflect

func (x *HTTPFaultInjection_Abort) ProtoReflect() protoreflect.Message

func (*HTTPFaultInjection_Abort) Reset

func (x *HTTPFaultInjection_Abort) Reset()

func (*HTTPFaultInjection_Abort) String

func (x *HTTPFaultInjection_Abort) String() string

func (*HTTPFaultInjection_Abort) UnmarshalJSON

func (this *HTTPFaultInjection_Abort) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for HTTPFaultInjection_Abort

type HTTPFaultInjection_Abort_GrpcStatus

type HTTPFaultInjection_Abort_GrpcStatus struct {
	// GRPC status code to use to abort the request. The supported
	// codes are documented in https://github.com/grpc/grpc/blob/master/doc/statuscodes.md
	// Note: If you want to return the status "Unavailable", then you should
	// specify the code as `UNAVAILABLE`(all caps), but not `14`.
	GrpcStatus string `protobuf:"bytes,3,opt,name=grpc_status,json=grpcStatus,proto3,oneof"`
}

type HTTPFaultInjection_Abort_Http2Error

type HTTPFaultInjection_Abort_Http2Error struct {
	// $hide_from_docs
	Http2Error string `protobuf:"bytes,4,opt,name=http2_error,json=http2Error,proto3,oneof"`
}

type HTTPFaultInjection_Abort_HttpStatus

type HTTPFaultInjection_Abort_HttpStatus struct {
	// HTTP status code to use to abort the Http request.
	HttpStatus int32 `protobuf:"varint,2,opt,name=http_status,json=httpStatus,proto3,oneof"`
}

type HTTPFaultInjection_Delay

type HTTPFaultInjection_Delay struct {

	// Percentage of requests on which the delay will be injected (0-100).
	// Use of integer `percent` value is deprecated. Use the double `percentage`
	// field instead.
	//
	// Deprecated: Marked as deprecated in networking/v1alpha3/virtual_service.proto.
	Percent int32 `protobuf:"varint,1,opt,name=percent,proto3" json:"percent,omitempty"`
	// Types that are assignable to HttpDelayType:
	//
	//	*HTTPFaultInjection_Delay_FixedDelay
	//	*HTTPFaultInjection_Delay_ExponentialDelay
	HttpDelayType isHTTPFaultInjection_Delay_HttpDelayType `protobuf_oneof:"http_delay_type"`
	// Percentage of requests on which the delay will be injected.
	// If left unspecified, no request will be delayed.
	Percentage *Percent `protobuf:"bytes,5,opt,name=percentage,proto3" json:"percentage,omitempty"`
	// contains filtered or unexported fields
}

Delay specification is used to inject latency into the request forwarding path. The following example will introduce a 5 second delay in 1 out of every 1000 requests to the "v1" version of the "reviews" service from all pods with label env: prod

{{<tabset category-name="example">}} {{<tab name="v1alpha3" category-value="v1alpha3">}} ```yaml apiVersion: networking.istio.io/v1alpha3 kind: VirtualService metadata:

name: reviews-route

spec:

hosts:
- reviews.prod.svc.cluster.local
http:
- match:
  - sourceLabels:
      env: prod
  route:
  - destination:
      host: reviews.prod.svc.cluster.local
      subset: v1
  fault:
    delay:
      percentage:
        value: 0.1
      fixedDelay: 5s

``` {{</tab>}}

{{<tab name="v1beta1" category-value="v1beta1">}} ```yaml apiVersion: networking.istio.io/v1beta1 kind: VirtualService metadata:

name: reviews-route

spec:

hosts:
- reviews.prod.svc.cluster.local
http:
- match:
  - sourceLabels:
      env: prod
  route:
  - destination:
      host: reviews.prod.svc.cluster.local
      subset: v1
  fault:
    delay:
      percentage:
        value: 0.1
      fixedDelay: 5s

``` {{</tab>}} {{</tabset>}}

The _fixedDelay_ field is used to indicate the amount of delay in seconds. The optional _percentage_ field can be used to only delay a certain percentage of requests. If left unspecified, no request will be delayed.

func (*HTTPFaultInjection_Delay) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HTTPFaultInjection_Delay. Required by controller-gen.

func (*HTTPFaultInjection_Delay) DeepCopyInterface

func (in *HTTPFaultInjection_Delay) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new HTTPFaultInjection_Delay. Required by controller-gen.

func (*HTTPFaultInjection_Delay) DeepCopyInto

func (in *HTTPFaultInjection_Delay) DeepCopyInto(out *HTTPFaultInjection_Delay)

DeepCopyInto supports using HTTPFaultInjection_Delay within kubernetes types, where deepcopy-gen is used.

func (*HTTPFaultInjection_Delay) Descriptor deprecated

func (*HTTPFaultInjection_Delay) Descriptor() ([]byte, []int)

Deprecated: Use HTTPFaultInjection_Delay.ProtoReflect.Descriptor instead.

func (*HTTPFaultInjection_Delay) GetExponentialDelay

func (x *HTTPFaultInjection_Delay) GetExponentialDelay() *duration.Duration

func (*HTTPFaultInjection_Delay) GetFixedDelay

func (x *HTTPFaultInjection_Delay) GetFixedDelay() *duration.Duration

func (*HTTPFaultInjection_Delay) GetHttpDelayType

func (m *HTTPFaultInjection_Delay) GetHttpDelayType() isHTTPFaultInjection_Delay_HttpDelayType

func (*HTTPFaultInjection_Delay) GetPercent deprecated

func (x *HTTPFaultInjection_Delay) GetPercent() int32

Deprecated: Marked as deprecated in networking/v1alpha3/virtual_service.proto.

func (*HTTPFaultInjection_Delay) GetPercentage

func (x *HTTPFaultInjection_Delay) GetPercentage() *Percent

func (*HTTPFaultInjection_Delay) MarshalJSON

func (this *HTTPFaultInjection_Delay) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for HTTPFaultInjection_Delay

func (*HTTPFaultInjection_Delay) ProtoMessage

func (*HTTPFaultInjection_Delay) ProtoMessage()

func (*HTTPFaultInjection_Delay) ProtoReflect

func (x *HTTPFaultInjection_Delay) ProtoReflect() protoreflect.Message

func (*HTTPFaultInjection_Delay) Reset

func (x *HTTPFaultInjection_Delay) Reset()

func (*HTTPFaultInjection_Delay) String

func (x *HTTPFaultInjection_Delay) String() string

func (*HTTPFaultInjection_Delay) UnmarshalJSON

func (this *HTTPFaultInjection_Delay) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for HTTPFaultInjection_Delay

type HTTPFaultInjection_Delay_ExponentialDelay

type HTTPFaultInjection_Delay_ExponentialDelay struct {
	// $hide_from_docs
	ExponentialDelay *duration.Duration `protobuf:"bytes,3,opt,name=exponential_delay,json=exponentialDelay,proto3,oneof"`
}

type HTTPFaultInjection_Delay_FixedDelay

type HTTPFaultInjection_Delay_FixedDelay struct {
	// Add a fixed delay before forwarding the request. Format:
	// 1h/1m/1s/1ms. MUST be >=1ms.
	FixedDelay *duration.Duration `protobuf:"bytes,2,opt,name=fixed_delay,json=fixedDelay,proto3,oneof"`
}

type HTTPHeader

type HTTPHeader struct {

	// The header field name
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// The header field value
	Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*HTTPHeader) DeepCopy

func (in *HTTPHeader) DeepCopy() *HTTPHeader

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HTTPHeader. Required by controller-gen.

func (*HTTPHeader) DeepCopyInterface

func (in *HTTPHeader) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new HTTPHeader. Required by controller-gen.

func (*HTTPHeader) DeepCopyInto

func (in *HTTPHeader) DeepCopyInto(out *HTTPHeader)

DeepCopyInto supports using HTTPHeader within kubernetes types, where deepcopy-gen is used.

func (*HTTPHeader) Descriptor deprecated

func (*HTTPHeader) Descriptor() ([]byte, []int)

Deprecated: Use HTTPHeader.ProtoReflect.Descriptor instead.

func (*HTTPHeader) GetName

func (x *HTTPHeader) GetName() string

func (*HTTPHeader) GetValue

func (x *HTTPHeader) GetValue() string

func (*HTTPHeader) MarshalJSON

func (this *HTTPHeader) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for HTTPHeader

func (*HTTPHeader) ProtoMessage

func (*HTTPHeader) ProtoMessage()

func (*HTTPHeader) ProtoReflect

func (x *HTTPHeader) ProtoReflect() protoreflect.Message

func (*HTTPHeader) Reset

func (x *HTTPHeader) Reset()

func (*HTTPHeader) String

func (x *HTTPHeader) String() string

func (*HTTPHeader) UnmarshalJSON

func (this *HTTPHeader) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for HTTPHeader

type HTTPHealthCheckConfig

type HTTPHealthCheckConfig struct {

	// Path to access on the HTTP server.
	Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
	// Port on which the endpoint lives.
	Port uint32 `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"`
	// Host name to connect to, defaults to the pod IP. You probably want to set
	// "Host" in httpHeaders instead.
	Host string `protobuf:"bytes,3,opt,name=host,proto3" json:"host,omitempty"`
	// HTTP or HTTPS, defaults to HTTP
	Scheme string `protobuf:"bytes,4,opt,name=scheme,proto3" json:"scheme,omitempty"`
	// Headers the proxy will pass on to make the request.
	// Allows repeated headers.
	HttpHeaders []*HTTPHeader `protobuf:"bytes,5,rep,name=http_headers,json=httpHeaders,proto3" json:"http_headers,omitempty"`
	// contains filtered or unexported fields
}

func (*HTTPHealthCheckConfig) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HTTPHealthCheckConfig. Required by controller-gen.

func (*HTTPHealthCheckConfig) DeepCopyInterface

func (in *HTTPHealthCheckConfig) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new HTTPHealthCheckConfig. Required by controller-gen.

func (*HTTPHealthCheckConfig) DeepCopyInto

func (in *HTTPHealthCheckConfig) DeepCopyInto(out *HTTPHealthCheckConfig)

DeepCopyInto supports using HTTPHealthCheckConfig within kubernetes types, where deepcopy-gen is used.

func (*HTTPHealthCheckConfig) Descriptor deprecated

func (*HTTPHealthCheckConfig) Descriptor() ([]byte, []int)

Deprecated: Use HTTPHealthCheckConfig.ProtoReflect.Descriptor instead.

func (*HTTPHealthCheckConfig) GetHost

func (x *HTTPHealthCheckConfig) GetHost() string

func (*HTTPHealthCheckConfig) GetHttpHeaders

func (x *HTTPHealthCheckConfig) GetHttpHeaders() []*HTTPHeader

func (*HTTPHealthCheckConfig) GetPath

func (x *HTTPHealthCheckConfig) GetPath() string

func (*HTTPHealthCheckConfig) GetPort

func (x *HTTPHealthCheckConfig) GetPort() uint32

func (*HTTPHealthCheckConfig) GetScheme

func (x *HTTPHealthCheckConfig) GetScheme() string

func (*HTTPHealthCheckConfig) MarshalJSON

func (this *HTTPHealthCheckConfig) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for HTTPHealthCheckConfig

func (*HTTPHealthCheckConfig) ProtoMessage

func (*HTTPHealthCheckConfig) ProtoMessage()

func (*HTTPHealthCheckConfig) ProtoReflect

func (x *HTTPHealthCheckConfig) ProtoReflect() protoreflect.Message

func (*HTTPHealthCheckConfig) Reset

func (x *HTTPHealthCheckConfig) Reset()

func (*HTTPHealthCheckConfig) String

func (x *HTTPHealthCheckConfig) String() string

func (*HTTPHealthCheckConfig) UnmarshalJSON

func (this *HTTPHealthCheckConfig) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for HTTPHealthCheckConfig

type HTTPMatchRequest

type HTTPMatchRequest struct {

	// The name assigned to a match. The match's name will be
	// concatenated with the parent route's name and will be logged in
	// the access logs for requests matching this route.
	Name string `protobuf:"bytes,11,opt,name=name,proto3" json:"name,omitempty"`
	// URI to match
	// values are case-sensitive and formatted as follows:
	//
	// - `exact: "value"` for exact string match
	//
	// - `prefix: "value"` for prefix-based match
	//
	// - `regex: "value"` for RE2 style regex-based match (https://github.com/google/re2/wiki/Syntax).
	//
	// **Note:** Case-insensitive matching could be enabled via the
	// `ignoreUriCase` flag.
	Uri *StringMatch `protobuf:"bytes,1,opt,name=uri,proto3" json:"uri,omitempty"`
	// URI Scheme
	// values are case-sensitive and formatted as follows:
	//
	// - `exact: "value"` for exact string match
	//
	// - `prefix: "value"` for prefix-based match
	//
	// - `regex: "value"` for RE2 style regex-based match (https://github.com/google/re2/wiki/Syntax).
	Scheme *StringMatch `protobuf:"bytes,2,opt,name=scheme,proto3" json:"scheme,omitempty"`
	// HTTP Method
	// values are case-sensitive and formatted as follows:
	//
	// - `exact: "value"` for exact string match
	//
	// - `prefix: "value"` for prefix-based match
	//
	// - `regex: "value"` for RE2 style regex-based match (https://github.com/google/re2/wiki/Syntax).
	Method *StringMatch `protobuf:"bytes,3,opt,name=method,proto3" json:"method,omitempty"`
	// HTTP Authority
	// values are case-sensitive and formatted as follows:
	//
	// - `exact: "value"` for exact string match
	//
	// - `prefix: "value"` for prefix-based match
	//
	// - `regex: "value"` for RE2 style regex-based match (https://github.com/google/re2/wiki/Syntax).
	Authority *StringMatch `protobuf:"bytes,4,opt,name=authority,proto3" json:"authority,omitempty"`
	// The header keys must be lowercase and use hyphen as the separator,
	// e.g. _x-request-id_.
	//
	// Header values are case-sensitive and formatted as follows:
	//
	// - `exact: "value"` for exact string match
	//
	// - `prefix: "value"` for prefix-based match
	//
	// - `regex: "value"` for RE2 style regex-based match (https://github.com/google/re2/wiki/Syntax).
	//
	// If the value is empty and only the name of header is specified, presence of the header is checked.
	// To provide an empty value, use `{}`, for example:
	//
	// “`
	//   - match:
	//   - headers:
	//     myheader: {}
	//
	// “`
	// **Note:** The keys `uri`, `scheme`, `method`, and `authority` will be ignored.
	Headers map[string]*StringMatch `` /* 155-byte string literal not displayed */
	// Specifies the ports on the host that is being addressed. Many services
	// only expose a single port or label ports with the protocols they support,
	// in these cases it is not required to explicitly select the port.
	Port uint32 `protobuf:"varint,6,opt,name=port,proto3" json:"port,omitempty"`
	// One or more labels that constrain the applicability of a rule to source (client) workloads
	// with the given labels. If the VirtualService has a list of gateways specified
	// in the top-level `gateways` field, it must include the reserved gateway
	// `mesh` for this field to be applicable.
	SourceLabels map[string]string `` /* 185-byte string literal not displayed */
	// Names of gateways where the rule should be applied. Gateway names
	// in the top-level `gateways` field of the VirtualService (if any) are overridden. The gateway
	// match is independent of sourceLabels.
	Gateways []string `protobuf:"bytes,8,rep,name=gateways,proto3" json:"gateways,omitempty"`
	// Query parameters for matching.
	//
	// Ex:
	//
	//   - For a query parameter like "?key=true", the map key would be "key" and
	//     the string match could be defined as `exact: "true"`.
	//
	//   - For a query parameter like "?key", the map key would be "key" and the
	//     string match could be defined as `exact: ""`.
	//
	//   - For a query parameter like "?key=abc" or "?key=abx", the map key would be "key" and the
	//     string match could be defined as `prefix: "ab"`.
	//
	//   - For a query parameter like "?key=123", the map key would be "key" and the
	//     string match could be defined as `regex: "\d+$"`. Note that this
	//     configuration will only match values like "123" but not "a123" or "123a".
	QueryParams map[string]*StringMatch `` /* 182-byte string literal not displayed */
	// Flag to specify whether the URI matching should be case-insensitive.
	//
	// **Note:** The case will be ignored only in the case of `exact` and `prefix`
	// URI matches.
	IgnoreUriCase bool `protobuf:"varint,10,opt,name=ignore_uri_case,json=ignoreUriCase,proto3" json:"ignore_uri_case,omitempty"`
	// withoutHeader has the same syntax with the header, but has opposite meaning.
	// If a header is matched with a matching rule among withoutHeader, the traffic becomes not matched one.
	WithoutHeaders map[string]*StringMatch `` /* 192-byte string literal not displayed */
	// Source namespace constraining the applicability of a rule to workloads in that namespace.
	// If the VirtualService has a list of gateways specified in the top-level `gateways` field,
	// it must include the reserved gateway `mesh` for this field to be applicable.
	SourceNamespace string `protobuf:"bytes,13,opt,name=source_namespace,json=sourceNamespace,proto3" json:"source_namespace,omitempty"`
	// The human readable prefix to use when emitting statistics for this route.
	// The statistics are generated with prefix route.<stat_prefix>.
	// This should be set for highly critical routes that one wishes to get "per-route" statistics on.
	// This prefix is only for proxy-level statistics (envoy_*) and not service-level (istio_*) statistics.
	// Refer to https://www.envoyproxy.io/docs/envoy/latest/api-v3/config/route/v3/route_components.proto#envoy-v3-api-field-config-route-v3-route-stat-prefix
	// for statistics that are generated when this is configured.
	StatPrefix string `protobuf:"bytes,14,opt,name=stat_prefix,json=statPrefix,proto3" json:"stat_prefix,omitempty"`
	// contains filtered or unexported fields
}

HttpMatchRequest specifies a set of criterion to be met in order for the rule to be applied to the HTTP request. For example, the following restricts the rule to match only requests where the URL path starts with /ratings/v2/ and the request contains a custom `end-user` header with value `jason`.

{{<tabset category-name="example">}} {{<tab name="v1alpha3" category-value="v1alpha3">}} ```yaml apiVersion: networking.istio.io/v1alpha3 kind: VirtualService metadata:

name: ratings-route

spec:

hosts:
- ratings.prod.svc.cluster.local
http:
- match:
  - headers:
      end-user:
        exact: jason
    uri:
      prefix: "/ratings/v2/"
    ignoreUriCase: true
  route:
  - destination:
      host: ratings.prod.svc.cluster.local

``` {{</tab>}}

{{<tab name="v1beta1" category-value="v1beta1">}} ```yaml apiVersion: networking.istio.io/v1beta1 kind: VirtualService metadata:

name: ratings-route

spec:

hosts:
- ratings.prod.svc.cluster.local
http:
- match:
  - headers:
      end-user:
        exact: jason
    uri:
      prefix: "/ratings/v2/"
    ignoreUriCase: true
  route:
  - destination:
      host: ratings.prod.svc.cluster.local

``` {{</tab>}} {{</tabset>}}

HTTPMatchRequest CANNOT be empty. **Note:** 1. If a root VirtualService have matched any property (path, header etc.) by regex, delegate VirtualServices should not have any other matches on the same property. 2. If a delegate VirtualService have matched any property (path, header etc.) by regex, root VirtualServices should not have any other matches on the same property.

func (*HTTPMatchRequest) DeepCopy

func (in *HTTPMatchRequest) DeepCopy() *HTTPMatchRequest

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HTTPMatchRequest. Required by controller-gen.

func (*HTTPMatchRequest) DeepCopyInterface

func (in *HTTPMatchRequest) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new HTTPMatchRequest. Required by controller-gen.

func (*HTTPMatchRequest) DeepCopyInto

func (in *HTTPMatchRequest) DeepCopyInto(out *HTTPMatchRequest)

DeepCopyInto supports using HTTPMatchRequest within kubernetes types, where deepcopy-gen is used.

func (*HTTPMatchRequest) Descriptor deprecated

func (*HTTPMatchRequest) Descriptor() ([]byte, []int)

Deprecated: Use HTTPMatchRequest.ProtoReflect.Descriptor instead.

func (*HTTPMatchRequest) GetAuthority

func (x *HTTPMatchRequest) GetAuthority() *StringMatch

func (*HTTPMatchRequest) GetGateways

func (x *HTTPMatchRequest) GetGateways() []string

func (*HTTPMatchRequest) GetHeaders

func (x *HTTPMatchRequest) GetHeaders() map[string]*StringMatch

func (*HTTPMatchRequest) GetIgnoreUriCase

func (x *HTTPMatchRequest) GetIgnoreUriCase() bool

func (*HTTPMatchRequest) GetMethod

func (x *HTTPMatchRequest) GetMethod() *StringMatch

func (*HTTPMatchRequest) GetName

func (x *HTTPMatchRequest) GetName() string

func (*HTTPMatchRequest) GetPort

func (x *HTTPMatchRequest) GetPort() uint32

func (*HTTPMatchRequest) GetQueryParams

func (x *HTTPMatchRequest) GetQueryParams() map[string]*StringMatch

func (*HTTPMatchRequest) GetScheme

func (x *HTTPMatchRequest) GetScheme() *StringMatch

func (*HTTPMatchRequest) GetSourceLabels

func (x *HTTPMatchRequest) GetSourceLabels() map[string]string

func (*HTTPMatchRequest) GetSourceNamespace

func (x *HTTPMatchRequest) GetSourceNamespace() string

func (*HTTPMatchRequest) GetStatPrefix

func (x *HTTPMatchRequest) GetStatPrefix() string

func (*HTTPMatchRequest) GetUri

func (x *HTTPMatchRequest) GetUri() *StringMatch

func (*HTTPMatchRequest) GetWithoutHeaders

func (x *HTTPMatchRequest) GetWithoutHeaders() map[string]*StringMatch

func (*HTTPMatchRequest) MarshalJSON

func (this *HTTPMatchRequest) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for HTTPMatchRequest

func (*HTTPMatchRequest) ProtoMessage

func (*HTTPMatchRequest) ProtoMessage()

func (*HTTPMatchRequest) ProtoReflect

func (x *HTTPMatchRequest) ProtoReflect() protoreflect.Message

func (*HTTPMatchRequest) Reset

func (x *HTTPMatchRequest) Reset()

func (*HTTPMatchRequest) String

func (x *HTTPMatchRequest) String() string

func (*HTTPMatchRequest) UnmarshalJSON

func (this *HTTPMatchRequest) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for HTTPMatchRequest

type HTTPMirrorPolicy

type HTTPMirrorPolicy struct {

	// Destination specifies the target of the mirror operation.
	Destination *Destination `protobuf:"bytes,1,opt,name=destination,proto3" json:"destination,omitempty"`
	// Percentage of the traffic to be mirrored by the `destination` field.
	// If this field is absent, all the traffic (100%) will be mirrored.
	// Max value is 100.
	Percentage *Percent `protobuf:"bytes,2,opt,name=percentage,proto3" json:"percentage,omitempty"`
	// contains filtered or unexported fields
}

HTTPMirrorPolicy can be used to specify the destinations to mirror HTTP traffic in addition to the original destination. Mirrored traffic is on a best effort basis where the sidecar/gateway will not wait for the mirrored destinations to respond before returning the response from the original destination. Statistics will be generated for the mirrored destination.

func (*HTTPMirrorPolicy) DeepCopy

func (in *HTTPMirrorPolicy) DeepCopy() *HTTPMirrorPolicy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HTTPMirrorPolicy. Required by controller-gen.

func (*HTTPMirrorPolicy) DeepCopyInterface

func (in *HTTPMirrorPolicy) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new HTTPMirrorPolicy. Required by controller-gen.

func (*HTTPMirrorPolicy) DeepCopyInto

func (in *HTTPMirrorPolicy) DeepCopyInto(out *HTTPMirrorPolicy)

DeepCopyInto supports using HTTPMirrorPolicy within kubernetes types, where deepcopy-gen is used.

func (*HTTPMirrorPolicy) Descriptor deprecated

func (*HTTPMirrorPolicy) Descriptor() ([]byte, []int)

Deprecated: Use HTTPMirrorPolicy.ProtoReflect.Descriptor instead.

func (*HTTPMirrorPolicy) GetDestination

func (x *HTTPMirrorPolicy) GetDestination() *Destination

func (*HTTPMirrorPolicy) GetPercentage

func (x *HTTPMirrorPolicy) GetPercentage() *Percent

func (*HTTPMirrorPolicy) MarshalJSON

func (this *HTTPMirrorPolicy) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for HTTPMirrorPolicy

func (*HTTPMirrorPolicy) ProtoMessage

func (*HTTPMirrorPolicy) ProtoMessage()

func (*HTTPMirrorPolicy) ProtoReflect

func (x *HTTPMirrorPolicy) ProtoReflect() protoreflect.Message

func (*HTTPMirrorPolicy) Reset

func (x *HTTPMirrorPolicy) Reset()

func (*HTTPMirrorPolicy) String

func (x *HTTPMirrorPolicy) String() string

func (*HTTPMirrorPolicy) UnmarshalJSON

func (this *HTTPMirrorPolicy) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for HTTPMirrorPolicy

type HTTPRedirect

type HTTPRedirect struct {

	// On a redirect, overwrite the Path portion of the URL with this
	// value. Note that the entire path will be replaced, irrespective of the
	// request URI being matched as an exact path or prefix.
	Uri string `protobuf:"bytes,1,opt,name=uri,proto3" json:"uri,omitempty"`
	// On a redirect, overwrite the Authority/Host portion of the URL with
	// this value.
	Authority string `protobuf:"bytes,2,opt,name=authority,proto3" json:"authority,omitempty"`
	// Types that are assignable to RedirectPort:
	//
	//	*HTTPRedirect_Port
	//	*HTTPRedirect_DerivePort
	RedirectPort isHTTPRedirect_RedirectPort `protobuf_oneof:"redirect_port"`
	// On a redirect, overwrite the scheme portion of the URL with this value.
	// For example, `http` or `https`.
	// If unset, the original scheme will be used.
	// If `derivePort` is set to `FROM_PROTOCOL_DEFAULT`, this will impact the port used as well
	Scheme string `protobuf:"bytes,6,opt,name=scheme,proto3" json:"scheme,omitempty"`
	// On a redirect, Specifies the HTTP status code to use in the redirect
	// response. The default response code is MOVED_PERMANENTLY (301).
	RedirectCode uint32 `protobuf:"varint,3,opt,name=redirect_code,json=redirectCode,proto3" json:"redirect_code,omitempty"`
	// contains filtered or unexported fields
}

HTTPRedirect can be used to send a 301 redirect response to the caller, where the Authority/Host and the URI in the response can be swapped with the specified values. For example, the following rule redirects requests for /v1/getProductRatings API on the ratings service to /v1/bookRatings provided by the bookratings service.

{{<tabset category-name="example">}} {{<tab name="v1alpha3" category-value="v1alpha3">}} ```yaml apiVersion: networking.istio.io/v1alpha3 kind: VirtualService metadata:

name: ratings-route

spec:

hosts:
- ratings.prod.svc.cluster.local
http:
- match:
  - uri:
      exact: /v1/getProductRatings
  redirect:
    uri: /v1/bookRatings
    authority: newratings.default.svc.cluster.local
...

``` {{</tab>}}

{{<tab name="v1beta1" category-value="v1beta1">}} ```yaml apiVersion: networking.istio.io/v1beta1 kind: VirtualService metadata:

name: ratings-route

spec:

hosts:
- ratings.prod.svc.cluster.local
http:
- match:
  - uri:
      exact: /v1/getProductRatings
  redirect:
    uri: /v1/bookRatings
    authority: newratings.default.svc.cluster.local
...

``` {{</tab>}} {{</tabset>}}

func (*HTTPRedirect) DeepCopy

func (in *HTTPRedirect) DeepCopy() *HTTPRedirect

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HTTPRedirect. Required by controller-gen.

func (*HTTPRedirect) DeepCopyInterface

func (in *HTTPRedirect) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new HTTPRedirect. Required by controller-gen.

func (*HTTPRedirect) DeepCopyInto

func (in *HTTPRedirect) DeepCopyInto(out *HTTPRedirect)

DeepCopyInto supports using HTTPRedirect within kubernetes types, where deepcopy-gen is used.

func (*HTTPRedirect) Descriptor deprecated

func (*HTTPRedirect) Descriptor() ([]byte, []int)

Deprecated: Use HTTPRedirect.ProtoReflect.Descriptor instead.

func (*HTTPRedirect) GetAuthority

func (x *HTTPRedirect) GetAuthority() string

func (*HTTPRedirect) GetDerivePort

func (*HTTPRedirect) GetPort

func (x *HTTPRedirect) GetPort() uint32

func (*HTTPRedirect) GetRedirectCode

func (x *HTTPRedirect) GetRedirectCode() uint32

func (*HTTPRedirect) GetRedirectPort

func (m *HTTPRedirect) GetRedirectPort() isHTTPRedirect_RedirectPort

func (*HTTPRedirect) GetScheme

func (x *HTTPRedirect) GetScheme() string

func (*HTTPRedirect) GetUri

func (x *HTTPRedirect) GetUri() string

func (*HTTPRedirect) MarshalJSON

func (this *HTTPRedirect) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for HTTPRedirect

func (*HTTPRedirect) ProtoMessage

func (*HTTPRedirect) ProtoMessage()

func (*HTTPRedirect) ProtoReflect

func (x *HTTPRedirect) ProtoReflect() protoreflect.Message

func (*HTTPRedirect) Reset

func (x *HTTPRedirect) Reset()

func (*HTTPRedirect) String

func (x *HTTPRedirect) String() string

func (*HTTPRedirect) UnmarshalJSON

func (this *HTTPRedirect) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for HTTPRedirect

type HTTPRedirect_DerivePort

type HTTPRedirect_DerivePort struct {
	// On a redirect, dynamically set the port:
	// * FROM_PROTOCOL_DEFAULT: automatically set to 80 for HTTP and 443 for HTTPS.
	// * FROM_REQUEST_PORT: automatically use the port of the request.
	DerivePort HTTPRedirect_RedirectPortSelection `` /* 135-byte string literal not displayed */
}

type HTTPRedirect_Port

type HTTPRedirect_Port struct {
	// On a redirect, overwrite the port portion of the URL with this value.
	Port uint32 `protobuf:"varint,4,opt,name=port,proto3,oneof"`
}

type HTTPRedirect_RedirectPortSelection

type HTTPRedirect_RedirectPortSelection int32
const (
	HTTPRedirect_FROM_PROTOCOL_DEFAULT HTTPRedirect_RedirectPortSelection = 0
	HTTPRedirect_FROM_REQUEST_PORT     HTTPRedirect_RedirectPortSelection = 1
)

func (HTTPRedirect_RedirectPortSelection) Descriptor

func (HTTPRedirect_RedirectPortSelection) Enum

func (HTTPRedirect_RedirectPortSelection) EnumDescriptor deprecated

func (HTTPRedirect_RedirectPortSelection) EnumDescriptor() ([]byte, []int)

Deprecated: Use HTTPRedirect_RedirectPortSelection.Descriptor instead.

func (HTTPRedirect_RedirectPortSelection) Number

func (HTTPRedirect_RedirectPortSelection) String

func (HTTPRedirect_RedirectPortSelection) Type

type HTTPRetry

type HTTPRetry struct {

	// Number of retries to be allowed for a given request. The interval
	// between retries will be determined automatically (25ms+). When request
	// `timeout` of the [HTTP route](https://istio.io/docs/reference/config/networking/virtual-service/#HTTPRoute)
	// or `per_try_timeout` is configured, the actual number of retries attempted also depends on
	// the specified request `timeout` and `per_try_timeout` values. MUST BE >= 0. If `0`, retries will be disabled.
	// The maximum possible number of requests made will be 1 + `attempts`.
	Attempts int32 `protobuf:"varint,1,opt,name=attempts,proto3" json:"attempts,omitempty"`
	// Timeout per attempt for a given request, including the initial call and any retries. Format: 1h/1m/1s/1ms. MUST BE >=1ms.
	// Default is same value as request
	// `timeout` of the [HTTP route](https://istio.io/docs/reference/config/networking/virtual-service/#HTTPRoute),
	// which means no timeout.
	PerTryTimeout *duration.Duration `protobuf:"bytes,2,opt,name=per_try_timeout,json=perTryTimeout,proto3" json:"per_try_timeout,omitempty"`
	// Specifies the conditions under which retry takes place.
	// One or more policies can be specified using a ‘,’ delimited list.
	// If `retry_on` specifies a valid HTTP status, it will be added to retriable_status_codes retry policy.
	// See the [retry policies](https://www.envoyproxy.io/docs/envoy/latest/configuration/http/http_filters/router_filter#x-envoy-retry-on)
	// and [gRPC retry policies](https://www.envoyproxy.io/docs/envoy/latest/configuration/http/http_filters/router_filter#x-envoy-retry-grpc-on) for more details.
	RetryOn string `protobuf:"bytes,3,opt,name=retry_on,json=retryOn,proto3" json:"retry_on,omitempty"`
	// Flag to specify whether the retries should retry to other localities.
	// See the [retry plugin configuration](https://www.envoyproxy.io/docs/envoy/latest/intro/arch_overview/http/http_connection_management#retry-plugin-configuration) for more details.
	RetryRemoteLocalities *wrappers.BoolValue `` /* 126-byte string literal not displayed */
	// contains filtered or unexported fields
}

Describes the retry policy to use when a HTTP request fails. For example, the following rule sets the maximum number of retries to 3 when calling ratings:v1 service, with a 2s timeout per retry attempt. A retry will be attempted if there is a connect-failure, refused_stream or when the upstream server responds with Service Unavailable(503).

{{<tabset category-name="example">}} {{<tab name="v1alpha3" category-value="v1alpha3">}} ```yaml apiVersion: networking.istio.io/v1alpha3 kind: VirtualService metadata:

name: ratings-route

spec:

hosts:
- ratings.prod.svc.cluster.local
http:
- route:
  - destination:
      host: ratings.prod.svc.cluster.local
      subset: v1
  retries:
    attempts: 3
    perTryTimeout: 2s
    retryOn: connect-failure,refused-stream,503

``` {{</tab>}}

{{<tab name="v1beta1" category-value="v1beta1">}} ```yaml apiVersion: networking.istio.io/v1beta1 kind: VirtualService metadata:

name: ratings-route

spec:

hosts:
- ratings.prod.svc.cluster.local
http:
- route:
  - destination:
      host: ratings.prod.svc.cluster.local
      subset: v1
  retries:
    attempts: 3
    perTryTimeout: 2s
    retryOn: gateway-error,connect-failure,refused-stream

``` {{</tab>}} {{</tabset>}}

func (*HTTPRetry) DeepCopy

func (in *HTTPRetry) DeepCopy() *HTTPRetry

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HTTPRetry. Required by controller-gen.

func (*HTTPRetry) DeepCopyInterface

func (in *HTTPRetry) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new HTTPRetry. Required by controller-gen.

func (*HTTPRetry) DeepCopyInto

func (in *HTTPRetry) DeepCopyInto(out *HTTPRetry)

DeepCopyInto supports using HTTPRetry within kubernetes types, where deepcopy-gen is used.

func (*HTTPRetry) Descriptor deprecated

func (*HTTPRetry) Descriptor() ([]byte, []int)

Deprecated: Use HTTPRetry.ProtoReflect.Descriptor instead.

func (*HTTPRetry) GetAttempts

func (x *HTTPRetry) GetAttempts() int32

func (*HTTPRetry) GetPerTryTimeout

func (x *HTTPRetry) GetPerTryTimeout() *duration.Duration

func (*HTTPRetry) GetRetryOn

func (x *HTTPRetry) GetRetryOn() string

func (*HTTPRetry) GetRetryRemoteLocalities

func (x *HTTPRetry) GetRetryRemoteLocalities() *wrappers.BoolValue

func (*HTTPRetry) MarshalJSON

func (this *HTTPRetry) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for HTTPRetry

func (*HTTPRetry) ProtoMessage

func (*HTTPRetry) ProtoMessage()

func (*HTTPRetry) ProtoReflect

func (x *HTTPRetry) ProtoReflect() protoreflect.Message

func (*HTTPRetry) Reset

func (x *HTTPRetry) Reset()

func (*HTTPRetry) String

func (x *HTTPRetry) String() string

func (*HTTPRetry) UnmarshalJSON

func (this *HTTPRetry) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for HTTPRetry

type HTTPRewrite

type HTTPRewrite struct {

	// rewrite the path (or the prefix) portion of the URI with this
	// value. If the original URI was matched based on prefix, the value
	// provided in this field will replace the corresponding matched prefix.
	Uri string `protobuf:"bytes,1,opt,name=uri,proto3" json:"uri,omitempty"`
	// rewrite the Authority/Host header with this value.
	Authority string `protobuf:"bytes,2,opt,name=authority,proto3" json:"authority,omitempty"`
	// rewrite the path portion of the URI with the specified regex.
	UriRegexRewrite *RegexRewrite `protobuf:"bytes,3,opt,name=uri_regex_rewrite,json=uriRegexRewrite,proto3" json:"uri_regex_rewrite,omitempty"`
	// contains filtered or unexported fields
}

HTTPRewrite can be used to rewrite specific parts of a HTTP request before forwarding the request to the destination. Rewrite primitive can be used only with HTTPRouteDestination. The following example demonstrates how to rewrite the URL prefix for api call (/ratings) to ratings service before making the actual API call.

{{<tabset category-name="example">}} {{<tab name="v1alpha3" category-value="v1alpha3">}} ```yaml apiVersion: networking.istio.io/v1alpha3 kind: VirtualService metadata:

name: ratings-route

spec:

hosts:
- ratings.prod.svc.cluster.local
http:
- match:
  - uri:
      prefix: /ratings
  rewrite:
    uri: /v1/bookRatings
  route:
  - destination:
      host: ratings.prod.svc.cluster.local
      subset: v1

``` {{</tab>}}

{{<tab name="v1beta1" category-value="v1beta1">}} ```yaml apiVersion: networking.istio.io/v1beta1 kind: VirtualService metadata:

name: ratings-route

spec:

hosts:
- ratings.prod.svc.cluster.local
http:
- match:
  - uri:
      prefix: /ratings
  rewrite:
    uri: /v1/bookRatings
  route:
  - destination:
      host: ratings.prod.svc.cluster.local
      subset: v1

``` {{</tab>}} {{</tabset>}}

func (*HTTPRewrite) DeepCopy

func (in *HTTPRewrite) DeepCopy() *HTTPRewrite

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HTTPRewrite. Required by controller-gen.

func (*HTTPRewrite) DeepCopyInterface

func (in *HTTPRewrite) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new HTTPRewrite. Required by controller-gen.

func (*HTTPRewrite) DeepCopyInto

func (in *HTTPRewrite) DeepCopyInto(out *HTTPRewrite)

DeepCopyInto supports using HTTPRewrite within kubernetes types, where deepcopy-gen is used.

func (*HTTPRewrite) Descriptor deprecated

func (*HTTPRewrite) Descriptor() ([]byte, []int)

Deprecated: Use HTTPRewrite.ProtoReflect.Descriptor instead.

func (*HTTPRewrite) GetAuthority

func (x *HTTPRewrite) GetAuthority() string

func (*HTTPRewrite) GetUri

func (x *HTTPRewrite) GetUri() string

func (*HTTPRewrite) GetUriRegexRewrite

func (x *HTTPRewrite) GetUriRegexRewrite() *RegexRewrite

func (*HTTPRewrite) MarshalJSON

func (this *HTTPRewrite) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for HTTPRewrite

func (*HTTPRewrite) ProtoMessage

func (*HTTPRewrite) ProtoMessage()

func (*HTTPRewrite) ProtoReflect

func (x *HTTPRewrite) ProtoReflect() protoreflect.Message

func (*HTTPRewrite) Reset

func (x *HTTPRewrite) Reset()

func (*HTTPRewrite) String

func (x *HTTPRewrite) String() string

func (*HTTPRewrite) UnmarshalJSON

func (this *HTTPRewrite) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for HTTPRewrite

type HTTPRoute

type HTTPRoute struct {

	// The name assigned to the route for debugging purposes. The
	// route's name will be concatenated with the match's name and will
	// be logged in the access logs for requests matching this
	// route/match.
	Name string `protobuf:"bytes,17,opt,name=name,proto3" json:"name,omitempty"`
	// Match conditions to be satisfied for the rule to be
	// activated. All conditions inside a single match block have AND
	// semantics, while the list of match blocks have OR semantics. The rule
	// is matched if any one of the match blocks succeed.
	Match []*HTTPMatchRequest `protobuf:"bytes,1,rep,name=match,proto3" json:"match,omitempty"`
	// A HTTP rule can either return a direct_response, redirect or forward (default) traffic.
	// The forwarding target can be one of several versions of a service (see
	// glossary in beginning of document). Weights associated with the
	// service version determine the proportion of traffic it receives.
	Route []*HTTPRouteDestination `protobuf:"bytes,2,rep,name=route,proto3" json:"route,omitempty"`
	// A HTTP rule can either return a direct_response, redirect or forward (default) traffic.
	// If traffic passthrough option is specified in the rule,
	// route/redirect will be ignored. The redirect primitive can be used to
	// send a HTTP 301 redirect to a different URI or Authority.
	Redirect *HTTPRedirect `protobuf:"bytes,3,opt,name=redirect,proto3" json:"redirect,omitempty"`
	// A HTTP rule can either return a direct_response, redirect or forward (default) traffic.
	// Direct Response is used to specify a fixed response that should
	// be sent to clients.
	//
	// It can be set only when `Route` and `Redirect` are empty.
	DirectResponse *HTTPDirectResponse `protobuf:"bytes,21,opt,name=direct_response,json=directResponse,proto3" json:"direct_response,omitempty"`
	// Delegate is used to specify the particular VirtualService which
	// can be used to define delegate HTTPRoute.
	//
	// It can be set only when `Route` and `Redirect` are empty, and the route
	// rules of the delegate VirtualService will be merged with that in the
	// current one.
	//
	// **NOTE**:
	//
	//  1. Only one level delegation is supported.
	//  2. The delegate's HTTPMatchRequest must be a strict subset of the root's,
	//     otherwise there is a conflict and the HTTPRoute will not take effect.
	Delegate *Delegate `protobuf:"bytes,20,opt,name=delegate,proto3" json:"delegate,omitempty"`
	// Rewrite HTTP URIs and Authority headers. Rewrite cannot be used with
	// Redirect primitive. Rewrite will be performed before forwarding.
	Rewrite *HTTPRewrite `protobuf:"bytes,4,opt,name=rewrite,proto3" json:"rewrite,omitempty"`
	// Timeout for HTTP requests, default is disabled.
	Timeout *duration.Duration `protobuf:"bytes,6,opt,name=timeout,proto3" json:"timeout,omitempty"`
	// Retry policy for HTTP requests.
	Retries *HTTPRetry `protobuf:"bytes,7,opt,name=retries,proto3" json:"retries,omitempty"`
	// Fault injection policy to apply on HTTP traffic at the client side.
	// Note that timeouts or retries will not be enabled when faults are
	// enabled on the client side.
	Fault *HTTPFaultInjection `protobuf:"bytes,8,opt,name=fault,proto3" json:"fault,omitempty"`
	// Mirror HTTP traffic to a another destination in addition to forwarding
	// the requests to the intended destination. Mirrored traffic is on a
	// best effort basis where the sidecar/gateway will not wait for the
	// mirrored cluster to respond before returning the response from the
	// original destination.  Statistics will be generated for the mirrored
	// destination.
	Mirror *Destination `protobuf:"bytes,9,opt,name=mirror,proto3" json:"mirror,omitempty"`
	// Specifies the destinations to mirror HTTP traffic in addition
	// to the original destination. Mirrored traffic is on a
	// best effort basis where the sidecar/gateway will not wait for the
	// mirrored destinations to respond before returning the response from the
	// original destination. Statistics will be generated for the mirrored
	// destination.
	Mirrors []*HTTPMirrorPolicy `protobuf:"bytes,22,rep,name=mirrors,proto3" json:"mirrors,omitempty"`
	// Percentage of the traffic to be mirrored by the `mirror` field.
	// Use of integer `mirror_percent` value is deprecated. Use the
	// double `mirror_percentage` field instead
	// $hide_from_docs
	// +kubebuilder:altName=mirror_percent
	//
	// Deprecated: Marked as deprecated in networking/v1alpha3/virtual_service.proto.
	MirrorPercent *wrappers.UInt32Value `protobuf:"bytes,18,opt,name=mirror_percent,json=mirrorPercent,proto3" json:"mirror_percent,omitempty"`
	// Percentage of the traffic to be mirrored by the `mirror` field.
	// If this field is absent, all the traffic (100%) will be mirrored.
	// Max value is 100.
	MirrorPercentage *Percent `protobuf:"bytes,19,opt,name=mirror_percentage,json=mirrorPercentage,proto3" json:"mirror_percentage,omitempty"`
	// Cross-Origin Resource Sharing policy (CORS). Refer to
	// [CORS](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS)
	// for further details about cross origin resource sharing.
	CorsPolicy *CorsPolicy `protobuf:"bytes,10,opt,name=cors_policy,json=corsPolicy,proto3" json:"cors_policy,omitempty"`
	// Header manipulation rules
	Headers *Headers `protobuf:"bytes,16,opt,name=headers,proto3" json:"headers,omitempty"`
	// contains filtered or unexported fields
}

Describes match conditions and actions for routing HTTP/1.1, HTTP2, and gRPC traffic. See VirtualService for usage examples.

func (*HTTPRoute) DeepCopy

func (in *HTTPRoute) DeepCopy() *HTTPRoute

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HTTPRoute. Required by controller-gen.

func (*HTTPRoute) DeepCopyInterface

func (in *HTTPRoute) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new HTTPRoute. Required by controller-gen.

func (*HTTPRoute) DeepCopyInto

func (in *HTTPRoute) DeepCopyInto(out *HTTPRoute)

DeepCopyInto supports using HTTPRoute within kubernetes types, where deepcopy-gen is used.

func (*HTTPRoute) Descriptor deprecated

func (*HTTPRoute) Descriptor() ([]byte, []int)

Deprecated: Use HTTPRoute.ProtoReflect.Descriptor instead.

func (*HTTPRoute) GetCorsPolicy

func (x *HTTPRoute) GetCorsPolicy() *CorsPolicy

func (*HTTPRoute) GetDelegate

func (x *HTTPRoute) GetDelegate() *Delegate

func (*HTTPRoute) GetDirectResponse

func (x *HTTPRoute) GetDirectResponse() *HTTPDirectResponse

func (*HTTPRoute) GetFault

func (x *HTTPRoute) GetFault() *HTTPFaultInjection

func (*HTTPRoute) GetHeaders

func (x *HTTPRoute) GetHeaders() *Headers

func (*HTTPRoute) GetMatch

func (x *HTTPRoute) GetMatch() []*HTTPMatchRequest

func (*HTTPRoute) GetMirror

func (x *HTTPRoute) GetMirror() *Destination

func (*HTTPRoute) GetMirrorPercent deprecated

func (x *HTTPRoute) GetMirrorPercent() *wrappers.UInt32Value

Deprecated: Marked as deprecated in networking/v1alpha3/virtual_service.proto.

func (*HTTPRoute) GetMirrorPercentage

func (x *HTTPRoute) GetMirrorPercentage() *Percent

func (*HTTPRoute) GetMirrors

func (x *HTTPRoute) GetMirrors() []*HTTPMirrorPolicy

func (*HTTPRoute) GetName

func (x *HTTPRoute) GetName() string

func (*HTTPRoute) GetRedirect

func (x *HTTPRoute) GetRedirect() *HTTPRedirect

func (*HTTPRoute) GetRetries

func (x *HTTPRoute) GetRetries() *HTTPRetry

func (*HTTPRoute) GetRewrite

func (x *HTTPRoute) GetRewrite() *HTTPRewrite

func (*HTTPRoute) GetRoute

func (x *HTTPRoute) GetRoute() []*HTTPRouteDestination

func (*HTTPRoute) GetTimeout

func (x *HTTPRoute) GetTimeout() *duration.Duration

func (*HTTPRoute) MarshalJSON

func (this *HTTPRoute) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for HTTPRoute

func (*HTTPRoute) ProtoMessage

func (*HTTPRoute) ProtoMessage()

func (*HTTPRoute) ProtoReflect

func (x *HTTPRoute) ProtoReflect() protoreflect.Message

func (*HTTPRoute) Reset

func (x *HTTPRoute) Reset()

func (*HTTPRoute) String

func (x *HTTPRoute) String() string

func (*HTTPRoute) UnmarshalJSON

func (this *HTTPRoute) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for HTTPRoute

type HTTPRouteDestination

type HTTPRouteDestination struct {

	// Destination uniquely identifies the instances of a service
	// to which the request/connection should be forwarded to.
	Destination *Destination `protobuf:"bytes,1,opt,name=destination,proto3" json:"destination,omitempty"`
	// Weight specifies the relative proportion of traffic to be forwarded to the destination. A destination will receive `weight/(sum of all weights)` requests.
	// If there is only one destination in a rule, it will receive all traffic.
	// Otherwise, if weight is `0`, the destination will not receive any traffic.
	Weight int32 `protobuf:"varint,2,opt,name=weight,proto3" json:"weight,omitempty"`
	// Header manipulation rules
	Headers *Headers `protobuf:"bytes,7,opt,name=headers,proto3" json:"headers,omitempty"`
	// contains filtered or unexported fields
}

Each routing rule is associated with one or more service versions (see glossary in beginning of document). Weights associated with the version determine the proportion of traffic it receives. For example, the following rule will route 25% of traffic for the "reviews" service to instances with the "v2" tag and the remaining traffic (i.e., 75%) to "v1".

{{<tabset category-name="example">}} {{<tab name="v1alpha3" category-value="v1alpha3">}} ```yaml apiVersion: networking.istio.io/v1alpha3 kind: VirtualService metadata:

name: reviews-route

spec:

hosts:
- reviews.prod.svc.cluster.local
http:
- route:
  - destination:
      host: reviews.prod.svc.cluster.local
      subset: v2
    weight: 25
  - destination:
      host: reviews.prod.svc.cluster.local
      subset: v1
    weight: 75

``` {{</tab>}}

{{<tab name="v1beta1" category-value="v1beta1">}} ```yaml apiVersion: networking.istio.io/v1beta1 kind: VirtualService metadata:

name: reviews-route

spec:

hosts:
- reviews.prod.svc.cluster.local
http:
- route:
  - destination:
      host: reviews.prod.svc.cluster.local
      subset: v2
    weight: 25
  - destination:
      host: reviews.prod.svc.cluster.local
      subset: v1
    weight: 75

``` {{</tab>}} {{</tabset>}}

And the associated DestinationRule

{{<tabset category-name="example">}} {{<tab name="v1alpha3" category-value="v1alpha3">}} ```yaml apiVersion: networking.istio.io/v1alpha3 kind: DestinationRule metadata:

name: reviews-destination

spec:

host: reviews.prod.svc.cluster.local
subsets:
- name: v1
  labels:
    version: v1
- name: v2
  labels:
    version: v2

``` {{</tab>}}

{{<tab name="v1beta1" category-value="v1beta1">}} ```yaml apiVersion: networking.istio.io/v1beta1 kind: DestinationRule metadata:

name: reviews-destination

spec:

host: reviews.prod.svc.cluster.local
subsets:
- name: v1
  labels:
    version: v1
- name: v2
  labels:
    version: v2

``` {{</tab>}} {{</tabset>}}

Traffic can also be split across two entirely different services without having to define new subsets. For example, the following rule forwards 25% of traffic to reviews.com to dev.reviews.com

{{<tabset category-name="example">}} {{<tab name="v1alpha3" category-value="v1alpha3">}} ```yaml apiVersion: networking.istio.io/v1alpha3 kind: VirtualService metadata:

name: reviews-route-two-domains

spec:

hosts:
- reviews.com
http:
- route:
  - destination:
      host: dev.reviews.com
    weight: 25
  - destination:
      host: reviews.com
    weight: 75

``` {{</tab>}}

{{<tab name="v1beta1" category-value="v1beta1">}} ```yaml apiVersion: networking.istio.io/v1beta1 kind: VirtualService metadata:

name: reviews-route-two-domains

spec:

hosts:
- reviews.com
http:
- route:
  - destination:
      host: dev.reviews.com
    weight: 25
  - destination:
      host: reviews.com
    weight: 75

``` {{</tab>}} {{</tabset>}}

func (*HTTPRouteDestination) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HTTPRouteDestination. Required by controller-gen.

func (*HTTPRouteDestination) DeepCopyInterface

func (in *HTTPRouteDestination) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new HTTPRouteDestination. Required by controller-gen.

func (*HTTPRouteDestination) DeepCopyInto

func (in *HTTPRouteDestination) DeepCopyInto(out *HTTPRouteDestination)

DeepCopyInto supports using HTTPRouteDestination within kubernetes types, where deepcopy-gen is used.

func (*HTTPRouteDestination) Descriptor deprecated

func (*HTTPRouteDestination) Descriptor() ([]byte, []int)

Deprecated: Use HTTPRouteDestination.ProtoReflect.Descriptor instead.

func (*HTTPRouteDestination) GetDestination

func (x *HTTPRouteDestination) GetDestination() *Destination

func (*HTTPRouteDestination) GetHeaders

func (x *HTTPRouteDestination) GetHeaders() *Headers

func (*HTTPRouteDestination) GetWeight

func (x *HTTPRouteDestination) GetWeight() int32

func (*HTTPRouteDestination) MarshalJSON

func (this *HTTPRouteDestination) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for HTTPRouteDestination

func (*HTTPRouteDestination) ProtoMessage

func (*HTTPRouteDestination) ProtoMessage()

func (*HTTPRouteDestination) ProtoReflect

func (x *HTTPRouteDestination) ProtoReflect() protoreflect.Message

func (*HTTPRouteDestination) Reset

func (x *HTTPRouteDestination) Reset()

func (*HTTPRouteDestination) String

func (x *HTTPRouteDestination) String() string

func (*HTTPRouteDestination) UnmarshalJSON

func (this *HTTPRouteDestination) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for HTTPRouteDestination

type Headers

type Headers struct {

	// Header manipulation rules to apply before forwarding a request
	// to the destination service
	Request *Headers_HeaderOperations `protobuf:"bytes,1,opt,name=request,proto3" json:"request,omitempty"`
	// Header manipulation rules to apply before returning a response
	// to the caller
	Response *Headers_HeaderOperations `protobuf:"bytes,2,opt,name=response,proto3" json:"response,omitempty"`
	// contains filtered or unexported fields
}

Message headers can be manipulated when Envoy forwards requests to, or responses from, a destination service. Header manipulation rules can be specified for a specific route destination or for all destinations. The following VirtualService adds a `test` header with the value `true` to requests that are routed to any `reviews` service destination. It also removes the `foo` response header, but only from responses coming from the `v1` subset (version) of the `reviews` service.

{{<tabset category-name="example">}} {{<tab name="v1alpha3" category-value="v1alpha3">}} ```yaml apiVersion: networking.istio.io/v1alpha3 kind: VirtualService metadata:

name: reviews-route

spec:

hosts:
- reviews.prod.svc.cluster.local
http:
- headers:
    request:
      set:
        test: "true"
  route:
  - destination:
      host: reviews.prod.svc.cluster.local
      subset: v2
    weight: 25
  - destination:
      host: reviews.prod.svc.cluster.local
      subset: v1
    headers:
      response:
        remove:
        - foo
    weight: 75

``` {{</tab>}}

{{<tab name="v1beta1" category-value="v1beta1">}} ```yaml apiVersion: networking.istio.io/v1beta1 kind: VirtualService metadata:

name: reviews-route

spec:

hosts:
- reviews.prod.svc.cluster.local
http:
- headers:
    request:
      set:
        test: "true"
  route:
  - destination:
      host: reviews.prod.svc.cluster.local
      subset: v2
    weight: 25
  - destination:
      host: reviews.prod.svc.cluster.local
      subset: v1
    headers:
      response:
        remove:
        - foo
    weight: 75

``` {{</tab>}} {{</tabset>}}

func (*Headers) DeepCopy

func (in *Headers) DeepCopy() *Headers

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Headers. Required by controller-gen.

func (*Headers) DeepCopyInterface

func (in *Headers) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new Headers. Required by controller-gen.

func (*Headers) DeepCopyInto

func (in *Headers) DeepCopyInto(out *Headers)

DeepCopyInto supports using Headers within kubernetes types, where deepcopy-gen is used.

func (*Headers) Descriptor deprecated

func (*Headers) Descriptor() ([]byte, []int)

Deprecated: Use Headers.ProtoReflect.Descriptor instead.

func (*Headers) GetRequest

func (x *Headers) GetRequest() *Headers_HeaderOperations

func (*Headers) GetResponse

func (x *Headers) GetResponse() *Headers_HeaderOperations

func (*Headers) MarshalJSON

func (this *Headers) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for Headers

func (*Headers) ProtoMessage

func (*Headers) ProtoMessage()

func (*Headers) ProtoReflect

func (x *Headers) ProtoReflect() protoreflect.Message

func (*Headers) Reset

func (x *Headers) Reset()

func (*Headers) String

func (x *Headers) String() string

func (*Headers) UnmarshalJSON

func (this *Headers) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for Headers

type Headers_HeaderOperations

type Headers_HeaderOperations struct {

	// Overwrite the headers specified by key with the given values
	Set map[string]string `` /* 147-byte string literal not displayed */
	// Append the given values to the headers specified by keys
	// (will create a comma-separated list of values)
	Add map[string]string `` /* 147-byte string literal not displayed */
	// Remove the specified headers
	Remove []string `protobuf:"bytes,3,rep,name=remove,proto3" json:"remove,omitempty"`
	// contains filtered or unexported fields
}

HeaderOperations Describes the header manipulations to apply

func (*Headers_HeaderOperations) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Headers_HeaderOperations. Required by controller-gen.

func (*Headers_HeaderOperations) DeepCopyInterface

func (in *Headers_HeaderOperations) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new Headers_HeaderOperations. Required by controller-gen.

func (*Headers_HeaderOperations) DeepCopyInto

func (in *Headers_HeaderOperations) DeepCopyInto(out *Headers_HeaderOperations)

DeepCopyInto supports using Headers_HeaderOperations within kubernetes types, where deepcopy-gen is used.

func (*Headers_HeaderOperations) Descriptor deprecated

func (*Headers_HeaderOperations) Descriptor() ([]byte, []int)

Deprecated: Use Headers_HeaderOperations.ProtoReflect.Descriptor instead.

func (*Headers_HeaderOperations) GetAdd

func (x *Headers_HeaderOperations) GetAdd() map[string]string

func (*Headers_HeaderOperations) GetRemove

func (x *Headers_HeaderOperations) GetRemove() []string

func (*Headers_HeaderOperations) GetSet

func (x *Headers_HeaderOperations) GetSet() map[string]string

func (*Headers_HeaderOperations) MarshalJSON

func (this *Headers_HeaderOperations) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for Headers_HeaderOperations

func (*Headers_HeaderOperations) ProtoMessage

func (*Headers_HeaderOperations) ProtoMessage()

func (*Headers_HeaderOperations) ProtoReflect

func (x *Headers_HeaderOperations) ProtoReflect() protoreflect.Message

func (*Headers_HeaderOperations) Reset

func (x *Headers_HeaderOperations) Reset()

func (*Headers_HeaderOperations) String

func (x *Headers_HeaderOperations) String() string

func (*Headers_HeaderOperations) UnmarshalJSON

func (this *Headers_HeaderOperations) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for Headers_HeaderOperations

type IstioEgressListener

type IstioEgressListener struct {

	// The port associated with the listener. If using Unix domain socket,
	// use 0 as the port number, with a valid protocol. The port if
	// specified, will be used as the default destination port associated
	// with the imported hosts. If the port is omitted, Istio will infer the
	// listener ports based on the imported hosts. Note that when multiple
	// egress listeners are specified, where one or more listeners have
	// specific ports while others have no port, the hosts exposed on a
	// listener port will be based on the listener with the most specific
	// port.
	Port *SidecarPort `protobuf:"bytes,1,opt,name=port,proto3" json:"port,omitempty"`
	// The IP(IPv4 or IPv6) or the Unix domain socket to which the listener should be bound
	// to. Port MUST be specified if bind is not empty. Format: IPv4 or IPv6 address formats or
	// `unix:///path/to/uds` or `unix://@foobar` (Linux abstract namespace). If
	// omitted, Istio will automatically configure the defaults based on imported
	// services, the workload instances to which this configuration is applied to and
	// the captureMode. If captureMode is `NONE`, bind will default to
	// 127.0.0.1.
	Bind string `protobuf:"bytes,2,opt,name=bind,proto3" json:"bind,omitempty"`
	// When the bind address is an IP, the captureMode option dictates
	// how traffic to the listener is expected to be captured (or not).
	// captureMode must be DEFAULT or `NONE` for Unix domain socket binds.
	CaptureMode CaptureMode `` /* 138-byte string literal not displayed */
	// One or more service hosts exposed by the listener
	// in `namespace/dnsName` format. Services in the specified namespace
	// matching `dnsName` will be exposed.
	// The corresponding service can be a service in the service registry
	// (e.g., a Kubernetes or cloud foundry service) or a service specified
	// using a `ServiceEntry` or `VirtualService` configuration. Any
	// associated `DestinationRule` in the same namespace will also be used.
	//
	// The `dnsName` should be specified using FQDN format, optionally including
	// a wildcard character in the left-most component (e.g., `prod/*.example.com`).
	// Set the `dnsName` to `*` to select all services from the specified namespace
	// (e.g., `prod/*`).
	//
	// The `namespace` can be set to `*`, `.`, or `~`, representing any, the current,
	// or no namespace, respectively. For example, `*/foo.example.com` selects the
	// service from any available namespace while `./foo.example.com` only selects
	// the service from the namespace of the sidecar. If a host is set to `*/*`,
	// Istio will configure the sidecar to be able to reach every service in the
	// mesh that is exported to the sidecar's namespace. The value `~/*` can be used
	// to completely trim the configuration for sidecars that simply receive traffic
	// and respond, but make no outbound connections of their own.
	//
	// NOTE: Only services and configuration artifacts exported to the sidecar's
	// namespace (e.g., `exportTo` value of `*`) can be referenced.
	// Private configurations (e.g., `exportTo` set to `.`) will
	// not be available. Refer to the `exportTo` setting in `VirtualService`,
	// `DestinationRule`, and `ServiceEntry` configurations for details.
	Hosts []string `protobuf:"bytes,4,rep,name=hosts,proto3" json:"hosts,omitempty"`
	// contains filtered or unexported fields
}

`IstioEgressListener` specifies the properties of an outbound traffic listener on the sidecar proxy attached to a workload instance.

func (*IstioEgressListener) DeepCopy

func (in *IstioEgressListener) DeepCopy() *IstioEgressListener

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IstioEgressListener. Required by controller-gen.

func (*IstioEgressListener) DeepCopyInterface

func (in *IstioEgressListener) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new IstioEgressListener. Required by controller-gen.

func (*IstioEgressListener) DeepCopyInto

func (in *IstioEgressListener) DeepCopyInto(out *IstioEgressListener)

DeepCopyInto supports using IstioEgressListener within kubernetes types, where deepcopy-gen is used.

func (*IstioEgressListener) Descriptor deprecated

func (*IstioEgressListener) Descriptor() ([]byte, []int)

Deprecated: Use IstioEgressListener.ProtoReflect.Descriptor instead.

func (*IstioEgressListener) GetBind

func (x *IstioEgressListener) GetBind() string

func (*IstioEgressListener) GetCaptureMode

func (x *IstioEgressListener) GetCaptureMode() CaptureMode

func (*IstioEgressListener) GetHosts

func (x *IstioEgressListener) GetHosts() []string

func (*IstioEgressListener) GetPort

func (x *IstioEgressListener) GetPort() *SidecarPort

func (*IstioEgressListener) MarshalJSON

func (this *IstioEgressListener) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for IstioEgressListener

func (*IstioEgressListener) ProtoMessage

func (*IstioEgressListener) ProtoMessage()

func (*IstioEgressListener) ProtoReflect

func (x *IstioEgressListener) ProtoReflect() protoreflect.Message

func (*IstioEgressListener) Reset

func (x *IstioEgressListener) Reset()

func (*IstioEgressListener) String

func (x *IstioEgressListener) String() string

func (*IstioEgressListener) UnmarshalJSON

func (this *IstioEgressListener) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for IstioEgressListener

type IstioIngressListener

type IstioIngressListener struct {

	// The port associated with the listener.
	Port *SidecarPort `protobuf:"bytes,1,opt,name=port,proto3" json:"port,omitempty"`
	// The IP(IPv4 or IPv6) to which the listener should be bound.
	// Unix domain socket addresses are not allowed in
	// the bind field for ingress listeners. If omitted, Istio will
	// automatically configure the defaults based on imported services
	// and the workload instances to which this configuration is applied
	// to.
	Bind string `protobuf:"bytes,2,opt,name=bind,proto3" json:"bind,omitempty"`
	// The captureMode option dictates how traffic to the listener is
	// expected to be captured (or not).
	CaptureMode CaptureMode `` /* 138-byte string literal not displayed */
	// The IP endpoint or Unix domain socket to which
	// traffic should be forwarded to. This configuration can be used to
	// redirect traffic arriving at the bind `IP:Port` on the sidecar to a `localhost:port`
	// or Unix domain socket where the application workload instance is listening for
	// connections. Arbitrary IPs are not supported. Format should be one of
	// `127.0.0.1:PORT`, `[::1]:PORT` (forward to localhost),
	// `0.0.0.0:PORT`, `[::]:PORT` (forward to the instance IP),
	// or `unix:///path/to/socket` (forward to Unix domain socket).
	DefaultEndpoint string `protobuf:"bytes,4,opt,name=default_endpoint,json=defaultEndpoint,proto3" json:"default_endpoint,omitempty"`
	// Set of TLS related options that will enable TLS termination on the
	// sidecar for requests originating from outside the mesh.
	// Currently supports only SIMPLE and MUTUAL TLS modes.
	Tls *ServerTLSSettings `protobuf:"bytes,7,opt,name=tls,proto3" json:"tls,omitempty"`
	// Settings controlling the volume of connections Envoy will accept from the network.
	// This setting overrides the top-level default `inboundConnectionPool` to configure
	// specific settings for this port. This configuration mirrors the `DestinationRule`'s
	// [`PortTrafficPolicy.connectionPool`](https://istio.io/latest/docs/reference/config/networking/destination-rule/#TrafficPolicy-PortTrafficPolicy) field.
	// This port level connection pool has the highest precedence in configuration,
	// overriding both the `Sidecar`'s top level `InboundConnectionPool` as well as any
	// connection pooling settings from the `DestinationRule`.
	ConnectionPool *ConnectionPoolSettings `protobuf:"bytes,8,opt,name=connection_pool,json=connectionPool,proto3" json:"connection_pool,omitempty"`
	// contains filtered or unexported fields
}

`IstioIngressListener` specifies the properties of an inbound traffic listener on the sidecar proxy attached to a workload instance.

func (*IstioIngressListener) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IstioIngressListener. Required by controller-gen.

func (*IstioIngressListener) DeepCopyInterface

func (in *IstioIngressListener) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new IstioIngressListener. Required by controller-gen.

func (*IstioIngressListener) DeepCopyInto

func (in *IstioIngressListener) DeepCopyInto(out *IstioIngressListener)

DeepCopyInto supports using IstioIngressListener within kubernetes types, where deepcopy-gen is used.

func (*IstioIngressListener) Descriptor deprecated

func (*IstioIngressListener) Descriptor() ([]byte, []int)

Deprecated: Use IstioIngressListener.ProtoReflect.Descriptor instead.

func (*IstioIngressListener) GetBind

func (x *IstioIngressListener) GetBind() string

func (*IstioIngressListener) GetCaptureMode

func (x *IstioIngressListener) GetCaptureMode() CaptureMode

func (*IstioIngressListener) GetConnectionPool added in v1.20.0

func (x *IstioIngressListener) GetConnectionPool() *ConnectionPoolSettings

func (*IstioIngressListener) GetDefaultEndpoint

func (x *IstioIngressListener) GetDefaultEndpoint() string

func (*IstioIngressListener) GetPort

func (x *IstioIngressListener) GetPort() *SidecarPort

func (*IstioIngressListener) GetTls

func (*IstioIngressListener) MarshalJSON

func (this *IstioIngressListener) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for IstioIngressListener

func (*IstioIngressListener) ProtoMessage

func (*IstioIngressListener) ProtoMessage()

func (*IstioIngressListener) ProtoReflect

func (x *IstioIngressListener) ProtoReflect() protoreflect.Message

func (*IstioIngressListener) Reset

func (x *IstioIngressListener) Reset()

func (*IstioIngressListener) String

func (x *IstioIngressListener) String() string

func (*IstioIngressListener) UnmarshalJSON

func (this *IstioIngressListener) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for IstioIngressListener

type L4MatchAttributes

type L4MatchAttributes struct {

	// IPv4 or IPv6 ip addresses of destination with optional subnet.  E.g.,
	// a.b.c.d/xx form or just a.b.c.d.
	DestinationSubnets []string `protobuf:"bytes,1,rep,name=destination_subnets,json=destinationSubnets,proto3" json:"destination_subnets,omitempty"`
	// Specifies the port on the host that is being addressed. Many services
	// only expose a single port or label ports with the protocols they support,
	// in these cases it is not required to explicitly select the port.
	Port uint32 `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"`
	// IPv4 or IPv6 ip address of source with optional subnet. E.g., a.b.c.d/xx
	// form or just a.b.c.d
	// $hide_from_docs
	SourceSubnet string `protobuf:"bytes,3,opt,name=source_subnet,json=sourceSubnet,proto3" json:"source_subnet,omitempty"`
	// One or more labels that constrain the applicability of a rule to
	// workloads with the given labels. If the VirtualService has a list of
	// gateways specified in the top-level `gateways` field, it should include the reserved gateway
	// `mesh` in order for this field to be applicable.
	SourceLabels map[string]string `` /* 185-byte string literal not displayed */
	// Names of gateways where the rule should be applied. Gateway names
	// in the top-level `gateways` field of the VirtualService (if any) are overridden. The gateway
	// match is independent of sourceLabels.
	Gateways []string `protobuf:"bytes,5,rep,name=gateways,proto3" json:"gateways,omitempty"`
	// Source namespace constraining the applicability of a rule to workloads in that namespace.
	// If the VirtualService has a list of gateways specified in the top-level `gateways` field,
	// it must include the reserved gateway `mesh` for this field to be applicable.
	SourceNamespace string `protobuf:"bytes,6,opt,name=source_namespace,json=sourceNamespace,proto3" json:"source_namespace,omitempty"`
	// contains filtered or unexported fields
}

L4 connection match attributes. Note that L4 connection matching support is incomplete.

func (*L4MatchAttributes) DeepCopy

func (in *L4MatchAttributes) DeepCopy() *L4MatchAttributes

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new L4MatchAttributes. Required by controller-gen.

func (*L4MatchAttributes) DeepCopyInterface

func (in *L4MatchAttributes) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new L4MatchAttributes. Required by controller-gen.

func (*L4MatchAttributes) DeepCopyInto

func (in *L4MatchAttributes) DeepCopyInto(out *L4MatchAttributes)

DeepCopyInto supports using L4MatchAttributes within kubernetes types, where deepcopy-gen is used.

func (*L4MatchAttributes) Descriptor deprecated

func (*L4MatchAttributes) Descriptor() ([]byte, []int)

Deprecated: Use L4MatchAttributes.ProtoReflect.Descriptor instead.

func (*L4MatchAttributes) GetDestinationSubnets

func (x *L4MatchAttributes) GetDestinationSubnets() []string

func (*L4MatchAttributes) GetGateways

func (x *L4MatchAttributes) GetGateways() []string

func (*L4MatchAttributes) GetPort

func (x *L4MatchAttributes) GetPort() uint32

func (*L4MatchAttributes) GetSourceLabels

func (x *L4MatchAttributes) GetSourceLabels() map[string]string

func (*L4MatchAttributes) GetSourceNamespace

func (x *L4MatchAttributes) GetSourceNamespace() string

func (*L4MatchAttributes) GetSourceSubnet

func (x *L4MatchAttributes) GetSourceSubnet() string

func (*L4MatchAttributes) MarshalJSON

func (this *L4MatchAttributes) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for L4MatchAttributes

func (*L4MatchAttributes) ProtoMessage

func (*L4MatchAttributes) ProtoMessage()

func (*L4MatchAttributes) ProtoReflect

func (x *L4MatchAttributes) ProtoReflect() protoreflect.Message

func (*L4MatchAttributes) Reset

func (x *L4MatchAttributes) Reset()

func (*L4MatchAttributes) String

func (x *L4MatchAttributes) String() string

func (*L4MatchAttributes) UnmarshalJSON

func (this *L4MatchAttributes) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for L4MatchAttributes

type LoadBalancerSettings

type LoadBalancerSettings struct {

	// Upstream load balancing policy.
	//
	// Types that are assignable to LbPolicy:
	//
	//	*LoadBalancerSettings_Simple
	//	*LoadBalancerSettings_ConsistentHash
	LbPolicy isLoadBalancerSettings_LbPolicy `protobuf_oneof:"lb_policy"`
	// Locality load balancer settings, this will override mesh wide settings in entirety, meaning no merging would be performed
	// between this object and the object one in MeshConfig
	LocalityLbSetting *LocalityLoadBalancerSetting `protobuf:"bytes,3,opt,name=locality_lb_setting,json=localityLbSetting,proto3" json:"locality_lb_setting,omitempty"`
	// Represents the warmup duration of Service. If set, the newly created endpoint of service
	// remains in warmup mode starting from its creation time for the duration of this window and
	// Istio progressively increases amount of traffic for that endpoint instead of sending proportional amount of traffic.
	// This should be enabled for services that require warm up time to serve full production load with reasonable latency.
	// Please note that this is most effective when few new endpoints come up like scale event in Kubernetes. When all the
	// endpoints are relatively new like new deployment, this is not very effective as all endpoints end up getting same
	// amount of requests.
	// Currently this is only supported for ROUND_ROBIN and LEAST_REQUEST load balancers.
	WarmupDurationSecs *duration.Duration `protobuf:"bytes,4,opt,name=warmup_duration_secs,json=warmupDurationSecs,proto3" json:"warmup_duration_secs,omitempty"`
	// contains filtered or unexported fields
}

Load balancing policies to apply for a specific destination. See Envoy's load balancing [documentation](https://www.envoyproxy.io/docs/envoy/latest/intro/arch_overview/upstream/load_balancing/load_balancing) for more details.

For example, the following rule uses a round robin load balancing policy for all traffic going to the ratings service.

{{<tabset category-name="example">}} {{<tab name="v1alpha3" category-value="v1alpha3">}} ```yaml apiVersion: networking.istio.io/v1alpha3 kind: DestinationRule metadata:

name: bookinfo-ratings

spec:

host: ratings.prod.svc.cluster.local
trafficPolicy:
  loadBalancer:
    simple: ROUND_ROBIN

``` {{</tab>}}

{{<tab name="v1beta1" category-value="v1beta1">}} ```yaml apiVersion: networking.istio.io/v1beta1 kind: DestinationRule metadata:

name: bookinfo-ratings

spec:

host: ratings.prod.svc.cluster.local
trafficPolicy:
  loadBalancer:
    simple: ROUND_ROBIN

``` {{</tab>}} {{</tabset>}}

The following example sets up sticky sessions for the ratings service hashing-based load balancer for the same ratings service using the the User cookie as the hash key.

{{<tabset category-name="example">}} {{<tab name="v1alpha3" category-value="v1alpha3">}} ```yaml apiVersion: networking.istio.io/v1alpha3 kind: DestinationRule metadata:

name: bookinfo-ratings

spec:

host: ratings.prod.svc.cluster.local
trafficPolicy:
  loadBalancer:
    consistentHash:
      httpCookie:
        name: user
        ttl: 0s

``` {{</tab>}}

{{<tab name="v1beta1" category-value="v1beta1">}} ```yaml apiVersion: networking.istio.io/v1beta1 kind: DestinationRule metadata:

name: bookinfo-ratings

spec:

host: ratings.prod.svc.cluster.local
trafficPolicy:
  loadBalancer:
    consistentHash:
      httpCookie:
        name: user
        ttl: 0s

``` {{</tab>}} {{</tabset>}}

func (*LoadBalancerSettings) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LoadBalancerSettings. Required by controller-gen.

func (*LoadBalancerSettings) DeepCopyInterface

func (in *LoadBalancerSettings) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new LoadBalancerSettings. Required by controller-gen.

func (*LoadBalancerSettings) DeepCopyInto

func (in *LoadBalancerSettings) DeepCopyInto(out *LoadBalancerSettings)

DeepCopyInto supports using LoadBalancerSettings within kubernetes types, where deepcopy-gen is used.

func (*LoadBalancerSettings) Descriptor deprecated

func (*LoadBalancerSettings) Descriptor() ([]byte, []int)

Deprecated: Use LoadBalancerSettings.ProtoReflect.Descriptor instead.

func (*LoadBalancerSettings) GetConsistentHash

func (*LoadBalancerSettings) GetLbPolicy

func (m *LoadBalancerSettings) GetLbPolicy() isLoadBalancerSettings_LbPolicy

func (*LoadBalancerSettings) GetLocalityLbSetting

func (x *LoadBalancerSettings) GetLocalityLbSetting() *LocalityLoadBalancerSetting

func (*LoadBalancerSettings) GetSimple

func (*LoadBalancerSettings) GetWarmupDurationSecs

func (x *LoadBalancerSettings) GetWarmupDurationSecs() *duration.Duration

func (*LoadBalancerSettings) MarshalJSON

func (this *LoadBalancerSettings) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for LoadBalancerSettings

func (*LoadBalancerSettings) ProtoMessage

func (*LoadBalancerSettings) ProtoMessage()

func (*LoadBalancerSettings) ProtoReflect

func (x *LoadBalancerSettings) ProtoReflect() protoreflect.Message

func (*LoadBalancerSettings) Reset

func (x *LoadBalancerSettings) Reset()

func (*LoadBalancerSettings) String

func (x *LoadBalancerSettings) String() string

func (*LoadBalancerSettings) UnmarshalJSON

func (this *LoadBalancerSettings) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for LoadBalancerSettings

type LoadBalancerSettings_ConsistentHash

type LoadBalancerSettings_ConsistentHash struct {
	ConsistentHash *LoadBalancerSettings_ConsistentHashLB `protobuf:"bytes,2,opt,name=consistent_hash,json=consistentHash,proto3,oneof"`
}

type LoadBalancerSettings_ConsistentHashLB

type LoadBalancerSettings_ConsistentHashLB struct {

	// The hash key to use.
	//
	// Types that are assignable to HashKey:
	//
	//	*LoadBalancerSettings_ConsistentHashLB_HttpHeaderName
	//	*LoadBalancerSettings_ConsistentHashLB_HttpCookie
	//	*LoadBalancerSettings_ConsistentHashLB_UseSourceIp
	//	*LoadBalancerSettings_ConsistentHashLB_HttpQueryParameterName
	HashKey isLoadBalancerSettings_ConsistentHashLB_HashKey `protobuf_oneof:"hash_key"`
	// The hash algorithm to use.
	// Please refer to https://www.envoyproxy.io/docs/envoy/latest/intro/arch_overview/upstream/load_balancing/load_balancers#ring-hash
	// and https://www.envoyproxy.io/docs/envoy/latest/intro/arch_overview/upstream/load_balancing/load_balancers#maglev for
	// considerations on choosing an algorithm.
	// Defaults to RingHash if not specified.
	//
	// Types that are assignable to HashAlgorithm:
	//
	//	*LoadBalancerSettings_ConsistentHashLB_RingHash_
	//	*LoadBalancerSettings_ConsistentHashLB_Maglev
	HashAlgorithm isLoadBalancerSettings_ConsistentHashLB_HashAlgorithm `protobuf_oneof:"hash_algorithm"`
	// Deprecated. Use RingHash instead.
	//
	// Deprecated: Marked as deprecated in networking/v1alpha3/destination_rule.proto.
	MinimumRingSize uint64 `protobuf:"varint,4,opt,name=minimum_ring_size,json=minimumRingSize,proto3" json:"minimum_ring_size,omitempty"`
	// contains filtered or unexported fields
}

Consistent Hash-based load balancing can be used to provide soft session affinity based on HTTP headers, cookies or other properties. The affinity to a particular destination host may be lost when one or more hosts are added/removed from the destination service.

Note: consistent hashing is less reliable at maintaining affinity than common "sticky sessions" implementations, which often encode a specific destination in a cookie, ensuring affinity is maintained as long as the backend remains. With consistent hash, the guarantees are weaker; any host addition or removal can break affinity for `1/backends` requests.

Warning: consistent hashing depends on each proxy having a consistent view of endpoints. This is not the case when locality load balancing is enabled. Locality load balancing and consistent hash will only work together when all proxies are in the same locality, or a high level load balancer handles locality affinity.

func (*LoadBalancerSettings_ConsistentHashLB) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LoadBalancerSettings_ConsistentHashLB. Required by controller-gen.

func (*LoadBalancerSettings_ConsistentHashLB) DeepCopyInterface

func (in *LoadBalancerSettings_ConsistentHashLB) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new LoadBalancerSettings_ConsistentHashLB. Required by controller-gen.

func (*LoadBalancerSettings_ConsistentHashLB) DeepCopyInto

DeepCopyInto supports using LoadBalancerSettings_ConsistentHashLB within kubernetes types, where deepcopy-gen is used.

func (*LoadBalancerSettings_ConsistentHashLB) Descriptor deprecated

func (*LoadBalancerSettings_ConsistentHashLB) Descriptor() ([]byte, []int)

Deprecated: Use LoadBalancerSettings_ConsistentHashLB.ProtoReflect.Descriptor instead.

func (*LoadBalancerSettings_ConsistentHashLB) GetHashAlgorithm

func (m *LoadBalancerSettings_ConsistentHashLB) GetHashAlgorithm() isLoadBalancerSettings_ConsistentHashLB_HashAlgorithm

func (*LoadBalancerSettings_ConsistentHashLB) GetHashKey

func (m *LoadBalancerSettings_ConsistentHashLB) GetHashKey() isLoadBalancerSettings_ConsistentHashLB_HashKey

func (*LoadBalancerSettings_ConsistentHashLB) GetHttpCookie

func (*LoadBalancerSettings_ConsistentHashLB) GetHttpHeaderName

func (x *LoadBalancerSettings_ConsistentHashLB) GetHttpHeaderName() string

func (*LoadBalancerSettings_ConsistentHashLB) GetHttpQueryParameterName

func (x *LoadBalancerSettings_ConsistentHashLB) GetHttpQueryParameterName() string

func (*LoadBalancerSettings_ConsistentHashLB) GetMaglev

func (*LoadBalancerSettings_ConsistentHashLB) GetMinimumRingSize deprecated

func (x *LoadBalancerSettings_ConsistentHashLB) GetMinimumRingSize() uint64

Deprecated: Marked as deprecated in networking/v1alpha3/destination_rule.proto.

func (*LoadBalancerSettings_ConsistentHashLB) GetRingHash

func (*LoadBalancerSettings_ConsistentHashLB) GetUseSourceIp

func (x *LoadBalancerSettings_ConsistentHashLB) GetUseSourceIp() bool

func (*LoadBalancerSettings_ConsistentHashLB) MarshalJSON

func (this *LoadBalancerSettings_ConsistentHashLB) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for LoadBalancerSettings_ConsistentHashLB

func (*LoadBalancerSettings_ConsistentHashLB) ProtoMessage

func (*LoadBalancerSettings_ConsistentHashLB) ProtoMessage()

func (*LoadBalancerSettings_ConsistentHashLB) ProtoReflect

func (*LoadBalancerSettings_ConsistentHashLB) Reset

func (*LoadBalancerSettings_ConsistentHashLB) String

func (*LoadBalancerSettings_ConsistentHashLB) UnmarshalJSON

func (this *LoadBalancerSettings_ConsistentHashLB) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for LoadBalancerSettings_ConsistentHashLB

type LoadBalancerSettings_ConsistentHashLB_HTTPCookie

type LoadBalancerSettings_ConsistentHashLB_HTTPCookie struct {

	// Name of the cookie.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Path to set for the cookie.
	Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"`
	// Lifetime of the cookie. If specified, a cookie with the TTL will be
	// generated if the cookie is not present. If the TTL is present and zero,
	// the generated cookie will be a session cookie.
	Ttl *duration.Duration `protobuf:"bytes,3,opt,name=ttl,proto3" json:"ttl,omitempty"`
	// contains filtered or unexported fields
}

Describes a HTTP cookie that will be used as the hash key for the Consistent Hash load balancer.

func (*LoadBalancerSettings_ConsistentHashLB_HTTPCookie) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LoadBalancerSettings_ConsistentHashLB_HTTPCookie. Required by controller-gen.

func (*LoadBalancerSettings_ConsistentHashLB_HTTPCookie) DeepCopyInterface

func (in *LoadBalancerSettings_ConsistentHashLB_HTTPCookie) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new LoadBalancerSettings_ConsistentHashLB_HTTPCookie. Required by controller-gen.

func (*LoadBalancerSettings_ConsistentHashLB_HTTPCookie) DeepCopyInto

DeepCopyInto supports using LoadBalancerSettings_ConsistentHashLB_HTTPCookie within kubernetes types, where deepcopy-gen is used.

func (*LoadBalancerSettings_ConsistentHashLB_HTTPCookie) Descriptor deprecated

Deprecated: Use LoadBalancerSettings_ConsistentHashLB_HTTPCookie.ProtoReflect.Descriptor instead.

func (*LoadBalancerSettings_ConsistentHashLB_HTTPCookie) GetName

func (*LoadBalancerSettings_ConsistentHashLB_HTTPCookie) GetPath

func (*LoadBalancerSettings_ConsistentHashLB_HTTPCookie) GetTtl

func (*LoadBalancerSettings_ConsistentHashLB_HTTPCookie) MarshalJSON

MarshalJSON is a custom marshaler for LoadBalancerSettings_ConsistentHashLB_HTTPCookie

func (*LoadBalancerSettings_ConsistentHashLB_HTTPCookie) ProtoMessage

func (*LoadBalancerSettings_ConsistentHashLB_HTTPCookie) ProtoReflect

func (*LoadBalancerSettings_ConsistentHashLB_HTTPCookie) Reset

func (*LoadBalancerSettings_ConsistentHashLB_HTTPCookie) String

func (*LoadBalancerSettings_ConsistentHashLB_HTTPCookie) UnmarshalJSON

UnmarshalJSON is a custom unmarshaler for LoadBalancerSettings_ConsistentHashLB_HTTPCookie

type LoadBalancerSettings_ConsistentHashLB_HttpCookie

type LoadBalancerSettings_ConsistentHashLB_HttpCookie struct {
	// Hash based on HTTP cookie.
	HttpCookie *LoadBalancerSettings_ConsistentHashLB_HTTPCookie `protobuf:"bytes,2,opt,name=http_cookie,json=httpCookie,proto3,oneof"`
}

type LoadBalancerSettings_ConsistentHashLB_HttpHeaderName

type LoadBalancerSettings_ConsistentHashLB_HttpHeaderName struct {
	// Hash based on a specific HTTP header.
	HttpHeaderName string `protobuf:"bytes,1,opt,name=http_header_name,json=httpHeaderName,proto3,oneof"`
}

type LoadBalancerSettings_ConsistentHashLB_HttpQueryParameterName

type LoadBalancerSettings_ConsistentHashLB_HttpQueryParameterName struct {
	// Hash based on a specific HTTP query parameter.
	HttpQueryParameterName string `protobuf:"bytes,5,opt,name=http_query_parameter_name,json=httpQueryParameterName,proto3,oneof"`
}

type LoadBalancerSettings_ConsistentHashLB_MagLev

type LoadBalancerSettings_ConsistentHashLB_MagLev struct {

	// The table size for Maglev hashing. This helps in controlling the
	// disruption when the backend hosts change.
	// Increasing the table size reduces the amount of disruption.
	TableSize uint64 `protobuf:"varint,1,opt,name=table_size,json=tableSize,proto3" json:"table_size,omitempty"`
	// contains filtered or unexported fields
}

func (*LoadBalancerSettings_ConsistentHashLB_MagLev) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LoadBalancerSettings_ConsistentHashLB_MagLev. Required by controller-gen.

func (*LoadBalancerSettings_ConsistentHashLB_MagLev) DeepCopyInterface

func (in *LoadBalancerSettings_ConsistentHashLB_MagLev) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new LoadBalancerSettings_ConsistentHashLB_MagLev. Required by controller-gen.

func (*LoadBalancerSettings_ConsistentHashLB_MagLev) DeepCopyInto

DeepCopyInto supports using LoadBalancerSettings_ConsistentHashLB_MagLev within kubernetes types, where deepcopy-gen is used.

func (*LoadBalancerSettings_ConsistentHashLB_MagLev) Descriptor deprecated

Deprecated: Use LoadBalancerSettings_ConsistentHashLB_MagLev.ProtoReflect.Descriptor instead.

func (*LoadBalancerSettings_ConsistentHashLB_MagLev) GetTableSize

func (*LoadBalancerSettings_ConsistentHashLB_MagLev) MarshalJSON

func (this *LoadBalancerSettings_ConsistentHashLB_MagLev) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for LoadBalancerSettings_ConsistentHashLB_MagLev

func (*LoadBalancerSettings_ConsistentHashLB_MagLev) ProtoMessage

func (*LoadBalancerSettings_ConsistentHashLB_MagLev) ProtoReflect

func (*LoadBalancerSettings_ConsistentHashLB_MagLev) Reset

func (*LoadBalancerSettings_ConsistentHashLB_MagLev) String

func (*LoadBalancerSettings_ConsistentHashLB_MagLev) UnmarshalJSON

func (this *LoadBalancerSettings_ConsistentHashLB_MagLev) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for LoadBalancerSettings_ConsistentHashLB_MagLev

type LoadBalancerSettings_ConsistentHashLB_Maglev

type LoadBalancerSettings_ConsistentHashLB_Maglev struct {
	// The Maglev load balancer implements consistent hashing to backend hosts.
	Maglev *LoadBalancerSettings_ConsistentHashLB_MagLev `protobuf:"bytes,7,opt,name=maglev,proto3,oneof"`
}

type LoadBalancerSettings_ConsistentHashLB_RingHash

type LoadBalancerSettings_ConsistentHashLB_RingHash struct {

	// The minimum number of virtual nodes to use for the hash
	// ring. Defaults to 1024. Larger ring sizes result in more granular
	// load distributions. If the number of hosts in the load balancing
	// pool is larger than the ring size, each host will be assigned a
	// single virtual node.
	MinimumRingSize uint64 `protobuf:"varint,1,opt,name=minimum_ring_size,json=minimumRingSize,proto3" json:"minimum_ring_size,omitempty"`
	// contains filtered or unexported fields
}

func (*LoadBalancerSettings_ConsistentHashLB_RingHash) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LoadBalancerSettings_ConsistentHashLB_RingHash. Required by controller-gen.

func (*LoadBalancerSettings_ConsistentHashLB_RingHash) DeepCopyInterface

func (in *LoadBalancerSettings_ConsistentHashLB_RingHash) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new LoadBalancerSettings_ConsistentHashLB_RingHash. Required by controller-gen.

func (*LoadBalancerSettings_ConsistentHashLB_RingHash) DeepCopyInto

DeepCopyInto supports using LoadBalancerSettings_ConsistentHashLB_RingHash within kubernetes types, where deepcopy-gen is used.

func (*LoadBalancerSettings_ConsistentHashLB_RingHash) Descriptor deprecated

Deprecated: Use LoadBalancerSettings_ConsistentHashLB_RingHash.ProtoReflect.Descriptor instead.

func (*LoadBalancerSettings_ConsistentHashLB_RingHash) GetMinimumRingSize

func (*LoadBalancerSettings_ConsistentHashLB_RingHash) MarshalJSON

MarshalJSON is a custom marshaler for LoadBalancerSettings_ConsistentHashLB_RingHash

func (*LoadBalancerSettings_ConsistentHashLB_RingHash) ProtoMessage

func (*LoadBalancerSettings_ConsistentHashLB_RingHash) ProtoReflect

func (*LoadBalancerSettings_ConsistentHashLB_RingHash) Reset

func (*LoadBalancerSettings_ConsistentHashLB_RingHash) String

func (*LoadBalancerSettings_ConsistentHashLB_RingHash) UnmarshalJSON

UnmarshalJSON is a custom unmarshaler for LoadBalancerSettings_ConsistentHashLB_RingHash

type LoadBalancerSettings_ConsistentHashLB_RingHash_

type LoadBalancerSettings_ConsistentHashLB_RingHash_ struct {
	// The ring/modulo hash load balancer implements consistent hashing to backend hosts.
	RingHash *LoadBalancerSettings_ConsistentHashLB_RingHash `protobuf:"bytes,6,opt,name=ring_hash,json=ringHash,proto3,oneof"`
}

type LoadBalancerSettings_ConsistentHashLB_UseSourceIp

type LoadBalancerSettings_ConsistentHashLB_UseSourceIp struct {
	// Hash based on the source IP address.
	// This is applicable for both TCP and HTTP connections.
	UseSourceIp bool `protobuf:"varint,3,opt,name=use_source_ip,json=useSourceIp,proto3,oneof"`
}

type LoadBalancerSettings_Simple

type LoadBalancerSettings_Simple struct {
	Simple LoadBalancerSettings_SimpleLB `protobuf:"varint,1,opt,name=simple,proto3,enum=istio.networking.v1alpha3.LoadBalancerSettings_SimpleLB,oneof"`
}

type LoadBalancerSettings_SimpleLB

type LoadBalancerSettings_SimpleLB int32

Standard load balancing algorithms that require no tuning.

const (
	// No load balancing algorithm has been specified by the user. Istio
	// will select an appropriate default.
	LoadBalancerSettings_UNSPECIFIED LoadBalancerSettings_SimpleLB = 0
	// Deprecated. Use LEAST_REQUEST instead.
	//
	// Deprecated: Marked as deprecated in networking/v1alpha3/destination_rule.proto.
	LoadBalancerSettings_LEAST_CONN LoadBalancerSettings_SimpleLB = 1
	// The random load balancer selects a random healthy host. The random
	// load balancer generally performs better than round robin if no health
	// checking policy is configured.
	LoadBalancerSettings_RANDOM LoadBalancerSettings_SimpleLB = 2
	// This option will forward the connection to the original IP address
	// requested by the caller without doing any form of load
	// balancing. This option must be used with care. It is meant for
	// advanced use cases. Refer to Original Destination load balancer in
	// Envoy for further details.
	LoadBalancerSettings_PASSTHROUGH LoadBalancerSettings_SimpleLB = 3
	// A basic round robin load balancing policy. This is generally unsafe
	// for many scenarios (e.g. when endpoint weighting is used) as it can
	// overburden endpoints. In general, prefer to use LEAST_REQUEST as a
	// drop-in replacement for ROUND_ROBIN.
	LoadBalancerSettings_ROUND_ROBIN LoadBalancerSettings_SimpleLB = 4
	// The least request load balancer spreads load across endpoints, favoring
	// endpoints with the least outstanding requests. This is generally safer
	// and outperforms ROUND_ROBIN in nearly all cases. Prefer to use
	// LEAST_REQUEST as a drop-in replacement for ROUND_ROBIN.
	LoadBalancerSettings_LEAST_REQUEST LoadBalancerSettings_SimpleLB = 5
)

func (LoadBalancerSettings_SimpleLB) Descriptor

func (LoadBalancerSettings_SimpleLB) Enum

func (LoadBalancerSettings_SimpleLB) EnumDescriptor deprecated

func (LoadBalancerSettings_SimpleLB) EnumDescriptor() ([]byte, []int)

Deprecated: Use LoadBalancerSettings_SimpleLB.Descriptor instead.

func (LoadBalancerSettings_SimpleLB) Number

func (LoadBalancerSettings_SimpleLB) String

func (LoadBalancerSettings_SimpleLB) Type

type LocalityLoadBalancerSetting

type LocalityLoadBalancerSetting struct {

	// Optional: only one of distribute, failover or failoverPriority can be set.
	// Explicitly specify loadbalancing weight across different zones and geographical locations.
	// Refer to [Locality weighted load balancing](https://www.envoyproxy.io/docs/envoy/latest/intro/arch_overview/upstream/load_balancing/locality_weight)
	// If empty, the locality weight is set according to the endpoints number within it.
	Distribute []*LocalityLoadBalancerSetting_Distribute `protobuf:"bytes,1,rep,name=distribute,proto3" json:"distribute,omitempty"`
	// Optional: only one of distribute, failover or failoverPriority can be set.
	// Explicitly specify the region traffic will land on when endpoints in local region becomes unhealthy.
	// Should be used together with OutlierDetection to detect unhealthy endpoints.
	// Note: if no OutlierDetection specified, this will not take effect.
	Failover []*LocalityLoadBalancerSetting_Failover `protobuf:"bytes,2,rep,name=failover,proto3" json:"failover,omitempty"`
	// failoverPriority is an ordered list of labels used to sort endpoints to do priority based load balancing.
	// This is to support traffic failover across different groups of endpoints.
	// Two kinds of labels can be specified:
	//
	//   - Specify only label keys `[key1, key2, key3]`, istio would compare the label values of client with endpoints.
	//     Suppose there are total N label keys `[key1, key2, key3, ...keyN]` specified:
	//
	//     1. Endpoints matching all N labels with the client proxy have priority P(0) i.e. the highest priority.
	//     2. Endpoints matching the first N-1 labels with the client proxy have priority P(1) i.e. second highest priority.
	//     3. By extension of this logic, endpoints matching only the first label with the client proxy has priority P(N-1) i.e. second lowest priority.
	//     4. All the other endpoints have priority P(N) i.e. lowest priority.
	//
	//   - Specify labels with key and value `[key1=value1, key2=value2, key3=value3]`, istio would compare the labels with endpoints.
	//     Suppose there are total N labels `[key1=value1, key2=value2, key3=value3, ...keyN=valueN]` specified:
	//
	//     1. Endpoints matching all N labels have priority P(0) i.e. the highest priority.
	//     2. Endpoints matching the first N-1 labels have priority P(1) i.e. second highest priority.
	//     3. By extension of this logic, endpoints matching only the first label has priority P(N-1) i.e. second lowest priority.
	//     4. All the other endpoints have priority P(N) i.e. lowest priority.
	//
	// Note: For a label to be considered for match, the previous labels must match, i.e. nth label would be considered matched only if first n-1 labels match.
	//
	// It can be any label specified on both client and server workloads.
	// The following labels which have special semantic meaning are also supported:
	//
	//   - `topology.istio.io/network` is used to match the network metadata of an endpoint, which can be specified by pod/namespace label `topology.istio.io/network`, sidecar env `ISTIO_META_NETWORK` or MeshNetworks.
	//   - `topology.istio.io/cluster` is used to match the clusterID of an endpoint, which can be specified by pod label `topology.istio.io/cluster` or pod env `ISTIO_META_CLUSTER_ID`.
	//   - `topology.kubernetes.io/region` is used to match the region metadata of an endpoint, which maps to Kubernetes node label `topology.kubernetes.io/region` or the deprecated label `failure-domain.beta.kubernetes.io/region`.
	//   - `topology.kubernetes.io/zone` is used to match the zone metadata of an endpoint, which maps to Kubernetes node label `topology.kubernetes.io/zone` or the deprecated label `failure-domain.beta.kubernetes.io/zone`.
	//   - `topology.istio.io/subzone` is used to match the subzone metadata of an endpoint, which maps to Istio node label `topology.istio.io/subzone`.
	//
	// The below topology config indicates the following priority levels:
	//
	// “`yaml
	// failoverPriority:
	// - "topology.istio.io/network"
	// - "topology.kubernetes.io/region"
	// - "topology.kubernetes.io/zone"
	// - "topology.istio.io/subzone"
	// “`
	//
	// 1. endpoints match same [network, region, zone, subzone] label with the client proxy have the highest priority.
	// 2. endpoints have same [network, region, zone] label but different [subzone] label with the client proxy have the second highest priority.
	// 3. endpoints have same [network, region] label but different [zone] label with the client proxy have the third highest priority.
	// 4. endpoints have same [network] but different [region] labels with the client proxy have the fourth highest priority.
	// 5. all the other endpoints have the same lowest priority.
	//
	// Suppose a service associated endpoints reside in multi clusters, the below example represents:
	// 1. endpoints in `clusterA` and has `version=v1` label have P(0) priority.
	// 2. endpoints not in `clusterA` but has `version=v1` label have P(1) priority.
	// 2. all the other endpoints have P(2) priority.
	//
	// “`yaml
	// failoverPriority:
	// - "version=v1"
	// - "topology.istio.io/cluster=clusterA"
	// “`
	//
	// Optional: only one of distribute, failover or failoverPriority can be set.
	// And it should be used together with `OutlierDetection` to detect unhealthy endpoints, otherwise has no effect.
	FailoverPriority []string `protobuf:"bytes,4,rep,name=failover_priority,json=failoverPriority,proto3" json:"failover_priority,omitempty"`
	// enable locality load balancing, this is DestinationRule-level and will override mesh wide settings in entirety.
	// e.g. true means that turn on locality load balancing for this DestinationRule no matter what mesh wide settings is.
	Enabled *wrappers.BoolValue `protobuf:"bytes,3,opt,name=enabled,proto3" json:"enabled,omitempty"`
	// contains filtered or unexported fields
}

Locality-weighted load balancing allows administrators to control the distribution of traffic to endpoints based on the localities of where the traffic originates and where it will terminate. These localities are specified using arbitrary labels that designate a hierarchy of localities in {region}/{zone}/{sub-zone} form. For additional detail refer to [Locality Weight](https://www.envoyproxy.io/docs/envoy/latest/intro/arch_overview/upstream/load_balancing/locality_weight) The following example shows how to setup locality weights mesh-wide.

Given a mesh with workloads and their service deployed to "us-west/zone1/*" and "us-west/zone2/*". This example specifies that when traffic accessing a service originates from workloads in "us-west/zone1/*", 80% of the traffic will be sent to endpoints in "us-west/zone1/*", i.e the same zone, and the remaining 20% will go to endpoints in "us-west/zone2/*". This setup is intended to favor routing traffic to endpoints in the same locality. A similar setting is specified for traffic originating in "us-west/zone2/*".

```yaml

distribute:
  - from: us-west/zone1/*
    to:
      "us-west/zone1/*": 80
      "us-west/zone2/*": 20
  - from: us-west/zone2/*
    to:
      "us-west/zone1/*": 20
      "us-west/zone2/*": 80

```

If the goal of the operator is not to distribute load across zones and regions but rather to restrict the regionality of failover to meet other operational requirements an operator can set a 'failover' policy instead of a 'distribute' policy.

The following example sets up a locality failover policy for regions. Assume a service resides in zones within us-east, us-west & eu-west this example specifies that when endpoints within us-east become unhealthy traffic should failover to endpoints in any zone or sub-zone within eu-west and similarly us-west should failover to us-east.

```yaml

failover:
  - from: us-east
    to: eu-west
  - from: us-west
    to: us-east

``` Locality load balancing settings.

func (*LocalityLoadBalancerSetting) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LocalityLoadBalancerSetting. Required by controller-gen.

func (*LocalityLoadBalancerSetting) DeepCopyInterface

func (in *LocalityLoadBalancerSetting) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new LocalityLoadBalancerSetting. Required by controller-gen.

func (*LocalityLoadBalancerSetting) DeepCopyInto

DeepCopyInto supports using LocalityLoadBalancerSetting within kubernetes types, where deepcopy-gen is used.

func (*LocalityLoadBalancerSetting) Descriptor deprecated

func (*LocalityLoadBalancerSetting) Descriptor() ([]byte, []int)

Deprecated: Use LocalityLoadBalancerSetting.ProtoReflect.Descriptor instead.

func (*LocalityLoadBalancerSetting) GetDistribute

func (*LocalityLoadBalancerSetting) GetEnabled

func (*LocalityLoadBalancerSetting) GetFailover

func (*LocalityLoadBalancerSetting) GetFailoverPriority

func (x *LocalityLoadBalancerSetting) GetFailoverPriority() []string

func (*LocalityLoadBalancerSetting) MarshalJSON

func (this *LocalityLoadBalancerSetting) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for LocalityLoadBalancerSetting

func (*LocalityLoadBalancerSetting) ProtoMessage

func (*LocalityLoadBalancerSetting) ProtoMessage()

func (*LocalityLoadBalancerSetting) ProtoReflect

func (*LocalityLoadBalancerSetting) Reset

func (x *LocalityLoadBalancerSetting) Reset()

func (*LocalityLoadBalancerSetting) String

func (x *LocalityLoadBalancerSetting) String() string

func (*LocalityLoadBalancerSetting) UnmarshalJSON

func (this *LocalityLoadBalancerSetting) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for LocalityLoadBalancerSetting

type LocalityLoadBalancerSetting_Distribute

type LocalityLoadBalancerSetting_Distribute struct {

	// Originating locality, '/' separated, e.g. 'region/zone/sub_zone'.
	From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"`
	// Map of upstream localities to traffic distribution weights. The sum of
	// all weights should be 100. Any locality not present will
	// receive no traffic.
	To map[string]uint32 `` /* 146-byte string literal not displayed */
	// contains filtered or unexported fields
}

Describes how traffic originating in the 'from' zone or sub-zone is distributed over a set of 'to' zones. Syntax for specifying a zone is {region}/{zone}/{sub-zone} and terminal wildcards are allowed on any segment of the specification. Examples:

`*` - matches all localities

`us-west/*` - all zones and sub-zones within the us-west region

`us-west/zone-1/*` - all sub-zones within us-west/zone-1

func (*LocalityLoadBalancerSetting_Distribute) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LocalityLoadBalancerSetting_Distribute. Required by controller-gen.

func (*LocalityLoadBalancerSetting_Distribute) DeepCopyInterface

func (in *LocalityLoadBalancerSetting_Distribute) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new LocalityLoadBalancerSetting_Distribute. Required by controller-gen.

func (*LocalityLoadBalancerSetting_Distribute) DeepCopyInto

DeepCopyInto supports using LocalityLoadBalancerSetting_Distribute within kubernetes types, where deepcopy-gen is used.

func (*LocalityLoadBalancerSetting_Distribute) Descriptor deprecated

func (*LocalityLoadBalancerSetting_Distribute) Descriptor() ([]byte, []int)

Deprecated: Use LocalityLoadBalancerSetting_Distribute.ProtoReflect.Descriptor instead.

func (*LocalityLoadBalancerSetting_Distribute) GetFrom

func (*LocalityLoadBalancerSetting_Distribute) GetTo

func (*LocalityLoadBalancerSetting_Distribute) MarshalJSON

func (this *LocalityLoadBalancerSetting_Distribute) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for LocalityLoadBalancerSetting_Distribute

func (*LocalityLoadBalancerSetting_Distribute) ProtoMessage

func (*LocalityLoadBalancerSetting_Distribute) ProtoReflect

func (*LocalityLoadBalancerSetting_Distribute) Reset

func (*LocalityLoadBalancerSetting_Distribute) String

func (*LocalityLoadBalancerSetting_Distribute) UnmarshalJSON

func (this *LocalityLoadBalancerSetting_Distribute) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for LocalityLoadBalancerSetting_Distribute

type LocalityLoadBalancerSetting_Failover

type LocalityLoadBalancerSetting_Failover struct {

	// Originating region.
	From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"`
	// Destination region the traffic will fail over to when endpoints in
	// the 'from' region becomes unhealthy.
	To string `protobuf:"bytes,2,opt,name=to,proto3" json:"to,omitempty"`
	// contains filtered or unexported fields
}

Specify the traffic failover policy across regions. Since zone and sub-zone failover is supported by default this only needs to be specified for regions when the operator needs to constrain traffic failover so that the default behavior of failing over to any endpoint globally does not apply. This is useful when failing over traffic across regions would not improve service health or may need to be restricted for other reasons like regulatory controls.

func (*LocalityLoadBalancerSetting_Failover) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LocalityLoadBalancerSetting_Failover. Required by controller-gen.

func (*LocalityLoadBalancerSetting_Failover) DeepCopyInterface

func (in *LocalityLoadBalancerSetting_Failover) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new LocalityLoadBalancerSetting_Failover. Required by controller-gen.

func (*LocalityLoadBalancerSetting_Failover) DeepCopyInto

DeepCopyInto supports using LocalityLoadBalancerSetting_Failover within kubernetes types, where deepcopy-gen is used.

func (*LocalityLoadBalancerSetting_Failover) Descriptor deprecated

func (*LocalityLoadBalancerSetting_Failover) Descriptor() ([]byte, []int)

Deprecated: Use LocalityLoadBalancerSetting_Failover.ProtoReflect.Descriptor instead.

func (*LocalityLoadBalancerSetting_Failover) GetFrom

func (*LocalityLoadBalancerSetting_Failover) GetTo

func (*LocalityLoadBalancerSetting_Failover) MarshalJSON

func (this *LocalityLoadBalancerSetting_Failover) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for LocalityLoadBalancerSetting_Failover

func (*LocalityLoadBalancerSetting_Failover) ProtoMessage

func (*LocalityLoadBalancerSetting_Failover) ProtoMessage()

func (*LocalityLoadBalancerSetting_Failover) ProtoReflect

func (*LocalityLoadBalancerSetting_Failover) Reset

func (*LocalityLoadBalancerSetting_Failover) String

func (*LocalityLoadBalancerSetting_Failover) UnmarshalJSON

func (this *LocalityLoadBalancerSetting_Failover) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for LocalityLoadBalancerSetting_Failover

type OutboundTrafficPolicy

type OutboundTrafficPolicy struct {
	Mode OutboundTrafficPolicy_Mode `protobuf:"varint,1,opt,name=mode,proto3,enum=istio.networking.v1alpha3.OutboundTrafficPolicy_Mode" json:"mode,omitempty"`
	// Specifies the details of the egress proxy to which unknown
	// traffic should be forwarded to from the sidecar. Valid only if
	// the mode is set to ALLOW_ANY. If not specified when the mode is
	// ALLOW_ANY, the sidecar will send the unknown traffic directly to
	// the IP requested by the application.
	//
	// ** NOTE 1**: The specified egress host must be imported in the
	// egress section for the traffic forwarding to work.
	//
	// ** NOTE 2**: An Envoy based egress gateway is unlikely to be able
	// to handle plain text TCP connections forwarded from the sidecar.
	// Envoy's dynamic forward proxy can handle only HTTP and TLS
	// connections.
	// $hide_from_docs
	EgressProxy *Destination `protobuf:"bytes,2,opt,name=egress_proxy,json=egressProxy,proto3" json:"egress_proxy,omitempty"`
	// contains filtered or unexported fields
}

`OutboundTrafficPolicy` sets 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 `ServiceEntry` configurations to explicitly declare any external dependencies, instead of using `ALLOW_ANY`, so that traffic to these services can be monitored.

func (*OutboundTrafficPolicy) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OutboundTrafficPolicy. Required by controller-gen.

func (*OutboundTrafficPolicy) DeepCopyInterface

func (in *OutboundTrafficPolicy) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new OutboundTrafficPolicy. Required by controller-gen.

func (*OutboundTrafficPolicy) DeepCopyInto

func (in *OutboundTrafficPolicy) DeepCopyInto(out *OutboundTrafficPolicy)

DeepCopyInto supports using OutboundTrafficPolicy within kubernetes types, where deepcopy-gen is used.

func (*OutboundTrafficPolicy) Descriptor deprecated

func (*OutboundTrafficPolicy) Descriptor() ([]byte, []int)

Deprecated: Use OutboundTrafficPolicy.ProtoReflect.Descriptor instead.

func (*OutboundTrafficPolicy) GetEgressProxy

func (x *OutboundTrafficPolicy) GetEgressProxy() *Destination

func (*OutboundTrafficPolicy) GetMode

func (*OutboundTrafficPolicy) MarshalJSON

func (this *OutboundTrafficPolicy) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for OutboundTrafficPolicy

func (*OutboundTrafficPolicy) ProtoMessage

func (*OutboundTrafficPolicy) ProtoMessage()

func (*OutboundTrafficPolicy) ProtoReflect

func (x *OutboundTrafficPolicy) ProtoReflect() protoreflect.Message

func (*OutboundTrafficPolicy) Reset

func (x *OutboundTrafficPolicy) Reset()

func (*OutboundTrafficPolicy) String

func (x *OutboundTrafficPolicy) String() string

func (*OutboundTrafficPolicy) UnmarshalJSON

func (this *OutboundTrafficPolicy) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for OutboundTrafficPolicy

type OutboundTrafficPolicy_Mode

type OutboundTrafficPolicy_Mode int32
const (
	// Outbound traffic will be restricted to services defined in the
	// service registry as well as those defined through `ServiceEntry` configurations.
	OutboundTrafficPolicy_REGISTRY_ONLY OutboundTrafficPolicy_Mode = 0
	// Outbound traffic to unknown destinations will be allowed, in case
	// there are no services or `ServiceEntry` configurations for the destination port.
	OutboundTrafficPolicy_ALLOW_ANY OutboundTrafficPolicy_Mode = 1
)

func (OutboundTrafficPolicy_Mode) Descriptor

func (OutboundTrafficPolicy_Mode) Enum

func (OutboundTrafficPolicy_Mode) EnumDescriptor deprecated

func (OutboundTrafficPolicy_Mode) EnumDescriptor() ([]byte, []int)

Deprecated: Use OutboundTrafficPolicy_Mode.Descriptor instead.

func (OutboundTrafficPolicy_Mode) Number

func (OutboundTrafficPolicy_Mode) String

func (OutboundTrafficPolicy_Mode) Type

type OutlierDetection

type OutlierDetection struct {

	// Number of errors before a host is ejected from the connection
	// pool. Defaults to 5. When the upstream host is accessed over HTTP, a
	// 502, 503, or 504 return code qualifies as an error. When the upstream host
	// is accessed over an opaque TCP connection, connect timeouts and
	// connection error/failure events qualify as an error.
	// $hide_from_docs
	//
	// Deprecated: Marked as deprecated in networking/v1alpha3/destination_rule.proto.
	ConsecutiveErrors int32 `protobuf:"varint,1,opt,name=consecutive_errors,json=consecutiveErrors,proto3" json:"consecutive_errors,omitempty"`
	// Determines whether to distinguish local origin failures from external errors. If set to true
	// consecutive_local_origin_failure is taken into account for outlier detection calculations.
	// This should be used when you want to derive the outlier detection status based on the errors
	// seen locally such as failure to connect, timeout while connecting etc. rather than the status code
	// returned by upstream service. This is especially useful when the upstream service explicitly returns
	// a 5xx for some requests and you want to ignore those responses from upstream service while determining
	// the outlier detection status of a host.
	// Defaults to false.
	SplitExternalLocalOriginErrors bool `` /* 158-byte string literal not displayed */
	// The number of consecutive locally originated failures before ejection
	// occurs. Defaults to 5. Parameter takes effect only when split_external_local_origin_errors
	// is set to true.
	ConsecutiveLocalOriginFailures *wrappers.UInt32Value `` /* 155-byte string literal not displayed */
	// Number of gateway errors before a host is ejected from the connection pool.
	// When the upstream host is accessed over HTTP, a 502, 503, or 504 return
	// code qualifies as a gateway error. When the upstream host is accessed over
	// an opaque TCP connection, connect timeouts and connection error/failure
	// events qualify as a gateway error.
	// This feature is disabled by default or when set to the value 0.
	//
	// Note that consecutive_gateway_errors and consecutive_5xx_errors can be
	// used separately or together. Because the errors counted by
	// consecutive_gateway_errors are also included in consecutive_5xx_errors,
	// if the value of consecutive_gateway_errors is greater than or equal to
	// the value of consecutive_5xx_errors, consecutive_gateway_errors will have
	// no effect.
	ConsecutiveGatewayErrors *wrappers.UInt32Value `` /* 135-byte string literal not displayed */
	// Number of 5xx errors before a host is ejected from the connection pool.
	// When the upstream host is accessed over an opaque TCP connection, connect
	// timeouts, connection error/failure and request failure events qualify as a
	// 5xx error.
	// This feature defaults to 5 but can be disabled by setting the value to 0.
	//
	// Note that consecutive_gateway_errors and consecutive_5xx_errors can be
	// used separately or together. Because the errors counted by
	// consecutive_gateway_errors are also included in consecutive_5xx_errors,
	// if the value of consecutive_gateway_errors is greater than or equal to
	// the value of consecutive_5xx_errors, consecutive_gateway_errors will have
	// no effect.
	Consecutive_5XxErrors *wrappers.UInt32Value `protobuf:"bytes,7,opt,name=consecutive_5xx_errors,json=consecutive5xxErrors,proto3" json:"consecutive_5xx_errors,omitempty"`
	// Time interval between ejection sweep analysis. format:
	// 1h/1m/1s/1ms. MUST BE >=1ms. Default is 10s.
	Interval *duration.Duration `protobuf:"bytes,2,opt,name=interval,proto3" json:"interval,omitempty"`
	// Minimum ejection duration. A host will remain ejected for a period
	// equal to the product of minimum ejection duration and the number of
	// times the host has been ejected. This technique allows the system to
	// automatically increase the ejection period for unhealthy upstream
	// servers. format: 1h/1m/1s/1ms. MUST BE >=1ms. Default is 30s.
	BaseEjectionTime *duration.Duration `protobuf:"bytes,3,opt,name=base_ejection_time,json=baseEjectionTime,proto3" json:"base_ejection_time,omitempty"`
	// Maximum % of hosts in the load balancing pool for the upstream
	// service that can be ejected. Defaults to 10%.
	MaxEjectionPercent int32 `protobuf:"varint,4,opt,name=max_ejection_percent,json=maxEjectionPercent,proto3" json:"max_ejection_percent,omitempty"`
	// Outlier detection will be enabled as long as the associated load balancing
	// pool has at least min_health_percent hosts in healthy mode. When the
	// percentage of healthy hosts in the load balancing pool drops below this
	// threshold, outlier detection will be disabled and the proxy will load balance
	// across all hosts in the pool (healthy and unhealthy). The threshold can be
	// disabled by setting it to 0%. The default is 0% as it's not typically
	// applicable in k8s environments with few pods per service.
	MinHealthPercent int32 `protobuf:"varint,5,opt,name=min_health_percent,json=minHealthPercent,proto3" json:"min_health_percent,omitempty"`
	// contains filtered or unexported fields
}

A Circuit breaker implementation that tracks the status of each individual host in the upstream service. Applicable to both HTTP and TCP services. For HTTP services, hosts that continually return 5xx errors for API calls are ejected from the pool for a pre-defined period of time. For TCP services, connection timeouts or connection failures to a given host counts as an error when measuring the consecutive errors metric. See Envoy's [outlier detection](https://www.envoyproxy.io/docs/envoy/latest/intro/arch_overview/upstream/outlier) for more details.

The following rule sets a connection pool size of 100 HTTP1 connections with no more than 10 req/connection to the "reviews" service. In addition, it sets a limit of 1000 concurrent HTTP2 requests and configures upstream hosts to be scanned every 5 mins so that any host that fails 7 consecutive times with a 502, 503, or 504 error code will be ejected for 15 minutes.

{{<tabset category-name="example">}} {{<tab name="v1alpha3" category-value="v1alpha3">}} ```yaml apiVersion: networking.istio.io/v1alpha3 kind: DestinationRule metadata:

name: reviews-cb-policy

spec:

host: reviews.prod.svc.cluster.local
trafficPolicy:
  connectionPool:
    tcp:
      maxConnections: 100
    http:
      http2MaxRequests: 1000
      maxRequestsPerConnection: 10
  outlierDetection:
    consecutive5xxErrors: 7
    interval: 5m
    baseEjectionTime: 15m

``` {{</tab>}}

{{<tab name="v1beta1" category-value="v1beta1">}} ```yaml apiVersion: networking.istio.io/v1beta1 kind: DestinationRule metadata:

name: reviews-cb-policy

spec:

host: reviews.prod.svc.cluster.local
trafficPolicy:
  connectionPool:
    tcp:
      maxConnections: 100
    http:
      http2MaxRequests: 1000
      maxRequestsPerConnection: 10
  outlierDetection:
    consecutive5xxErrors: 7
    interval: 5m
    baseEjectionTime: 15m

``` {{</tab>}} {{</tabset>}}

func (*OutlierDetection) DeepCopy

func (in *OutlierDetection) DeepCopy() *OutlierDetection

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OutlierDetection. Required by controller-gen.

func (*OutlierDetection) DeepCopyInterface

func (in *OutlierDetection) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new OutlierDetection. Required by controller-gen.

func (*OutlierDetection) DeepCopyInto

func (in *OutlierDetection) DeepCopyInto(out *OutlierDetection)

DeepCopyInto supports using OutlierDetection within kubernetes types, where deepcopy-gen is used.

func (*OutlierDetection) Descriptor deprecated

func (*OutlierDetection) Descriptor() ([]byte, []int)

Deprecated: Use OutlierDetection.ProtoReflect.Descriptor instead.

func (*OutlierDetection) GetBaseEjectionTime

func (x *OutlierDetection) GetBaseEjectionTime() *duration.Duration

func (*OutlierDetection) GetConsecutiveErrors deprecated

func (x *OutlierDetection) GetConsecutiveErrors() int32

Deprecated: Marked as deprecated in networking/v1alpha3/destination_rule.proto.

func (*OutlierDetection) GetConsecutiveGatewayErrors

func (x *OutlierDetection) GetConsecutiveGatewayErrors() *wrappers.UInt32Value

func (*OutlierDetection) GetConsecutiveLocalOriginFailures

func (x *OutlierDetection) GetConsecutiveLocalOriginFailures() *wrappers.UInt32Value

func (*OutlierDetection) GetConsecutive_5XxErrors

func (x *OutlierDetection) GetConsecutive_5XxErrors() *wrappers.UInt32Value

func (*OutlierDetection) GetInterval

func (x *OutlierDetection) GetInterval() *duration.Duration

func (*OutlierDetection) GetMaxEjectionPercent

func (x *OutlierDetection) GetMaxEjectionPercent() int32

func (*OutlierDetection) GetMinHealthPercent

func (x *OutlierDetection) GetMinHealthPercent() int32

func (*OutlierDetection) GetSplitExternalLocalOriginErrors

func (x *OutlierDetection) GetSplitExternalLocalOriginErrors() bool

func (*OutlierDetection) MarshalJSON

func (this *OutlierDetection) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for OutlierDetection

func (*OutlierDetection) ProtoMessage

func (*OutlierDetection) ProtoMessage()

func (*OutlierDetection) ProtoReflect

func (x *OutlierDetection) ProtoReflect() protoreflect.Message

func (*OutlierDetection) Reset

func (x *OutlierDetection) Reset()

func (*OutlierDetection) String

func (x *OutlierDetection) String() string

func (*OutlierDetection) UnmarshalJSON

func (this *OutlierDetection) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for OutlierDetection

type Percent

type Percent struct {
	Value float64 `protobuf:"fixed64,1,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

Percent specifies a percentage in the range of [0.0, 100.0].

func (*Percent) DeepCopy

func (in *Percent) DeepCopy() *Percent

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Percent. Required by controller-gen.

func (*Percent) DeepCopyInterface

func (in *Percent) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new Percent. Required by controller-gen.

func (*Percent) DeepCopyInto

func (in *Percent) DeepCopyInto(out *Percent)

DeepCopyInto supports using Percent within kubernetes types, where deepcopy-gen is used.

func (*Percent) Descriptor deprecated

func (*Percent) Descriptor() ([]byte, []int)

Deprecated: Use Percent.ProtoReflect.Descriptor instead.

func (*Percent) GetValue

func (x *Percent) GetValue() float64

func (*Percent) MarshalJSON

func (this *Percent) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for Percent

func (*Percent) ProtoMessage

func (*Percent) ProtoMessage()

func (*Percent) ProtoReflect

func (x *Percent) ProtoReflect() protoreflect.Message

func (*Percent) Reset

func (x *Percent) Reset()

func (*Percent) String

func (x *Percent) String() string

func (*Percent) UnmarshalJSON

func (this *Percent) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for Percent

type Port

type Port struct {

	// A valid non-negative integer port number.
	Number uint32 `protobuf:"varint,1,opt,name=number,proto3" json:"number,omitempty"`
	// The protocol exposed on the port.
	// MUST BE one of HTTP|HTTPS|GRPC|GRPC-WEB|HTTP2|MONGO|TCP|TLS.
	// TLS can be either used to terminate non-HTTP based connections on a specific port
	// or to route traffic based on SNI header to the destination without terminating the TLS connection.
	Protocol string `protobuf:"bytes,2,opt,name=protocol,proto3" json:"protocol,omitempty"`
	// Label assigned to the port.
	Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	// The port number on the endpoint where the traffic will be
	// received. Applicable only when used with ServiceEntries.
	// $hide_from_docs
	//
	// Deprecated: Marked as deprecated in networking/v1alpha3/gateway.proto.
	TargetPort uint32 `protobuf:"varint,4,opt,name=target_port,json=targetPort,proto3" json:"target_port,omitempty"`
	// contains filtered or unexported fields
}

Port describes the properties of a specific port of a service.

func (*Port) DeepCopy

func (in *Port) DeepCopy() *Port

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Port. Required by controller-gen.

func (*Port) DeepCopyInterface

func (in *Port) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new Port. Required by controller-gen.

func (*Port) DeepCopyInto

func (in *Port) DeepCopyInto(out *Port)

DeepCopyInto supports using Port within kubernetes types, where deepcopy-gen is used.

func (*Port) Descriptor deprecated

func (*Port) Descriptor() ([]byte, []int)

Deprecated: Use Port.ProtoReflect.Descriptor instead.

func (*Port) GetName

func (x *Port) GetName() string

func (*Port) GetNumber

func (x *Port) GetNumber() uint32

func (*Port) GetProtocol

func (x *Port) GetProtocol() string

func (*Port) GetTargetPort deprecated

func (x *Port) GetTargetPort() uint32

Deprecated: Marked as deprecated in networking/v1alpha3/gateway.proto.

func (*Port) MarshalJSON

func (this *Port) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for Port

func (*Port) ProtoMessage

func (*Port) ProtoMessage()

func (*Port) ProtoReflect

func (x *Port) ProtoReflect() protoreflect.Message

func (*Port) Reset

func (x *Port) Reset()

func (*Port) String

func (x *Port) String() string

func (*Port) UnmarshalJSON

func (this *Port) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for Port

type PortSelector

type PortSelector struct {

	// Valid port number
	Number uint32 `protobuf:"varint,1,opt,name=number,proto3" json:"number,omitempty"`
	// contains filtered or unexported fields
}

PortSelector specifies the number of a port to be used for matching or selection for final routing.

func (*PortSelector) DeepCopy

func (in *PortSelector) DeepCopy() *PortSelector

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PortSelector. Required by controller-gen.

func (*PortSelector) DeepCopyInterface

func (in *PortSelector) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new PortSelector. Required by controller-gen.

func (*PortSelector) DeepCopyInto

func (in *PortSelector) DeepCopyInto(out *PortSelector)

DeepCopyInto supports using PortSelector within kubernetes types, where deepcopy-gen is used.

func (*PortSelector) Descriptor deprecated

func (*PortSelector) Descriptor() ([]byte, []int)

Deprecated: Use PortSelector.ProtoReflect.Descriptor instead.

func (*PortSelector) GetNumber

func (x *PortSelector) GetNumber() uint32

func (*PortSelector) MarshalJSON

func (this *PortSelector) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for PortSelector

func (*PortSelector) ProtoMessage

func (*PortSelector) ProtoMessage()

func (*PortSelector) ProtoReflect

func (x *PortSelector) ProtoReflect() protoreflect.Message

func (*PortSelector) Reset

func (x *PortSelector) Reset()

func (*PortSelector) String

func (x *PortSelector) String() string

func (*PortSelector) UnmarshalJSON

func (this *PortSelector) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for PortSelector

type ReadinessProbe

type ReadinessProbe struct {

	// Number of seconds after the container has started before readiness probes are initiated.
	InitialDelaySeconds int32 `protobuf:"varint,2,opt,name=initial_delay_seconds,json=initialDelaySeconds,proto3" json:"initial_delay_seconds,omitempty"`
	// Number of seconds after which the probe times out.
	// Defaults to 1 second. Minimum value is 1 second.
	TimeoutSeconds int32 `protobuf:"varint,3,opt,name=timeout_seconds,json=timeoutSeconds,proto3" json:"timeout_seconds,omitempty"`
	// How often (in seconds) to perform the probe.
	// Default to 10 seconds. Minimum value is 1 second.
	PeriodSeconds int32 `protobuf:"varint,4,opt,name=period_seconds,json=periodSeconds,proto3" json:"period_seconds,omitempty"`
	// Minimum consecutive successes for the probe to be considered successful after having failed.
	// Defaults to 1 second.
	SuccessThreshold int32 `protobuf:"varint,5,opt,name=success_threshold,json=successThreshold,proto3" json:"success_threshold,omitempty"`
	// Minimum consecutive failures for the probe to be considered failed after having succeeded.
	// Defaults to 3 seconds.
	FailureThreshold int32 `protobuf:"varint,6,opt,name=failure_threshold,json=failureThreshold,proto3" json:"failure_threshold,omitempty"`
	// Users can only provide one configuration for healthchecks (tcp, http, exec),
	// and this is expressed as a oneof. All of the other configuration values
	// hold true for any of the healthcheck methods.
	//
	// Types that are assignable to HealthCheckMethod:
	//
	//	*ReadinessProbe_HttpGet
	//	*ReadinessProbe_TcpSocket
	//	*ReadinessProbe_Exec
	HealthCheckMethod isReadinessProbe_HealthCheckMethod `protobuf_oneof:"health_check_method"`
	// contains filtered or unexported fields
}

func (*ReadinessProbe) DeepCopy

func (in *ReadinessProbe) DeepCopy() *ReadinessProbe

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ReadinessProbe. Required by controller-gen.

func (*ReadinessProbe) DeepCopyInterface

func (in *ReadinessProbe) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new ReadinessProbe. Required by controller-gen.

func (*ReadinessProbe) DeepCopyInto

func (in *ReadinessProbe) DeepCopyInto(out *ReadinessProbe)

DeepCopyInto supports using ReadinessProbe within kubernetes types, where deepcopy-gen is used.

func (*ReadinessProbe) Descriptor deprecated

func (*ReadinessProbe) Descriptor() ([]byte, []int)

Deprecated: Use ReadinessProbe.ProtoReflect.Descriptor instead.

func (*ReadinessProbe) GetExec

func (x *ReadinessProbe) GetExec() *ExecHealthCheckConfig

func (*ReadinessProbe) GetFailureThreshold

func (x *ReadinessProbe) GetFailureThreshold() int32

func (*ReadinessProbe) GetHealthCheckMethod

func (m *ReadinessProbe) GetHealthCheckMethod() isReadinessProbe_HealthCheckMethod

func (*ReadinessProbe) GetHttpGet

func (x *ReadinessProbe) GetHttpGet() *HTTPHealthCheckConfig

func (*ReadinessProbe) GetInitialDelaySeconds

func (x *ReadinessProbe) GetInitialDelaySeconds() int32

func (*ReadinessProbe) GetPeriodSeconds

func (x *ReadinessProbe) GetPeriodSeconds() int32

func (*ReadinessProbe) GetSuccessThreshold

func (x *ReadinessProbe) GetSuccessThreshold() int32

func (*ReadinessProbe) GetTcpSocket

func (x *ReadinessProbe) GetTcpSocket() *TCPHealthCheckConfig

func (*ReadinessProbe) GetTimeoutSeconds

func (x *ReadinessProbe) GetTimeoutSeconds() int32

func (*ReadinessProbe) MarshalJSON

func (this *ReadinessProbe) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for ReadinessProbe

func (*ReadinessProbe) ProtoMessage

func (*ReadinessProbe) ProtoMessage()

func (*ReadinessProbe) ProtoReflect

func (x *ReadinessProbe) ProtoReflect() protoreflect.Message

func (*ReadinessProbe) Reset

func (x *ReadinessProbe) Reset()

func (*ReadinessProbe) String

func (x *ReadinessProbe) String() string

func (*ReadinessProbe) UnmarshalJSON

func (this *ReadinessProbe) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for ReadinessProbe

type ReadinessProbe_Exec

type ReadinessProbe_Exec struct {
	// Health is determined by how the command that is executed exited.
	Exec *ExecHealthCheckConfig `protobuf:"bytes,9,opt,name=exec,proto3,oneof"`
}

type ReadinessProbe_HttpGet

type ReadinessProbe_HttpGet struct {
	// `httpGet` is performed to a given endpoint
	// and the status/able to connect determines health.
	HttpGet *HTTPHealthCheckConfig `protobuf:"bytes,7,opt,name=http_get,json=httpGet,proto3,oneof"`
}

type ReadinessProbe_TcpSocket

type ReadinessProbe_TcpSocket struct {
	// Health is determined by if the proxy is able to connect.
	TcpSocket *TCPHealthCheckConfig `protobuf:"bytes,8,opt,name=tcp_socket,json=tcpSocket,proto3,oneof"`
}

type RegexRewrite

type RegexRewrite struct {

	// RE2 style regex-based match (https://github.com/google/re2/wiki/Syntax).
	Match string `protobuf:"bytes,1,opt,name=match,proto3" json:"match,omitempty"`
	// The string that should replace into matching portions of original URI.
	// Capture groups in the pattern can be referenced in the new URI.
	// Examples:
	//
	// Example 1: rewrite with capture groups
	// Path pattern "/service/update/v1/api" with match "^/service/([^/]+)(/.*)$" and
	// rewrite string of "/customprefix/\2/\1" would transform into "/customprefix/v1/api/update".
	//
	// Example 2: case insensitive rewrite
	// Path pattern "/aaa/XxX/bbb" with match "(?i)/xxx/" and a rewrite string of /yyy/ would do a
	// case-insensitive match and transform the path to "/aaa/yyy/bbb".
	Rewrite string `protobuf:"bytes,2,opt,name=rewrite,proto3" json:"rewrite,omitempty"`
	// contains filtered or unexported fields
}

func (*RegexRewrite) DeepCopy

func (in *RegexRewrite) DeepCopy() *RegexRewrite

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RegexRewrite. Required by controller-gen.

func (*RegexRewrite) DeepCopyInterface

func (in *RegexRewrite) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new RegexRewrite. Required by controller-gen.

func (*RegexRewrite) DeepCopyInto

func (in *RegexRewrite) DeepCopyInto(out *RegexRewrite)

DeepCopyInto supports using RegexRewrite within kubernetes types, where deepcopy-gen is used.

func (*RegexRewrite) Descriptor deprecated

func (*RegexRewrite) Descriptor() ([]byte, []int)

Deprecated: Use RegexRewrite.ProtoReflect.Descriptor instead.

func (*RegexRewrite) GetMatch

func (x *RegexRewrite) GetMatch() string

func (*RegexRewrite) GetRewrite

func (x *RegexRewrite) GetRewrite() string

func (*RegexRewrite) MarshalJSON

func (this *RegexRewrite) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for RegexRewrite

func (*RegexRewrite) ProtoMessage

func (*RegexRewrite) ProtoMessage()

func (*RegexRewrite) ProtoReflect

func (x *RegexRewrite) ProtoReflect() protoreflect.Message

func (*RegexRewrite) Reset

func (x *RegexRewrite) Reset()

func (*RegexRewrite) String

func (x *RegexRewrite) String() string

func (*RegexRewrite) UnmarshalJSON

func (this *RegexRewrite) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for RegexRewrite

type RouteDestination

type RouteDestination struct {

	// Destination uniquely identifies the instances of a service
	// to which the request/connection should be forwarded to.
	Destination *Destination `protobuf:"bytes,1,opt,name=destination,proto3" json:"destination,omitempty"`
	// Weight specifies the relative proportion of traffic to be forwarded to the destination. A destination will receive `weight/(sum of all weights)` requests.
	// If there is only one destination in a rule, it will receive all traffic.
	// Otherwise, if weight is `0`, the destination will not receive any traffic.
	Weight int32 `protobuf:"varint,2,opt,name=weight,proto3" json:"weight,omitempty"`
	// contains filtered or unexported fields
}

L4 routing rule weighted destination.

func (*RouteDestination) DeepCopy

func (in *RouteDestination) DeepCopy() *RouteDestination

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RouteDestination. Required by controller-gen.

func (*RouteDestination) DeepCopyInterface

func (in *RouteDestination) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new RouteDestination. Required by controller-gen.

func (*RouteDestination) DeepCopyInto

func (in *RouteDestination) DeepCopyInto(out *RouteDestination)

DeepCopyInto supports using RouteDestination within kubernetes types, where deepcopy-gen is used.

func (*RouteDestination) Descriptor deprecated

func (*RouteDestination) Descriptor() ([]byte, []int)

Deprecated: Use RouteDestination.ProtoReflect.Descriptor instead.

func (*RouteDestination) GetDestination

func (x *RouteDestination) GetDestination() *Destination

func (*RouteDestination) GetWeight

func (x *RouteDestination) GetWeight() int32

func (*RouteDestination) MarshalJSON

func (this *RouteDestination) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for RouteDestination

func (*RouteDestination) ProtoMessage

func (*RouteDestination) ProtoMessage()

func (*RouteDestination) ProtoReflect

func (x *RouteDestination) ProtoReflect() protoreflect.Message

func (*RouteDestination) Reset

func (x *RouteDestination) Reset()

func (*RouteDestination) String

func (x *RouteDestination) String() string

func (*RouteDestination) UnmarshalJSON

func (this *RouteDestination) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for RouteDestination

type Server

type Server struct {

	// The Port on which the proxy should listen for incoming
	// connections.
	Port *Port `protobuf:"bytes,1,opt,name=port,proto3" json:"port,omitempty"`
	// The ip or the Unix domain socket to which the listener should be bound
	// to. Format: `x.x.x.x` or `unix:///path/to/uds` or `unix://@foobar`
	// (Linux abstract namespace). When using Unix domain sockets, the port
	// number should be 0.
	// This can be used to restrict the reachability of this server to be gateway internal only.
	// This is typically used when a gateway needs to communicate to another mesh service
	// e.g. publishing metrics. In such case, the server created with the
	// specified bind will not be available to external gateway clients.
	Bind string `protobuf:"bytes,4,opt,name=bind,proto3" json:"bind,omitempty"`
	// One or more hosts exposed by this gateway.
	// While typically applicable to
	// HTTP services, it can also be used for TCP services using TLS with SNI.
	// A host is specified as a `dnsName` with an optional `namespace/` prefix.
	// The `dnsName` should be specified using FQDN format, optionally including
	// a wildcard character in the left-most component (e.g., `prod/*.example.com`).
	// Set the `dnsName` to `*` to select all `VirtualService` hosts from the
	// specified namespace (e.g.,`prod/*`).
	//
	// The `namespace` can be set to `*` or `.`, representing any or the current
	// namespace, respectively. For example, `*/foo.example.com` selects the
	// service from any available namespace while `./foo.example.com` only selects
	// the service from the namespace of the sidecar. The default, if no `namespace/`
	// is specified, is `*/`, that is, select services from any namespace.
	// Any associated `DestinationRule` in the selected namespace will also be used.
	//
	// A `VirtualService` must be bound to the gateway and must have one or
	// more hosts that match the hosts specified in a server. The match
	// could be an exact match or a suffix match with the server's hosts. For
	// example, if the server's hosts specifies `*.example.com`, a
	// `VirtualService` with hosts `dev.example.com` or `prod.example.com` will
	// match. However, a `VirtualService` with host `example.com` or
	// `newexample.com` will not match.
	//
	// NOTE: Only virtual services exported to the gateway's namespace
	// (e.g., `exportTo` value of `*`) can be referenced.
	// Private configurations (e.g., `exportTo` set to `.`) will not be
	// available. Refer to the `exportTo` setting in `VirtualService`,
	// `DestinationRule`, and `ServiceEntry` configurations for details.
	Hosts []string `protobuf:"bytes,2,rep,name=hosts,proto3" json:"hosts,omitempty"`
	// Set of TLS related options that govern the server's behavior. Use
	// these options to control if all http requests should be redirected to
	// https, and the TLS modes to use.
	Tls *ServerTLSSettings `protobuf:"bytes,3,opt,name=tls,proto3" json:"tls,omitempty"`
	// The loopback IP endpoint or Unix domain socket to which traffic should
	// be forwarded to by default. Format should be `127.0.0.1:PORT` or
	// `unix:///path/to/socket` or `unix://@foobar` (Linux abstract namespace).
	// NOT IMPLEMENTED.
	// $hide_from_docs
	DefaultEndpoint string `protobuf:"bytes,5,opt,name=default_endpoint,json=defaultEndpoint,proto3" json:"default_endpoint,omitempty"`
	// An optional name of the server, when set must be unique across all servers.
	// This will be used for variety of purposes like prefixing stats generated with
	// this name etc.
	Name string `protobuf:"bytes,6,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

`Server` describes the properties of the proxy on a given load balancer port. For example,

{{<tabset category-name="example">}} {{<tab name="v1alpha3" category-value="v1alpha3">}} ```yaml apiVersion: networking.istio.io/v1alpha3 kind: Gateway metadata:

name: my-ingress

spec:

selector:
  app: my-ingressgateway
servers:
- port:
    number: 80
    name: http2
    protocol: HTTP2
  hosts:
  - "*"

``` {{</tab>}}

{{<tab name="v1beta1" category-value="v1beta1">}} ```yaml apiVersion: networking.istio.io/v1beta1 kind: Gateway metadata:

name: my-ingress

spec:

selector:
  app: my-ingressgateway
servers:
- port:
    number: 80
    name: http2
    protocol: HTTP2
  hosts:
  - "*"

``` {{</tab>}} {{</tabset>}}

Another example

{{<tabset category-name="example">}} {{<tab name="v1alpha3" category-value="v1alpha3">}} ```yaml apiVersion: networking.istio.io/v1alpha3 kind: Gateway metadata:

name: my-tcp-ingress

spec:

selector:
  app: my-tcp-ingressgateway
servers:
- port:
    number: 27018
    name: mongo
    protocol: MONGO
  hosts:
  - "*"

``` {{</tab>}}

{{<tab name="v1beta1" category-value="v1beta1">}} ```yaml apiVersion: networking.istio.io/v1beta1 kind: Gateway metadata:

name: my-tcp-ingress

spec:

selector:
  app: my-tcp-ingressgateway
servers:
- port:
    number: 27018
    name: mongo
    protocol: MONGO
  hosts:
  - "*"

``` {{</tab>}} {{</tabset>}}

The following is an example of TLS configuration for port 443

{{<tabset category-name="example">}} {{<tab name="v1alpha3" category-value="v1alpha3">}} ```yaml apiVersion: networking.istio.io/v1alpha3 kind: Gateway metadata:

name: my-tls-ingress

spec:

selector:
  app: my-tls-ingressgateway
servers:
- port:
    number: 443
    name: https
    protocol: HTTPS
  hosts:
  - "*"
  tls:
    mode: SIMPLE
    credentialName: tls-cert

``` {{</tab>}}

{{<tab name="v1beta1" category-value="v1beta1">}} ```yaml apiVersion: networking.istio.io/v1beta1 kind: Gateway metadata:

name: my-tls-ingress

spec:

selector:
  app: my-tls-ingressgateway
servers:
- port:
    number: 443
    name: https
    protocol: HTTPS
  hosts:
  - "*"
  tls:
    mode: SIMPLE
    credentialName: tls-cert

``` {{</tab>}} {{</tabset>}}

func (*Server) DeepCopy

func (in *Server) DeepCopy() *Server

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Server. Required by controller-gen.

func (*Server) DeepCopyInterface

func (in *Server) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new Server. Required by controller-gen.

func (*Server) DeepCopyInto

func (in *Server) DeepCopyInto(out *Server)

DeepCopyInto supports using Server within kubernetes types, where deepcopy-gen is used.

func (*Server) Descriptor deprecated

func (*Server) Descriptor() ([]byte, []int)

Deprecated: Use Server.ProtoReflect.Descriptor instead.

func (*Server) GetBind

func (x *Server) GetBind() string

func (*Server) GetDefaultEndpoint

func (x *Server) GetDefaultEndpoint() string

func (*Server) GetHosts

func (x *Server) GetHosts() []string

func (*Server) GetName

func (x *Server) GetName() string

func (*Server) GetPort

func (x *Server) GetPort() *Port

func (*Server) GetTls

func (x *Server) GetTls() *ServerTLSSettings

func (*Server) MarshalJSON

func (this *Server) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for Server

func (*Server) ProtoMessage

func (*Server) ProtoMessage()

func (*Server) ProtoReflect

func (x *Server) ProtoReflect() protoreflect.Message

func (*Server) Reset

func (x *Server) Reset()

func (*Server) String

func (x *Server) String() string

func (*Server) UnmarshalJSON

func (this *Server) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for Server

type ServerTLSSettings

type ServerTLSSettings struct {

	// If set to true, the load balancer will send a 301 redirect for
	// all http connections, asking the clients to use HTTPS.
	HttpsRedirect bool `protobuf:"varint,1,opt,name=https_redirect,json=httpsRedirect,proto3" json:"https_redirect,omitempty"`
	// Optional: Indicates whether connections to this port should be
	// secured using TLS. The value of this field determines how TLS is
	// enforced.
	Mode ServerTLSSettings_TLSmode `protobuf:"varint,2,opt,name=mode,proto3,enum=istio.networking.v1alpha3.ServerTLSSettings_TLSmode" json:"mode,omitempty"`
	// REQUIRED if mode is `SIMPLE` or `MUTUAL`. The path to the file
	// holding the server-side TLS certificate to use.
	ServerCertificate string `protobuf:"bytes,3,opt,name=server_certificate,json=serverCertificate,proto3" json:"server_certificate,omitempty"`
	// REQUIRED if mode is `SIMPLE` or `MUTUAL`. The path to the file
	// holding the server's private key.
	PrivateKey string `protobuf:"bytes,4,opt,name=private_key,json=privateKey,proto3" json:"private_key,omitempty"`
	// REQUIRED if mode is `MUTUAL` or `OPTIONAL_MUTUAL`. The path to a file
	// containing certificate authority certificates to use in verifying a presented
	// client side certificate.
	CaCertificates string `protobuf:"bytes,5,opt,name=ca_certificates,json=caCertificates,proto3" json:"ca_certificates,omitempty"`
	// For gateways running on Kubernetes, the name of the secret that
	// holds the TLS certs including the CA certificates. Applicable
	// only on Kubernetes. An Opaque secret should contain the following
	// keys and values: `tls.key: <privateKey>` and `tls.crt: <serverCert>` or
	// `key: <privateKey>` and `cert: <serverCert>`.
	// For mutual TLS, `cacert: <CACertificate>` and `crl: <CertificateRevocationList>`
	// can be provided in the same secret or a separate secret named `<secret>-cacert`.
	// A TLS secret for server certificates with an additional `tls.ocsp-staple` key
	// for specifying OCSP staple information, `ca.crt` key for CA certificates
	// and `ca.crl` for certificate revocation list is also supported.
	// Only one of server certificates and CA certificate
	// or credentialName can be specified.
	CredentialName string `protobuf:"bytes,10,opt,name=credential_name,json=credentialName,proto3" json:"credential_name,omitempty"`
	// A list of alternate names to verify the subject identity in the
	// certificate presented by the client.
	SubjectAltNames []string `protobuf:"bytes,6,rep,name=subject_alt_names,json=subjectAltNames,proto3" json:"subject_alt_names,omitempty"`
	// An optional list of base64-encoded SHA-256 hashes of the SPKIs of
	// authorized client certificates.
	// Note: When both verify_certificate_hash and verify_certificate_spki
	// are specified, a hash matching either value will result in the
	// certificate being accepted.
	VerifyCertificateSpki []string `` /* 127-byte string literal not displayed */
	// An optional list of hex-encoded SHA-256 hashes of the
	// authorized client certificates. Both simple and colon separated
	// formats are acceptable.
	// Note: When both verify_certificate_hash and verify_certificate_spki
	// are specified, a hash matching either value will result in the
	// certificate being accepted.
	VerifyCertificateHash []string `` /* 127-byte string literal not displayed */
	// Optional: Minimum TLS protocol version. By default, it is `TLSV1_2`.
	// TLS protocol versions below TLSV1_2 require setting compatible ciphers with the
	// `cipherSuites` setting as they no longer include compatible ciphers.
	//
	// Note: Using TLS protocol versions below TLSV1_2 has serious security risks.
	MinProtocolVersion ServerTLSSettings_TLSProtocol `` /* 179-byte string literal not displayed */
	// Optional: Maximum TLS protocol version.
	MaxProtocolVersion ServerTLSSettings_TLSProtocol `` /* 179-byte string literal not displayed */
	// Optional: If specified, only support the specified cipher list.
	// Otherwise default to the default cipher list supported by Envoy
	// as specified [here](https://www.envoyproxy.io/docs/envoy/latest/api-v3/extensions/transport_sockets/tls/v3/common.proto).
	// The supported list of ciphers are:
	// * `ECDHE-ECDSA-AES128-GCM-SHA256`
	// * `ECDHE-RSA-AES128-GCM-SHA256`
	// * `ECDHE-ECDSA-AES256-GCM-SHA384`
	// * `ECDHE-RSA-AES256-GCM-SHA384`
	// * `ECDHE-ECDSA-CHACHA20-POLY1305`
	// * `ECDHE-RSA-CHACHA20-POLY1305`
	// * `ECDHE-ECDSA-AES128-SHA`
	// * `ECDHE-RSA-AES128-SHA`
	// * `ECDHE-ECDSA-AES256-SHA`
	// * `ECDHE-RSA-AES256-SHA`
	// * `AES128-GCM-SHA256`
	// * `AES256-GCM-SHA384`
	// * `AES128-SHA`
	// * `AES256-SHA`
	// * `DES-CBC3-SHA`
	CipherSuites []string `protobuf:"bytes,9,rep,name=cipher_suites,json=cipherSuites,proto3" json:"cipher_suites,omitempty"`
	// contains filtered or unexported fields
}

func (*ServerTLSSettings) DeepCopy

func (in *ServerTLSSettings) DeepCopy() *ServerTLSSettings

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServerTLSSettings. Required by controller-gen.

func (*ServerTLSSettings) DeepCopyInterface

func (in *ServerTLSSettings) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new ServerTLSSettings. Required by controller-gen.

func (*ServerTLSSettings) DeepCopyInto

func (in *ServerTLSSettings) DeepCopyInto(out *ServerTLSSettings)

DeepCopyInto supports using ServerTLSSettings within kubernetes types, where deepcopy-gen is used.

func (*ServerTLSSettings) Descriptor deprecated

func (*ServerTLSSettings) Descriptor() ([]byte, []int)

Deprecated: Use ServerTLSSettings.ProtoReflect.Descriptor instead.

func (*ServerTLSSettings) GetCaCertificates

func (x *ServerTLSSettings) GetCaCertificates() string

func (*ServerTLSSettings) GetCipherSuites

func (x *ServerTLSSettings) GetCipherSuites() []string

func (*ServerTLSSettings) GetCredentialName

func (x *ServerTLSSettings) GetCredentialName() string

func (*ServerTLSSettings) GetHttpsRedirect

func (x *ServerTLSSettings) GetHttpsRedirect() bool

func (*ServerTLSSettings) GetMaxProtocolVersion

func (x *ServerTLSSettings) GetMaxProtocolVersion() ServerTLSSettings_TLSProtocol

func (*ServerTLSSettings) GetMinProtocolVersion

func (x *ServerTLSSettings) GetMinProtocolVersion() ServerTLSSettings_TLSProtocol

func (*ServerTLSSettings) GetMode

func (*ServerTLSSettings) GetPrivateKey

func (x *ServerTLSSettings) GetPrivateKey() string

func (*ServerTLSSettings) GetServerCertificate

func (x *ServerTLSSettings) GetServerCertificate() string

func (*ServerTLSSettings) GetSubjectAltNames

func (x *ServerTLSSettings) GetSubjectAltNames() []string

func (*ServerTLSSettings) GetVerifyCertificateHash

func (x *ServerTLSSettings) GetVerifyCertificateHash() []string

func (*ServerTLSSettings) GetVerifyCertificateSpki

func (x *ServerTLSSettings) GetVerifyCertificateSpki() []string

func (*ServerTLSSettings) MarshalJSON

func (this *ServerTLSSettings) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for ServerTLSSettings

func (*ServerTLSSettings) ProtoMessage

func (*ServerTLSSettings) ProtoMessage()

func (*ServerTLSSettings) ProtoReflect

func (x *ServerTLSSettings) ProtoReflect() protoreflect.Message

func (*ServerTLSSettings) Reset

func (x *ServerTLSSettings) Reset()

func (*ServerTLSSettings) String

func (x *ServerTLSSettings) String() string

func (*ServerTLSSettings) UnmarshalJSON

func (this *ServerTLSSettings) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for ServerTLSSettings

type ServerTLSSettings_TLSProtocol

type ServerTLSSettings_TLSProtocol int32

TLS protocol versions.

const (
	// Automatically choose the optimal TLS version.
	ServerTLSSettings_TLS_AUTO ServerTLSSettings_TLSProtocol = 0
	// TLS version 1.0
	ServerTLSSettings_TLSV1_0 ServerTLSSettings_TLSProtocol = 1
	// TLS version 1.1
	ServerTLSSettings_TLSV1_1 ServerTLSSettings_TLSProtocol = 2
	// TLS version 1.2
	ServerTLSSettings_TLSV1_2 ServerTLSSettings_TLSProtocol = 3
	// TLS version 1.3
	ServerTLSSettings_TLSV1_3 ServerTLSSettings_TLSProtocol = 4
)

func (ServerTLSSettings_TLSProtocol) Descriptor

func (ServerTLSSettings_TLSProtocol) Enum

func (ServerTLSSettings_TLSProtocol) EnumDescriptor deprecated

func (ServerTLSSettings_TLSProtocol) EnumDescriptor() ([]byte, []int)

Deprecated: Use ServerTLSSettings_TLSProtocol.Descriptor instead.

func (ServerTLSSettings_TLSProtocol) Number

func (ServerTLSSettings_TLSProtocol) String

func (ServerTLSSettings_TLSProtocol) Type

type ServerTLSSettings_TLSmode

type ServerTLSSettings_TLSmode int32

TLS modes enforced by the proxy

const (
	// The SNI string presented by the client will be used as the
	// match criterion in a VirtualService TLS route to determine
	// the destination service from the service registry.
	ServerTLSSettings_PASSTHROUGH ServerTLSSettings_TLSmode = 0
	// Secure connections with standard TLS semantics. In this mode
	// client certificate is not requested during handshake.
	ServerTLSSettings_SIMPLE ServerTLSSettings_TLSmode = 1
	// Secure connections to the downstream using mutual TLS by
	// presenting server certificates for authentication.
	// A client certificate will also be requested during the handshake and
	// at least one valid certificate is required to be sent by the client.
	ServerTLSSettings_MUTUAL ServerTLSSettings_TLSmode = 2
	// Similar to the passthrough mode, except servers with this TLS
	// mode do not require an associated VirtualService to map from
	// the SNI value to service in the registry. The destination
	// details such as the service/subset/port are encoded in the
	// SNI value. The proxy will forward to the upstream (Envoy)
	// cluster (a group of endpoints) specified by the SNI
	// value. This server is typically used to provide connectivity
	// between services in disparate L3 networks that otherwise do
	// not have direct connectivity between their respective
	// endpoints. Use of this mode assumes that both the source and
	// the destination are using Istio mTLS to secure traffic.
	ServerTLSSettings_AUTO_PASSTHROUGH ServerTLSSettings_TLSmode = 3
	// Secure connections from the downstream using mutual TLS by
	// presenting server certificates for authentication.  Compared
	// to Mutual mode, this mode uses certificates, representing
	// gateway workload identity, generated automatically by Istio
	// for mTLS authentication. When this mode is used, all other
	// fields in `TLSOptions` should be empty.
	ServerTLSSettings_ISTIO_MUTUAL ServerTLSSettings_TLSmode = 4
	// Similar to MUTUAL mode, except that the client certificate
	// is optional. Unlike SIMPLE mode, A client certificate will
	// still be explicitly requested during handshake, but the client
	// is not required to send a certificate. If a client certificate
	// is presented, it will be validated. ca_certificates should
	// be specified for validating client certificates.
	ServerTLSSettings_OPTIONAL_MUTUAL ServerTLSSettings_TLSmode = 5
)

func (ServerTLSSettings_TLSmode) Descriptor

func (ServerTLSSettings_TLSmode) Enum

func (ServerTLSSettings_TLSmode) EnumDescriptor deprecated

func (ServerTLSSettings_TLSmode) EnumDescriptor() ([]byte, []int)

Deprecated: Use ServerTLSSettings_TLSmode.Descriptor instead.

func (ServerTLSSettings_TLSmode) Number

func (ServerTLSSettings_TLSmode) String

func (x ServerTLSSettings_TLSmode) String() string

func (ServerTLSSettings_TLSmode) Type

type ServiceEntry

type ServiceEntry struct {

	// The hosts associated with the ServiceEntry. Could be a DNS
	// name with wildcard prefix.
	//
	// 1. The hosts field is used to select matching hosts in VirtualServices and DestinationRules.
	// 2. For HTTP traffic the HTTP Host/Authority header will be matched against the hosts field.
	// 3. For HTTPs or TLS traffic containing Server Name Indication (SNI), the SNI value
	// will be matched against the hosts field.
	//
	// **NOTE 1:** When resolution is set to type DNS and no endpoints
	// are specified, the host field will be used as the DNS name of the
	// endpoint to route traffic to.
	//
	// **NOTE 2:** If the hostname matches with the name of a service
	// from another service registry such as Kubernetes that also
	// supplies its own set of endpoints, the ServiceEntry will be
	// treated as a decorator of the existing Kubernetes
	// service. Properties in the service entry will be added to the
	// Kubernetes service if applicable. Currently, only the following
	// additional properties will be considered by `istiod`:
	//
	//  1. subjectAltNames: In addition to verifying the SANs of the
	//     service accounts associated with the pods of the service, the
	//     SANs specified here will also be verified.
	Hosts []string `protobuf:"bytes,1,rep,name=hosts,proto3" json:"hosts,omitempty"`
	// The virtual IP addresses associated with the service. Could be CIDR
	// prefix. For HTTP traffic, generated route configurations will include http route
	// domains for both the `addresses` and `hosts` field values and the destination will
	// be identified based on the HTTP Host/Authority header.
	// If one or more IP addresses are specified,
	// the incoming traffic will be identified as belonging to this service
	// if the destination IP matches the IP/CIDRs specified in the addresses
	// field. If the Addresses field is empty, traffic will be identified
	// solely based on the destination port. In such scenarios, the port on
	// which the service is being accessed must not be shared by any other
	// service in the mesh. In other words, the sidecar will behave as a
	// simple TCP proxy, forwarding incoming traffic on a specified port to
	// the specified destination endpoint IP/host. Unix domain socket
	// addresses are not supported in this field.
	Addresses []string `protobuf:"bytes,2,rep,name=addresses,proto3" json:"addresses,omitempty"`
	// The ports associated with the external service. If the
	// Endpoints are Unix domain socket addresses, there must be exactly one
	// port.
	Ports []*ServicePort `protobuf:"bytes,3,rep,name=ports,proto3" json:"ports,omitempty"`
	// Specify whether the service should be considered external to the mesh
	// or part of the mesh.
	Location ServiceEntry_Location `protobuf:"varint,4,opt,name=location,proto3,enum=istio.networking.v1alpha3.ServiceEntry_Location" json:"location,omitempty"`
	// Service resolution mode for the hosts. Care must be taken
	// when setting the resolution mode to NONE for a TCP port without
	// accompanying IP addresses. In such cases, traffic to any IP on
	// said port will be allowed (i.e. `0.0.0.0:<port>`).
	Resolution ServiceEntry_Resolution `` /* 129-byte string literal not displayed */
	// One or more endpoints associated with the service. Only one of
	// `endpoints` or `workloadSelector` can be specified.
	Endpoints []*WorkloadEntry `protobuf:"bytes,6,rep,name=endpoints,proto3" json:"endpoints,omitempty"`
	// Applicable only for MESH_INTERNAL services. Only one of
	// `endpoints` or `workloadSelector` can be specified. Selects one
	// or more Kubernetes pods or VM workloads (specified using
	// `WorkloadEntry`) based on their labels. The `WorkloadEntry` object
	// representing the VMs should be defined in the same namespace as
	// the ServiceEntry.
	WorkloadSelector *WorkloadSelector `protobuf:"bytes,9,opt,name=workload_selector,json=workloadSelector,proto3" json:"workload_selector,omitempty"`
	// A list of namespaces to which this service is exported. Exporting a service
	// allows it to be used by sidecars, gateways and virtual services defined in
	// other namespaces. This feature provides a mechanism for service owners
	// and mesh administrators to control the visibility of services across
	// namespace boundaries.
	//
	// If no namespaces are specified then the service is exported to all
	// namespaces by default.
	//
	// The value "." is reserved and defines an export to the same namespace that
	// the service is declared in. Similarly the value "*" is reserved and
	// defines an export to all namespaces.
	//
	// For a Kubernetes Service, the equivalent effect can be achieved by setting
	// the annotation "networking.istio.io/exportTo" to a comma-separated list
	// of namespace names.
	ExportTo []string `protobuf:"bytes,7,rep,name=export_to,json=exportTo,proto3" json:"export_to,omitempty"`
	// If specified, the proxy will verify that the server certificate's
	// subject alternate name matches one of the specified values.
	//
	// NOTE: When using the workloadEntry with workloadSelectors, the
	// service account specified in the workloadEntry will also be used
	// to derive the additional subject alternate names that should be
	// verified.
	SubjectAltNames []string `protobuf:"bytes,8,rep,name=subject_alt_names,json=subjectAltNames,proto3" json:"subject_alt_names,omitempty"`
	// contains filtered or unexported fields
}

ServiceEntry enables adding additional entries into Istio's internal service registry.

<!-- crd generation tags +cue-gen:ServiceEntry:groupName:networking.istio.io +cue-gen:ServiceEntry:version:v1alpha3 +cue-gen:ServiceEntry:storageVersion +cue-gen:ServiceEntry:annotations:helm.sh/resource-policy=keep +cue-gen:ServiceEntry:labels:app=istio-pilot,chart=istio,heritage=Tiller,release=istio +cue-gen:ServiceEntry:subresource:status +cue-gen:ServiceEntry:scope:Namespaced +cue-gen:ServiceEntry:resource:categories=istio-io,networking-istio-io,shortNames=se,plural=serviceentries +cue-gen:ServiceEntry:printerColumn:name=Hosts,type=string,JSONPath=.spec.hosts,description="The hosts associated with the ServiceEntry" +cue-gen:ServiceEntry:printerColumn:name=Location,type=string,JSONPath=.spec.location,description="Whether the service is external to the mesh or part of the mesh (MESH_EXTERNAL or MESH_INTERNAL)" +cue-gen:ServiceEntry:printerColumn:name=Resolution,type=string,JSONPath=.spec.resolution,description="Service resolution mode for the hosts (NONE, STATIC, or DNS)" +cue-gen:ServiceEntry:printerColumn:name=Age,type=date,JSONPath=.metadata.creationTimestamp,description="CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata" +cue-gen:ServiceEntry:preserveUnknownFields:false -->

<!-- go code generation tags +kubetype-gen +kubetype-gen:groupVersion=networking.istio.io/v1alpha3 +genclient +k8s:deepcopy-gen=true --> <!-- istio code generation tags +istio.io/sync-start -->

func (*ServiceEntry) DeepCopy

func (in *ServiceEntry) DeepCopy() *ServiceEntry

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceEntry. Required by controller-gen.

func (*ServiceEntry) DeepCopyInterface

func (in *ServiceEntry) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new ServiceEntry. Required by controller-gen.

func (*ServiceEntry) DeepCopyInto

func (in *ServiceEntry) DeepCopyInto(out *ServiceEntry)

DeepCopyInto supports using ServiceEntry within kubernetes types, where deepcopy-gen is used.

func (*ServiceEntry) Descriptor deprecated

func (*ServiceEntry) Descriptor() ([]byte, []int)

Deprecated: Use ServiceEntry.ProtoReflect.Descriptor instead.

func (*ServiceEntry) GetAddresses

func (x *ServiceEntry) GetAddresses() []string

func (*ServiceEntry) GetEndpoints

func (x *ServiceEntry) GetEndpoints() []*WorkloadEntry

func (*ServiceEntry) GetExportTo

func (x *ServiceEntry) GetExportTo() []string

func (*ServiceEntry) GetHosts

func (x *ServiceEntry) GetHosts() []string

func (*ServiceEntry) GetLocation

func (x *ServiceEntry) GetLocation() ServiceEntry_Location

func (*ServiceEntry) GetPorts

func (x *ServiceEntry) GetPorts() []*ServicePort

func (*ServiceEntry) GetResolution

func (x *ServiceEntry) GetResolution() ServiceEntry_Resolution

func (*ServiceEntry) GetSubjectAltNames

func (x *ServiceEntry) GetSubjectAltNames() []string

func (*ServiceEntry) GetWorkloadSelector

func (x *ServiceEntry) GetWorkloadSelector() *WorkloadSelector

func (*ServiceEntry) MarshalJSON

func (this *ServiceEntry) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for ServiceEntry

func (*ServiceEntry) ProtoMessage

func (*ServiceEntry) ProtoMessage()

func (*ServiceEntry) ProtoReflect

func (x *ServiceEntry) ProtoReflect() protoreflect.Message

func (*ServiceEntry) Reset

func (x *ServiceEntry) Reset()

func (*ServiceEntry) String

func (x *ServiceEntry) String() string

func (*ServiceEntry) UnmarshalJSON

func (this *ServiceEntry) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for ServiceEntry

type ServiceEntry_Location

type ServiceEntry_Location int32

Location specifies whether the service is part of Istio mesh or outside the mesh. Location determines the behavior of several features, such as service-to-service mTLS authentication, policy enforcement, etc. When communicating with services outside the mesh, Istio's mTLS authentication is disabled, and policy enforcement is performed on the client-side as opposed to server-side.

const (
	// Signifies that the service is external to the mesh. Typically used
	// to indicate external services consumed through APIs.
	ServiceEntry_MESH_EXTERNAL ServiceEntry_Location = 0
	// Signifies that the service is part of the mesh. Typically used to
	// indicate services added explicitly as part of expanding the service
	// mesh to include unmanaged infrastructure (e.g., VMs added to a
	// Kubernetes based service mesh).
	ServiceEntry_MESH_INTERNAL ServiceEntry_Location = 1
)

func (ServiceEntry_Location) Descriptor

func (ServiceEntry_Location) Enum

func (ServiceEntry_Location) EnumDescriptor deprecated

func (ServiceEntry_Location) EnumDescriptor() ([]byte, []int)

Deprecated: Use ServiceEntry_Location.Descriptor instead.

func (ServiceEntry_Location) Number

func (ServiceEntry_Location) String

func (x ServiceEntry_Location) String() string

func (ServiceEntry_Location) Type

type ServiceEntry_Resolution

type ServiceEntry_Resolution int32

Resolution determines how the proxy will resolve the IP addresses of the network endpoints associated with the service, so that it can route to one of them. The resolution mode specified here has no impact on how the application resolves the IP address associated with the service. The application may still have to use DNS to resolve the service to an IP so that the outbound traffic can be captured by the Proxy. Alternatively, for HTTP services, the application could directly communicate with the proxy (e.g., by setting HTTP_PROXY) to talk to these services.

const (
	// Assume that incoming connections have already been resolved (to a
	// specific destination IP address). Such connections are typically
	// routed via the proxy using mechanisms such as IP table REDIRECT/
	// eBPF. After performing any routing related transformations, the
	// proxy will forward the connection to the IP address to which the
	// connection was bound.
	ServiceEntry_NONE ServiceEntry_Resolution = 0
	// Use the static IP addresses specified in endpoints (see below) as the
	// backing instances associated with the service.
	ServiceEntry_STATIC ServiceEntry_Resolution = 1
	// Attempt to resolve the IP address by querying the ambient DNS,
	// asynchronously. If no endpoints are specified, the proxy
	// will resolve the DNS address specified in the hosts field, if
	// wildcards are not used. If endpoints are specified, the DNS
	// addresses specified in the endpoints will be resolved to determine
	// the destination IP address.  DNS resolution cannot be used with Unix
	// domain socket endpoints.
	ServiceEntry_DNS ServiceEntry_Resolution = 2
	// Attempt to resolve the IP address by querying the ambient DNS,
	// asynchronously. Unlike `DNS`, `DNS_ROUND_ROBIN` only uses the
	// first IP address returned when a new connection needs to be initiated
	// without relying on complete results of DNS resolution, and connections
	// made to hosts will be retained even if DNS records change frequently
	// eliminating draining connection pools and connection cycling.
	// This is best suited for large web scale services that
	// must be accessed via DNS. The proxy will resolve the DNS address
	// specified in the hosts field, if wildcards are not used. DNS resolution
	// cannot be used with Unix domain socket endpoints.
	ServiceEntry_DNS_ROUND_ROBIN ServiceEntry_Resolution = 3
)

func (ServiceEntry_Resolution) Descriptor

func (ServiceEntry_Resolution) Enum

func (ServiceEntry_Resolution) EnumDescriptor deprecated

func (ServiceEntry_Resolution) EnumDescriptor() ([]byte, []int)

Deprecated: Use ServiceEntry_Resolution.Descriptor instead.

func (ServiceEntry_Resolution) Number

func (ServiceEntry_Resolution) String

func (x ServiceEntry_Resolution) String() string

func (ServiceEntry_Resolution) Type

type ServicePort

type ServicePort struct {

	// A valid non-negative integer port number.
	Number uint32 `protobuf:"varint,1,opt,name=number,proto3" json:"number,omitempty"`
	// The protocol exposed on the port.
	// MUST BE one of HTTP|HTTPS|GRPC|HTTP2|MONGO|TCP|TLS.
	// TLS implies the connection will be routed based on the SNI header to
	// the destination without terminating the TLS connection.
	Protocol string `protobuf:"bytes,2,opt,name=protocol,proto3" json:"protocol,omitempty"`
	// Label assigned to the port.
	Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	// The port number on the endpoint where the traffic will be
	// received. If unset, default to `number`.
	TargetPort uint32 `protobuf:"varint,4,opt,name=target_port,json=targetPort,proto3" json:"target_port,omitempty"`
	// contains filtered or unexported fields
}

ServicePort describes the properties of a specific port of a service.

func (*ServicePort) DeepCopy

func (in *ServicePort) DeepCopy() *ServicePort

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServicePort. Required by controller-gen.

func (*ServicePort) DeepCopyInterface

func (in *ServicePort) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new ServicePort. Required by controller-gen.

func (*ServicePort) DeepCopyInto

func (in *ServicePort) DeepCopyInto(out *ServicePort)

DeepCopyInto supports using ServicePort within kubernetes types, where deepcopy-gen is used.

func (*ServicePort) Descriptor deprecated

func (*ServicePort) Descriptor() ([]byte, []int)

Deprecated: Use ServicePort.ProtoReflect.Descriptor instead.

func (*ServicePort) GetName

func (x *ServicePort) GetName() string

func (*ServicePort) GetNumber

func (x *ServicePort) GetNumber() uint32

func (*ServicePort) GetProtocol

func (x *ServicePort) GetProtocol() string

func (*ServicePort) GetTargetPort

func (x *ServicePort) GetTargetPort() uint32

func (*ServicePort) MarshalJSON

func (this *ServicePort) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for ServicePort

func (*ServicePort) ProtoMessage

func (*ServicePort) ProtoMessage()

func (*ServicePort) ProtoReflect

func (x *ServicePort) ProtoReflect() protoreflect.Message

func (*ServicePort) Reset

func (x *ServicePort) Reset()

func (*ServicePort) String

func (x *ServicePort) String() string

func (*ServicePort) UnmarshalJSON

func (this *ServicePort) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for ServicePort

type Sidecar

type Sidecar struct {

	// Criteria used to select the specific set of pods/VMs on which this
	// `Sidecar` configuration should be applied. If omitted, the `Sidecar`
	// configuration will be applied to all workload instances in the same namespace.
	WorkloadSelector *WorkloadSelector `protobuf:"bytes,1,opt,name=workload_selector,json=workloadSelector,proto3" json:"workload_selector,omitempty"`
	// Ingress specifies the configuration of the sidecar for processing
	// inbound traffic to the attached workload instance. If omitted, Istio will
	// automatically configure the sidecar based on the information about the workload
	// obtained from the orchestration platform (e.g., exposed ports, services,
	// etc.). If specified, inbound ports are configured if and only if the
	// workload instance is associated with a service.
	Ingress []*IstioIngressListener `protobuf:"bytes,2,rep,name=ingress,proto3" json:"ingress,omitempty"`
	// Egress specifies the configuration of the sidecar for processing
	// outbound traffic from the attached workload instance to other
	// services in the mesh. If not specified, inherits the system
	// detected defaults from the namespace-wide or the global default Sidecar.
	Egress []*IstioEgressListener `protobuf:"bytes,3,rep,name=egress,proto3" json:"egress,omitempty"`
	// Settings controlling the volume of connections Envoy will accept from the network.
	// This default will apply for all inbound listeners and can be overridden per-port
	// in the `Ingress` field. This configuration mirrors the `DestinationRule`'s
	// [`connectionPool`](https://istio.io/latest/docs/reference/config/networking/destination-rule/#ConnectionPoolSettings) field.
	//
	// By default, Istio applies a service's `DestinationRule` to client sidecars
	// for outbound traffic directed at the service -- the usual case folks think
	// of when configuring a `DestinationRule` -- but also to the server's inbound
	// sidecar. The `Sidecar`'s connection pool configures the server's inbound
	// sidecar directly, so its settings can be different than clients'. This is
	// valuable, for example, when you have many clients calling few servers: a
	// `DestinationRule` can limit the concurrency of any single client, while
	// the `Sidecar` allows you to configure much higher concurrency on the server
	// side.
	//
	// Connection pool settings for a server's inbound sidecar are configured in the
	// following precedence, highest to lowest:
	// - per-port `ConnectionPool` from the `Sidecar`
	// - top level `InboundConnectionPool` from the `Sidecar`
	// - per-port `TrafficPolicy.ConnectionPool` from the `DestinationRule`
	// - top level `TrafficPolicy.ConnectionPool` from the `DestinationRule`
	// - default connection pool settings (essentially unlimited)
	//
	// In every case, the connection pool settings are overriden, not merged.
	InboundConnectionPool *ConnectionPoolSettings `` /* 126-byte string literal not displayed */
	// Configuration for the outbound traffic policy.  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. If not specified,
	// inherits the system detected defaults from the namespace-wide or
	// the global default Sidecar.
	OutboundTrafficPolicy *OutboundTrafficPolicy `` /* 126-byte string literal not displayed */
	// contains filtered or unexported fields
}

`Sidecar` describes the configuration of the sidecar proxy that mediates inbound and outbound communication of the workload instance to which it is attached.

<!-- crd generation tags +cue-gen:Sidecar:groupName:networking.istio.io +cue-gen:Sidecar:version:v1alpha3 +cue-gen:Sidecar:storageVersion +cue-gen:Sidecar:annotations:helm.sh/resource-policy=keep +cue-gen:Sidecar:labels:app=istio-pilot,chart=istio,heritage=Tiller,release=istio +cue-gen:Sidecar:subresource:status +cue-gen:Sidecar:scope:Namespaced +cue-gen:Sidecar:resource:categories=istio-io,networking-istio-io +cue-gen:Sidecar:preserveUnknownFields:false -->

<!-- go code generation tags +kubetype-gen +kubetype-gen:groupVersion=networking.istio.io/v1alpha3 +genclient +k8s:deepcopy-gen=true --> <!-- istio code generation tags +istio.io/sync-start -->

func (*Sidecar) DeepCopy

func (in *Sidecar) DeepCopy() *Sidecar

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Sidecar. Required by controller-gen.

func (*Sidecar) DeepCopyInterface

func (in *Sidecar) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new Sidecar. Required by controller-gen.

func (*Sidecar) DeepCopyInto

func (in *Sidecar) DeepCopyInto(out *Sidecar)

DeepCopyInto supports using Sidecar within kubernetes types, where deepcopy-gen is used.

func (*Sidecar) Descriptor deprecated

func (*Sidecar) Descriptor() ([]byte, []int)

Deprecated: Use Sidecar.ProtoReflect.Descriptor instead.

func (*Sidecar) GetEgress

func (x *Sidecar) GetEgress() []*IstioEgressListener

func (*Sidecar) GetInboundConnectionPool added in v1.20.0

func (x *Sidecar) GetInboundConnectionPool() *ConnectionPoolSettings

func (*Sidecar) GetIngress

func (x *Sidecar) GetIngress() []*IstioIngressListener

func (*Sidecar) GetOutboundTrafficPolicy

func (x *Sidecar) GetOutboundTrafficPolicy() *OutboundTrafficPolicy

func (*Sidecar) GetWorkloadSelector

func (x *Sidecar) GetWorkloadSelector() *WorkloadSelector

func (*Sidecar) MarshalJSON

func (this *Sidecar) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for Sidecar

func (*Sidecar) ProtoMessage

func (*Sidecar) ProtoMessage()

func (*Sidecar) ProtoReflect

func (x *Sidecar) ProtoReflect() protoreflect.Message

func (*Sidecar) Reset

func (x *Sidecar) Reset()

func (*Sidecar) String

func (x *Sidecar) String() string

func (*Sidecar) UnmarshalJSON

func (this *Sidecar) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for Sidecar

type SidecarPort added in v1.20.0

type SidecarPort struct {

	// A valid non-negative integer port number.
	Number uint32 `protobuf:"varint,1,opt,name=number,proto3" json:"number,omitempty"`
	// The protocol exposed on the port.
	// MUST BE one of HTTP|HTTPS|GRPC|HTTP2|MONGO|TCP|TLS.
	// TLS can be either used to terminate non-HTTP based connections on a specific port
	// or to route traffic based on SNI header to the destination without terminating the TLS connection.
	Protocol string `protobuf:"bytes,2,opt,name=protocol,proto3" json:"protocol,omitempty"`
	// Label assigned to the port.
	Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	// Has no effect, only for backwards compatibility
	// received. Applicable only when used with ServiceEntries.
	// $hide_from_docs
	//
	// Deprecated: Marked as deprecated in networking/v1alpha3/sidecar.proto.
	TargetPort uint32 `protobuf:"varint,4,opt,name=target_port,json=targetPort,proto3" json:"target_port,omitempty"`
	// contains filtered or unexported fields
}

Port describes the properties of a specific port of a service.

func (*SidecarPort) DeepCopy added in v1.20.0

func (in *SidecarPort) DeepCopy() *SidecarPort

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SidecarPort. Required by controller-gen.

func (*SidecarPort) DeepCopyInterface added in v1.20.0

func (in *SidecarPort) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new SidecarPort. Required by controller-gen.

func (*SidecarPort) DeepCopyInto added in v1.20.0

func (in *SidecarPort) DeepCopyInto(out *SidecarPort)

DeepCopyInto supports using SidecarPort within kubernetes types, where deepcopy-gen is used.

func (*SidecarPort) Descriptor deprecated added in v1.20.0

func (*SidecarPort) Descriptor() ([]byte, []int)

Deprecated: Use SidecarPort.ProtoReflect.Descriptor instead.

func (*SidecarPort) GetName added in v1.20.0

func (x *SidecarPort) GetName() string

func (*SidecarPort) GetNumber added in v1.20.0

func (x *SidecarPort) GetNumber() uint32

func (*SidecarPort) GetProtocol added in v1.20.0

func (x *SidecarPort) GetProtocol() string

func (*SidecarPort) GetTargetPort deprecated added in v1.20.0

func (x *SidecarPort) GetTargetPort() uint32

Deprecated: Marked as deprecated in networking/v1alpha3/sidecar.proto.

func (*SidecarPort) MarshalJSON added in v1.20.0

func (this *SidecarPort) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for SidecarPort

func (*SidecarPort) ProtoMessage added in v1.20.0

func (*SidecarPort) ProtoMessage()

func (*SidecarPort) ProtoReflect added in v1.20.0

func (x *SidecarPort) ProtoReflect() protoreflect.Message

func (*SidecarPort) Reset added in v1.20.0

func (x *SidecarPort) Reset()

func (*SidecarPort) String added in v1.20.0

func (x *SidecarPort) String() string

func (*SidecarPort) UnmarshalJSON added in v1.20.0

func (this *SidecarPort) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for SidecarPort

type StringMatch

type StringMatch struct {

	// Types that are assignable to MatchType:
	//
	//	*StringMatch_Exact
	//	*StringMatch_Prefix
	//	*StringMatch_Regex
	MatchType isStringMatch_MatchType `protobuf_oneof:"match_type"`
	// contains filtered or unexported fields
}

Describes how to match a given string in HTTP headers. Match is case-sensitive.

func (*StringMatch) DeepCopy

func (in *StringMatch) DeepCopy() *StringMatch

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StringMatch. Required by controller-gen.

func (*StringMatch) DeepCopyInterface

func (in *StringMatch) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new StringMatch. Required by controller-gen.

func (*StringMatch) DeepCopyInto

func (in *StringMatch) DeepCopyInto(out *StringMatch)

DeepCopyInto supports using StringMatch within kubernetes types, where deepcopy-gen is used.

func (*StringMatch) Descriptor deprecated

func (*StringMatch) Descriptor() ([]byte, []int)

Deprecated: Use StringMatch.ProtoReflect.Descriptor instead.

func (*StringMatch) GetExact

func (x *StringMatch) GetExact() string

func (*StringMatch) GetMatchType

func (m *StringMatch) GetMatchType() isStringMatch_MatchType

func (*StringMatch) GetPrefix

func (x *StringMatch) GetPrefix() string

func (*StringMatch) GetRegex

func (x *StringMatch) GetRegex() string

func (*StringMatch) MarshalJSON

func (this *StringMatch) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for StringMatch

func (*StringMatch) ProtoMessage

func (*StringMatch) ProtoMessage()

func (*StringMatch) ProtoReflect

func (x *StringMatch) ProtoReflect() protoreflect.Message

func (*StringMatch) Reset

func (x *StringMatch) Reset()

func (*StringMatch) String

func (x *StringMatch) String() string

func (*StringMatch) UnmarshalJSON

func (this *StringMatch) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for StringMatch

type StringMatch_Exact

type StringMatch_Exact struct {
	// exact string match
	Exact string `protobuf:"bytes,1,opt,name=exact,proto3,oneof"`
}

type StringMatch_Prefix

type StringMatch_Prefix struct {
	// prefix-based match
	Prefix string `protobuf:"bytes,2,opt,name=prefix,proto3,oneof"`
}

type StringMatch_Regex

type StringMatch_Regex struct {
	// RE2 style regex-based match (https://github.com/google/re2/wiki/Syntax).
	Regex string `protobuf:"bytes,3,opt,name=regex,proto3,oneof"`
}

type Subset

type Subset struct {

	// Name of the subset. The service name and the subset name can
	// be used for traffic splitting in a route rule.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Labels apply a filter over the endpoints of a service in the
	// service registry. See route rules for examples of usage.
	Labels map[string]string `` /* 153-byte string literal not displayed */
	// Traffic policies that apply to this subset. Subsets inherit the
	// traffic policies specified at the DestinationRule level. Settings
	// specified at the subset level will override the corresponding settings
	// specified at the DestinationRule level.
	TrafficPolicy *TrafficPolicy `protobuf:"bytes,3,opt,name=traffic_policy,json=trafficPolicy,proto3" json:"traffic_policy,omitempty"`
	// contains filtered or unexported fields
}

A subset of endpoints of a service. Subsets can be used for scenarios like A/B testing, or routing to a specific version of a service. Refer to VirtualService(https://istio.io/docs/reference/config/networking/virtual-service/#VirtualService) documentation for examples of using subsets in these scenarios. In addition, traffic policies defined at the service-level can be overridden at a subset-level. The following rule uses a round robin load balancing policy for all traffic going to a subset named testversion that is composed of endpoints (e.g., pods) with labels (version:v3).

{{<tabset category-name="example">}} {{<tab name="v1alpha3" category-value="v1alpha3">}} ```yaml apiVersion: networking.istio.io/v1alpha3 kind: DestinationRule metadata:

name: bookinfo-ratings

spec:

host: ratings.prod.svc.cluster.local
trafficPolicy:
  loadBalancer:
    simple: LEAST_REQUEST
subsets:
- name: testversion
  labels:
    version: v3
  trafficPolicy:
    loadBalancer:
      simple: ROUND_ROBIN

``` {{</tab>}}

{{<tab name="v1beta1" category-value="v1beta1">}} ```yaml apiVersion: networking.istio.io/v1beta1 kind: DestinationRule metadata:

name: bookinfo-ratings

spec:

host: ratings.prod.svc.cluster.local
trafficPolicy:
  loadBalancer:
    simple: LEAST_REQUEST
subsets:
- name: testversion
  labels:
    version: v3
  trafficPolicy:
    loadBalancer:
      simple: ROUND_ROBIN

``` {{</tab>}} {{</tabset>}}

**Note:** Policies specified for subsets will not take effect until a route rule explicitly sends traffic to this subset.

One or more labels are typically required to identify the subset destination, however, when the corresponding DestinationRule represents a host that supports multiple SNI hosts (e.g., an egress gateway), a subset without labels may be meaningful. In this case a traffic policy with ClientTLSSettings(#ClientTLSSettings) can be used to identify a specific SNI host corresponding to the named subset.

func (*Subset) DeepCopy

func (in *Subset) DeepCopy() *Subset

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Subset. Required by controller-gen.

func (*Subset) DeepCopyInterface

func (in *Subset) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new Subset. Required by controller-gen.

func (*Subset) DeepCopyInto

func (in *Subset) DeepCopyInto(out *Subset)

DeepCopyInto supports using Subset within kubernetes types, where deepcopy-gen is used.

func (*Subset) Descriptor deprecated

func (*Subset) Descriptor() ([]byte, []int)

Deprecated: Use Subset.ProtoReflect.Descriptor instead.

func (*Subset) GetLabels

func (x *Subset) GetLabels() map[string]string

func (*Subset) GetName

func (x *Subset) GetName() string

func (*Subset) GetTrafficPolicy

func (x *Subset) GetTrafficPolicy() *TrafficPolicy

func (*Subset) MarshalJSON

func (this *Subset) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for Subset

func (*Subset) ProtoMessage

func (*Subset) ProtoMessage()

func (*Subset) ProtoReflect

func (x *Subset) ProtoReflect() protoreflect.Message

func (*Subset) Reset

func (x *Subset) Reset()

func (*Subset) String

func (x *Subset) String() string

func (*Subset) UnmarshalJSON

func (this *Subset) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for Subset

type TCPHealthCheckConfig

type TCPHealthCheckConfig struct {

	// Host to connect to, defaults to localhost
	Host string `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"`
	// Port of host
	Port uint32 `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"`
	// contains filtered or unexported fields
}

func (*TCPHealthCheckConfig) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TCPHealthCheckConfig. Required by controller-gen.

func (*TCPHealthCheckConfig) DeepCopyInterface

func (in *TCPHealthCheckConfig) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new TCPHealthCheckConfig. Required by controller-gen.

func (*TCPHealthCheckConfig) DeepCopyInto

func (in *TCPHealthCheckConfig) DeepCopyInto(out *TCPHealthCheckConfig)

DeepCopyInto supports using TCPHealthCheckConfig within kubernetes types, where deepcopy-gen is used.

func (*TCPHealthCheckConfig) Descriptor deprecated

func (*TCPHealthCheckConfig) Descriptor() ([]byte, []int)

Deprecated: Use TCPHealthCheckConfig.ProtoReflect.Descriptor instead.

func (*TCPHealthCheckConfig) GetHost

func (x *TCPHealthCheckConfig) GetHost() string

func (*TCPHealthCheckConfig) GetPort

func (x *TCPHealthCheckConfig) GetPort() uint32

func (*TCPHealthCheckConfig) MarshalJSON

func (this *TCPHealthCheckConfig) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for TCPHealthCheckConfig

func (*TCPHealthCheckConfig) ProtoMessage

func (*TCPHealthCheckConfig) ProtoMessage()

func (*TCPHealthCheckConfig) ProtoReflect

func (x *TCPHealthCheckConfig) ProtoReflect() protoreflect.Message

func (*TCPHealthCheckConfig) Reset

func (x *TCPHealthCheckConfig) Reset()

func (*TCPHealthCheckConfig) String

func (x *TCPHealthCheckConfig) String() string

func (*TCPHealthCheckConfig) UnmarshalJSON

func (this *TCPHealthCheckConfig) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for TCPHealthCheckConfig

type TCPRoute

type TCPRoute struct {

	// Match conditions to be satisfied for the rule to be
	// activated. All conditions inside a single match block have AND
	// semantics, while the list of match blocks have OR semantics. The rule
	// is matched if any one of the match blocks succeed.
	Match []*L4MatchAttributes `protobuf:"bytes,1,rep,name=match,proto3" json:"match,omitempty"`
	// The destination to which the connection should be forwarded to.
	Route []*RouteDestination `protobuf:"bytes,2,rep,name=route,proto3" json:"route,omitempty"`
	// contains filtered or unexported fields
}

Describes match conditions and actions for routing TCP traffic. The following routing rule forwards traffic arriving at port 27017 for mongo.prod.svc.cluster.local to another Mongo server on port 5555.

{{<tabset category-name="example">}} {{<tab name="v1alpha3" category-value="v1alpha3">}} ```yaml apiVersion: networking.istio.io/v1alpha3 kind: VirtualService metadata:

name: bookinfo-mongo

spec:

hosts:
- mongo.prod.svc.cluster.local
tcp:
- match:
  - port: 27017
  route:
  - destination:
      host: mongo.backup.svc.cluster.local
      port:
        number: 5555

``` {{</tab>}}

{{<tab name="v1beta1" category-value="v1beta1">}} ```yaml apiVersion: networking.istio.io/v1beta1 kind: VirtualService metadata:

name: bookinfo-mongo

spec:

hosts:
- mongo.prod.svc.cluster.local
tcp:
- match:
  - port: 27017
  route:
  - destination:
      host: mongo.backup.svc.cluster.local
      port:
        number: 5555

``` {{</tab>}} {{</tabset>}}

func (*TCPRoute) DeepCopy

func (in *TCPRoute) DeepCopy() *TCPRoute

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TCPRoute. Required by controller-gen.

func (*TCPRoute) DeepCopyInterface

func (in *TCPRoute) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new TCPRoute. Required by controller-gen.

func (*TCPRoute) DeepCopyInto

func (in *TCPRoute) DeepCopyInto(out *TCPRoute)

DeepCopyInto supports using TCPRoute within kubernetes types, where deepcopy-gen is used.

func (*TCPRoute) Descriptor deprecated

func (*TCPRoute) Descriptor() ([]byte, []int)

Deprecated: Use TCPRoute.ProtoReflect.Descriptor instead.

func (*TCPRoute) GetMatch

func (x *TCPRoute) GetMatch() []*L4MatchAttributes

func (*TCPRoute) GetRoute

func (x *TCPRoute) GetRoute() []*RouteDestination

func (*TCPRoute) MarshalJSON

func (this *TCPRoute) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for TCPRoute

func (*TCPRoute) ProtoMessage

func (*TCPRoute) ProtoMessage()

func (*TCPRoute) ProtoReflect

func (x *TCPRoute) ProtoReflect() protoreflect.Message

func (*TCPRoute) Reset

func (x *TCPRoute) Reset()

func (*TCPRoute) String

func (x *TCPRoute) String() string

func (*TCPRoute) UnmarshalJSON

func (this *TCPRoute) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for TCPRoute

type TLSMatchAttributes

type TLSMatchAttributes struct {

	// SNI (server name indicator) to match on. Wildcard prefixes
	// can be used in the SNI value, e.g., *.com will match foo.example.com
	// as well as example.com. An SNI value must be a subset (i.e., fall
	// within the domain) of the corresponding virtual service's hosts.
	SniHosts []string `protobuf:"bytes,1,rep,name=sni_hosts,json=sniHosts,proto3" json:"sni_hosts,omitempty"`
	// IPv4 or IPv6 ip addresses of destination with optional subnet.  E.g.,
	// a.b.c.d/xx form or just a.b.c.d.
	DestinationSubnets []string `protobuf:"bytes,2,rep,name=destination_subnets,json=destinationSubnets,proto3" json:"destination_subnets,omitempty"`
	// Specifies the port on the host that is being addressed. Many services
	// only expose a single port or label ports with the protocols they
	// support, in these cases it is not required to explicitly select the
	// port.
	Port uint32 `protobuf:"varint,3,opt,name=port,proto3" json:"port,omitempty"`
	// One or more labels that constrain the applicability of a rule to
	// workloads with the given labels. If the VirtualService has a list of
	// gateways specified in the top-level `gateways` field, it should include the reserved gateway
	// `mesh` in order for this field to be applicable.
	SourceLabels map[string]string `` /* 185-byte string literal not displayed */
	// Names of gateways where the rule should be applied. Gateway names
	// in the top-level `gateways` field of the VirtualService (if any) are overridden. The gateway
	// match is independent of sourceLabels.
	Gateways []string `protobuf:"bytes,6,rep,name=gateways,proto3" json:"gateways,omitempty"`
	// Source namespace constraining the applicability of a rule to workloads in that namespace.
	// If the VirtualService has a list of gateways specified in the top-level `gateways` field,
	// it must include the reserved gateway `mesh` for this field to be applicable.
	SourceNamespace string `protobuf:"bytes,7,opt,name=source_namespace,json=sourceNamespace,proto3" json:"source_namespace,omitempty"`
	// contains filtered or unexported fields
}

TLS connection match attributes.

func (*TLSMatchAttributes) DeepCopy

func (in *TLSMatchAttributes) DeepCopy() *TLSMatchAttributes

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TLSMatchAttributes. Required by controller-gen.

func (*TLSMatchAttributes) DeepCopyInterface

func (in *TLSMatchAttributes) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new TLSMatchAttributes. Required by controller-gen.

func (*TLSMatchAttributes) DeepCopyInto

func (in *TLSMatchAttributes) DeepCopyInto(out *TLSMatchAttributes)

DeepCopyInto supports using TLSMatchAttributes within kubernetes types, where deepcopy-gen is used.

func (*TLSMatchAttributes) Descriptor deprecated

func (*TLSMatchAttributes) Descriptor() ([]byte, []int)

Deprecated: Use TLSMatchAttributes.ProtoReflect.Descriptor instead.

func (*TLSMatchAttributes) GetDestinationSubnets

func (x *TLSMatchAttributes) GetDestinationSubnets() []string

func (*TLSMatchAttributes) GetGateways

func (x *TLSMatchAttributes) GetGateways() []string

func (*TLSMatchAttributes) GetPort

func (x *TLSMatchAttributes) GetPort() uint32

func (*TLSMatchAttributes) GetSniHosts

func (x *TLSMatchAttributes) GetSniHosts() []string

func (*TLSMatchAttributes) GetSourceLabels

func (x *TLSMatchAttributes) GetSourceLabels() map[string]string

func (*TLSMatchAttributes) GetSourceNamespace

func (x *TLSMatchAttributes) GetSourceNamespace() string

func (*TLSMatchAttributes) MarshalJSON

func (this *TLSMatchAttributes) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for TLSMatchAttributes

func (*TLSMatchAttributes) ProtoMessage

func (*TLSMatchAttributes) ProtoMessage()

func (*TLSMatchAttributes) ProtoReflect

func (x *TLSMatchAttributes) ProtoReflect() protoreflect.Message

func (*TLSMatchAttributes) Reset

func (x *TLSMatchAttributes) Reset()

func (*TLSMatchAttributes) String

func (x *TLSMatchAttributes) String() string

func (*TLSMatchAttributes) UnmarshalJSON

func (this *TLSMatchAttributes) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for TLSMatchAttributes

type TLSRoute

type TLSRoute struct {

	// Match conditions to be satisfied for the rule to be
	// activated. All conditions inside a single match block have AND
	// semantics, while the list of match blocks have OR semantics. The rule
	// is matched if any one of the match blocks succeed.
	Match []*TLSMatchAttributes `protobuf:"bytes,1,rep,name=match,proto3" json:"match,omitempty"`
	// The destination to which the connection should be forwarded to.
	Route []*RouteDestination `protobuf:"bytes,2,rep,name=route,proto3" json:"route,omitempty"`
	// contains filtered or unexported fields
}

Describes match conditions and actions for routing unterminated TLS traffic (TLS/HTTPS) The following routing rule forwards unterminated TLS traffic arriving at port 443 of gateway called "mygateway" to internal services in the mesh based on the SNI value.

{{<tabset category-name="example">}} {{<tab name="v1alpha3" category-value="v1alpha3">}} ```yaml apiVersion: networking.istio.io/v1alpha3 kind: VirtualService metadata:

name: bookinfo-sni

spec:

hosts:
- "*.bookinfo.com"
gateways:
- mygateway
tls:
- match:
  - port: 443
    sniHosts:
    - login.bookinfo.com
  route:
  - destination:
      host: login.prod.svc.cluster.local
- match:
  - port: 443
    sniHosts:
    - reviews.bookinfo.com
  route:
  - destination:
      host: reviews.prod.svc.cluster.local

``` {{</tab>}}

{{<tab name="v1beta1" category-value="v1beta1">}} ```yaml apiVersion: networking.istio.io/v1beta1 kind: VirtualService metadata:

name: bookinfo-sni

spec:

hosts:
- "*.bookinfo.com"
gateways:
- mygateway
tls:
- match:
  - port: 443
    sniHosts:
    - login.bookinfo.com
  route:
  - destination:
      host: login.prod.svc.cluster.local
- match:
  - port: 443
    sniHosts:
    - reviews.bookinfo.com
  route:
  - destination:
      host: reviews.prod.svc.cluster.local

``` {{</tab>}} {{</tabset>}}

func (*TLSRoute) DeepCopy

func (in *TLSRoute) DeepCopy() *TLSRoute

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TLSRoute. Required by controller-gen.

func (*TLSRoute) DeepCopyInterface

func (in *TLSRoute) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new TLSRoute. Required by controller-gen.

func (*TLSRoute) DeepCopyInto

func (in *TLSRoute) DeepCopyInto(out *TLSRoute)

DeepCopyInto supports using TLSRoute within kubernetes types, where deepcopy-gen is used.

func (*TLSRoute) Descriptor deprecated

func (*TLSRoute) Descriptor() ([]byte, []int)

Deprecated: Use TLSRoute.ProtoReflect.Descriptor instead.

func (*TLSRoute) GetMatch

func (x *TLSRoute) GetMatch() []*TLSMatchAttributes

func (*TLSRoute) GetRoute

func (x *TLSRoute) GetRoute() []*RouteDestination

func (*TLSRoute) MarshalJSON

func (this *TLSRoute) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for TLSRoute

func (*TLSRoute) ProtoMessage

func (*TLSRoute) ProtoMessage()

func (*TLSRoute) ProtoReflect

func (x *TLSRoute) ProtoReflect() protoreflect.Message

func (*TLSRoute) Reset

func (x *TLSRoute) Reset()

func (*TLSRoute) String

func (x *TLSRoute) String() string

func (*TLSRoute) UnmarshalJSON

func (this *TLSRoute) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for TLSRoute

type TrafficPolicy

type TrafficPolicy struct {

	// Settings controlling the load balancer algorithms.
	LoadBalancer *LoadBalancerSettings `protobuf:"bytes,1,opt,name=load_balancer,json=loadBalancer,proto3" json:"load_balancer,omitempty"`
	// Settings controlling the volume of connections to an upstream service
	ConnectionPool *ConnectionPoolSettings `protobuf:"bytes,2,opt,name=connection_pool,json=connectionPool,proto3" json:"connection_pool,omitempty"`
	// Settings controlling eviction of unhealthy hosts from the load balancing pool
	OutlierDetection *OutlierDetection `protobuf:"bytes,3,opt,name=outlier_detection,json=outlierDetection,proto3" json:"outlier_detection,omitempty"`
	// TLS related settings for connections to the upstream service.
	Tls *ClientTLSSettings `protobuf:"bytes,4,opt,name=tls,proto3" json:"tls,omitempty"`
	// Traffic policies specific to individual ports. Note that port level
	// settings will override the destination-level settings. Traffic
	// settings specified at the destination-level will not be inherited when
	// overridden by port-level settings, i.e. default values will be applied
	// to fields omitted in port-level traffic policies.
	PortLevelSettings []*TrafficPolicy_PortTrafficPolicy `protobuf:"bytes,5,rep,name=port_level_settings,json=portLevelSettings,proto3" json:"port_level_settings,omitempty"`
	// Configuration of tunneling TCP over other transport or application layers
	// for the host configured in the DestinationRule.
	// Tunnel settings can be applied to TCP or TLS routes and can't be applied to HTTP routes.
	Tunnel *TrafficPolicy_TunnelSettings `protobuf:"bytes,6,opt,name=tunnel,proto3" json:"tunnel,omitempty"`
	// The upstream PROXY protocol settings.
	ProxyProtocol *TrafficPolicy_ProxyProtocol `protobuf:"bytes,7,opt,name=proxy_protocol,json=proxyProtocol,proto3" json:"proxy_protocol,omitempty"`
	// contains filtered or unexported fields
}

Traffic policies to apply for a specific destination, across all destination ports. See DestinationRule for examples.

func (*TrafficPolicy) DeepCopy

func (in *TrafficPolicy) DeepCopy() *TrafficPolicy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TrafficPolicy. Required by controller-gen.

func (*TrafficPolicy) DeepCopyInterface

func (in *TrafficPolicy) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new TrafficPolicy. Required by controller-gen.

func (*TrafficPolicy) DeepCopyInto

func (in *TrafficPolicy) DeepCopyInto(out *TrafficPolicy)

DeepCopyInto supports using TrafficPolicy within kubernetes types, where deepcopy-gen is used.

func (*TrafficPolicy) Descriptor deprecated

func (*TrafficPolicy) Descriptor() ([]byte, []int)

Deprecated: Use TrafficPolicy.ProtoReflect.Descriptor instead.

func (*TrafficPolicy) GetConnectionPool

func (x *TrafficPolicy) GetConnectionPool() *ConnectionPoolSettings

func (*TrafficPolicy) GetLoadBalancer

func (x *TrafficPolicy) GetLoadBalancer() *LoadBalancerSettings

func (*TrafficPolicy) GetOutlierDetection

func (x *TrafficPolicy) GetOutlierDetection() *OutlierDetection

func (*TrafficPolicy) GetPortLevelSettings

func (x *TrafficPolicy) GetPortLevelSettings() []*TrafficPolicy_PortTrafficPolicy

func (*TrafficPolicy) GetProxyProtocol added in v1.21.0

func (x *TrafficPolicy) GetProxyProtocol() *TrafficPolicy_ProxyProtocol

func (*TrafficPolicy) GetTls

func (x *TrafficPolicy) GetTls() *ClientTLSSettings

func (*TrafficPolicy) GetTunnel

func (*TrafficPolicy) MarshalJSON

func (this *TrafficPolicy) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for TrafficPolicy

func (*TrafficPolicy) ProtoMessage

func (*TrafficPolicy) ProtoMessage()

func (*TrafficPolicy) ProtoReflect

func (x *TrafficPolicy) ProtoReflect() protoreflect.Message

func (*TrafficPolicy) Reset

func (x *TrafficPolicy) Reset()

func (*TrafficPolicy) String

func (x *TrafficPolicy) String() string

func (*TrafficPolicy) UnmarshalJSON

func (this *TrafficPolicy) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for TrafficPolicy

type TrafficPolicy_PortTrafficPolicy

type TrafficPolicy_PortTrafficPolicy struct {

	// Specifies the number of a port on the destination service
	// on which this policy is being applied.
	Port *PortSelector `protobuf:"bytes,1,opt,name=port,proto3" json:"port,omitempty"`
	// Settings controlling the load balancer algorithms.
	LoadBalancer *LoadBalancerSettings `protobuf:"bytes,2,opt,name=load_balancer,json=loadBalancer,proto3" json:"load_balancer,omitempty"`
	// Settings controlling the volume of connections to an upstream service
	ConnectionPool *ConnectionPoolSettings `protobuf:"bytes,3,opt,name=connection_pool,json=connectionPool,proto3" json:"connection_pool,omitempty"`
	// Settings controlling eviction of unhealthy hosts from the load balancing pool
	OutlierDetection *OutlierDetection `protobuf:"bytes,4,opt,name=outlier_detection,json=outlierDetection,proto3" json:"outlier_detection,omitempty"`
	// TLS related settings for connections to the upstream service.
	Tls *ClientTLSSettings `protobuf:"bytes,5,opt,name=tls,proto3" json:"tls,omitempty"`
	// contains filtered or unexported fields
}

Traffic policies that apply to specific ports of the service

func (*TrafficPolicy_PortTrafficPolicy) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TrafficPolicy_PortTrafficPolicy. Required by controller-gen.

func (*TrafficPolicy_PortTrafficPolicy) DeepCopyInterface

func (in *TrafficPolicy_PortTrafficPolicy) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new TrafficPolicy_PortTrafficPolicy. Required by controller-gen.

func (*TrafficPolicy_PortTrafficPolicy) DeepCopyInto

DeepCopyInto supports using TrafficPolicy_PortTrafficPolicy within kubernetes types, where deepcopy-gen is used.

func (*TrafficPolicy_PortTrafficPolicy) Descriptor deprecated

func (*TrafficPolicy_PortTrafficPolicy) Descriptor() ([]byte, []int)

Deprecated: Use TrafficPolicy_PortTrafficPolicy.ProtoReflect.Descriptor instead.

func (*TrafficPolicy_PortTrafficPolicy) GetConnectionPool

func (*TrafficPolicy_PortTrafficPolicy) GetLoadBalancer

func (*TrafficPolicy_PortTrafficPolicy) GetOutlierDetection

func (x *TrafficPolicy_PortTrafficPolicy) GetOutlierDetection() *OutlierDetection

func (*TrafficPolicy_PortTrafficPolicy) GetPort

func (*TrafficPolicy_PortTrafficPolicy) GetTls

func (*TrafficPolicy_PortTrafficPolicy) MarshalJSON

func (this *TrafficPolicy_PortTrafficPolicy) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for TrafficPolicy_PortTrafficPolicy

func (*TrafficPolicy_PortTrafficPolicy) ProtoMessage

func (*TrafficPolicy_PortTrafficPolicy) ProtoMessage()

func (*TrafficPolicy_PortTrafficPolicy) ProtoReflect

func (*TrafficPolicy_PortTrafficPolicy) Reset

func (*TrafficPolicy_PortTrafficPolicy) String

func (*TrafficPolicy_PortTrafficPolicy) UnmarshalJSON

func (this *TrafficPolicy_PortTrafficPolicy) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for TrafficPolicy_PortTrafficPolicy

type TrafficPolicy_ProxyProtocol added in v1.21.0

type TrafficPolicy_ProxyProtocol struct {

	// The PROXY protocol version to use. See https://www.haproxy.org/download/2.1/doc/proxy-protocol.txt for details.
	// By default it is `V1`.
	Version TrafficPolicy_ProxyProtocol_VERSION `` /* 135-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*TrafficPolicy_ProxyProtocol) DeepCopy added in v1.21.0

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TrafficPolicy_ProxyProtocol. Required by controller-gen.

func (*TrafficPolicy_ProxyProtocol) DeepCopyInterface added in v1.21.0

func (in *TrafficPolicy_ProxyProtocol) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new TrafficPolicy_ProxyProtocol. Required by controller-gen.

func (*TrafficPolicy_ProxyProtocol) DeepCopyInto added in v1.21.0

DeepCopyInto supports using TrafficPolicy_ProxyProtocol within kubernetes types, where deepcopy-gen is used.

func (*TrafficPolicy_ProxyProtocol) Descriptor deprecated added in v1.21.0

func (*TrafficPolicy_ProxyProtocol) Descriptor() ([]byte, []int)

Deprecated: Use TrafficPolicy_ProxyProtocol.ProtoReflect.Descriptor instead.

func (*TrafficPolicy_ProxyProtocol) GetVersion added in v1.21.0

func (*TrafficPolicy_ProxyProtocol) MarshalJSON added in v1.21.0

func (this *TrafficPolicy_ProxyProtocol) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for TrafficPolicy_ProxyProtocol

func (*TrafficPolicy_ProxyProtocol) ProtoMessage added in v1.21.0

func (*TrafficPolicy_ProxyProtocol) ProtoMessage()

func (*TrafficPolicy_ProxyProtocol) ProtoReflect added in v1.21.0

func (*TrafficPolicy_ProxyProtocol) Reset added in v1.21.0

func (x *TrafficPolicy_ProxyProtocol) Reset()

func (*TrafficPolicy_ProxyProtocol) String added in v1.21.0

func (x *TrafficPolicy_ProxyProtocol) String() string

func (*TrafficPolicy_ProxyProtocol) UnmarshalJSON added in v1.21.0

func (this *TrafficPolicy_ProxyProtocol) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for TrafficPolicy_ProxyProtocol

type TrafficPolicy_ProxyProtocol_VERSION added in v1.21.0

type TrafficPolicy_ProxyProtocol_VERSION int32
const (
	// ⁣PROXY protocol version 1. Human readable format.
	TrafficPolicy_ProxyProtocol_V1 TrafficPolicy_ProxyProtocol_VERSION = 0
	// ⁣PROXY protocol version 2. Binary format.
	TrafficPolicy_ProxyProtocol_V2 TrafficPolicy_ProxyProtocol_VERSION = 1
)

func (TrafficPolicy_ProxyProtocol_VERSION) Descriptor added in v1.21.0

func (TrafficPolicy_ProxyProtocol_VERSION) Enum added in v1.21.0

func (TrafficPolicy_ProxyProtocol_VERSION) EnumDescriptor deprecated added in v1.21.0

func (TrafficPolicy_ProxyProtocol_VERSION) EnumDescriptor() ([]byte, []int)

Deprecated: Use TrafficPolicy_ProxyProtocol_VERSION.Descriptor instead.

func (TrafficPolicy_ProxyProtocol_VERSION) Number added in v1.21.0

func (TrafficPolicy_ProxyProtocol_VERSION) String added in v1.21.0

func (TrafficPolicy_ProxyProtocol_VERSION) Type added in v1.21.0

type TrafficPolicy_TunnelSettings

type TrafficPolicy_TunnelSettings struct {

	// Specifies which protocol to use for tunneling the downstream connection.
	// Supported protocols are:
	//
	//	CONNECT - uses HTTP CONNECT;
	//	POST - uses HTTP POST.
	//
	// CONNECT is used by default if not specified.
	// HTTP version for upstream requests is determined by the service protocol defined for the proxy.
	Protocol string `protobuf:"bytes,1,opt,name=protocol,proto3" json:"protocol,omitempty"`
	// Specifies a host to which the downstream connection is tunneled.
	// Target host must be an FQDN or IP address.
	TargetHost string `protobuf:"bytes,2,opt,name=target_host,json=targetHost,proto3" json:"target_host,omitempty"`
	// Specifies a port to which the downstream connection is tunneled.
	TargetPort uint32 `protobuf:"varint,3,opt,name=target_port,json=targetPort,proto3" json:"target_port,omitempty"`
	// contains filtered or unexported fields
}

func (*TrafficPolicy_TunnelSettings) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TrafficPolicy_TunnelSettings. Required by controller-gen.

func (*TrafficPolicy_TunnelSettings) DeepCopyInterface

func (in *TrafficPolicy_TunnelSettings) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new TrafficPolicy_TunnelSettings. Required by controller-gen.

func (*TrafficPolicy_TunnelSettings) DeepCopyInto

DeepCopyInto supports using TrafficPolicy_TunnelSettings within kubernetes types, where deepcopy-gen is used.

func (*TrafficPolicy_TunnelSettings) Descriptor deprecated

func (*TrafficPolicy_TunnelSettings) Descriptor() ([]byte, []int)

Deprecated: Use TrafficPolicy_TunnelSettings.ProtoReflect.Descriptor instead.

func (*TrafficPolicy_TunnelSettings) GetProtocol

func (x *TrafficPolicy_TunnelSettings) GetProtocol() string

func (*TrafficPolicy_TunnelSettings) GetTargetHost

func (x *TrafficPolicy_TunnelSettings) GetTargetHost() string

func (*TrafficPolicy_TunnelSettings) GetTargetPort

func (x *TrafficPolicy_TunnelSettings) GetTargetPort() uint32

func (*TrafficPolicy_TunnelSettings) MarshalJSON

func (this *TrafficPolicy_TunnelSettings) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for TrafficPolicy_TunnelSettings

func (*TrafficPolicy_TunnelSettings) ProtoMessage

func (*TrafficPolicy_TunnelSettings) ProtoMessage()

func (*TrafficPolicy_TunnelSettings) ProtoReflect

func (*TrafficPolicy_TunnelSettings) Reset

func (x *TrafficPolicy_TunnelSettings) Reset()

func (*TrafficPolicy_TunnelSettings) String

func (*TrafficPolicy_TunnelSettings) UnmarshalJSON

func (this *TrafficPolicy_TunnelSettings) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for TrafficPolicy_TunnelSettings

type VirtualService

type VirtualService struct {

	// The destination hosts to which traffic is being sent. Could
	// be a DNS name with wildcard prefix or an IP address.  Depending on the
	// platform, short-names can also be used instead of a FQDN (i.e. has no
	// dots in the name). In such a scenario, the FQDN of the host would be
	// derived based on the underlying platform.
	//
	// A single VirtualService can be used to describe all the traffic
	// properties of the corresponding hosts, including those for multiple
	// HTTP and TCP ports. Alternatively, the traffic properties of a host
	// can be defined using more than one VirtualService, with certain
	// caveats. Refer to the
	// [Operations Guide](https://istio.io/docs/ops/best-practices/traffic-management/#split-virtual-services)
	// for details.
	//
	// *Note for Kubernetes users*: When short names are used (e.g. "reviews"
	// instead of "reviews.default.svc.cluster.local"), Istio will interpret
	// the short name based on the namespace of the rule, not the service. A
	// rule in the "default" namespace containing a host "reviews" will be
	// interpreted as "reviews.default.svc.cluster.local", irrespective of
	// the actual namespace associated with the reviews service. _To avoid
	// potential misconfigurations, it is recommended to always use fully
	// qualified domain names over short names._
	//
	// The hosts field applies to both HTTP and TCP services. Service inside
	// the mesh, i.e., those found in the service registry, must always be
	// referred to using their alphanumeric names. IP addresses are allowed
	// only for services defined via the Gateway.
	//
	// *Note*: It must be empty for a delegate VirtualService.
	Hosts []string `protobuf:"bytes,1,rep,name=hosts,proto3" json:"hosts,omitempty"`
	// The names of gateways and sidecars that should apply these routes.
	// Gateways in other namespaces may be referred to by
	// `<gateway namespace>/<gateway name>`; specifying a gateway with no
	// namespace qualifier is the same as specifying the VirtualService's
	// namespace. A single VirtualService is used for sidecars inside the mesh as
	// well as for one or more gateways. The selection condition imposed by this
	// field can be overridden using the source field in the match conditions
	// of protocol-specific routes. The reserved word `mesh` is used to imply
	// all the sidecars in the mesh. When this field is omitted, the default
	// gateway (`mesh`) will be used, which would apply the rule to all
	// sidecars in the mesh. If a list of gateway names is provided, the
	// rules will apply only to the gateways. To apply the rules to both
	// gateways and sidecars, specify `mesh` as one of the gateway names.
	Gateways []string `protobuf:"bytes,2,rep,name=gateways,proto3" json:"gateways,omitempty"`
	// An ordered list of route rules for HTTP traffic. HTTP routes will be
	// applied to platform service ports using HTTP/HTTP2/GRPC protocols, gateway
	// ports with protocol HTTP/HTTP2/GRPC/TLS-terminated-HTTPS and service
	// entry ports using HTTP/HTTP2/GRPC protocols.  The first rule matching
	// an incoming request is used.
	Http []*HTTPRoute `protobuf:"bytes,3,rep,name=http,proto3" json:"http,omitempty"`
	// An ordered list of route rule for non-terminated TLS & HTTPS
	// traffic. Routing is typically performed using the SNI value presented
	// by the ClientHello message. TLS routes will be applied to platform
	// service ports named 'https-*', 'tls-*', unterminated gateway ports using
	// HTTPS/TLS protocols (i.e. with "passthrough" TLS mode) and service
	// entry ports using HTTPS/TLS protocols.  The first rule matching an
	// incoming request is used.  NOTE: Traffic 'https-*' or 'tls-*' ports
	// without associated virtual service will be treated as opaque TCP
	// traffic.
	Tls []*TLSRoute `protobuf:"bytes,5,rep,name=tls,proto3" json:"tls,omitempty"`
	// An ordered list of route rules for opaque TCP traffic. TCP routes will
	// be applied to any port that is not a HTTP or TLS port. The first rule
	// matching an incoming request is used.
	Tcp []*TCPRoute `protobuf:"bytes,4,rep,name=tcp,proto3" json:"tcp,omitempty"`
	// A list of namespaces to which this virtual service is exported. Exporting a
	// virtual service allows it to be used by sidecars and gateways defined in
	// other namespaces. This feature provides a mechanism for service owners
	// and mesh administrators to control the visibility of virtual services
	// across namespace boundaries.
	//
	// If no namespaces are specified then the virtual service is exported to all
	// namespaces by default.
	//
	// The value "." is reserved and defines an export to the same namespace that
	// the virtual service is declared in. Similarly the value "*" is reserved and
	// defines an export to all namespaces.
	ExportTo []string `protobuf:"bytes,6,rep,name=export_to,json=exportTo,proto3" json:"export_to,omitempty"`
	// contains filtered or unexported fields
}

Configuration affecting traffic routing.

<!-- crd generation tags +cue-gen:VirtualService:groupName:networking.istio.io +cue-gen:VirtualService:version:v1alpha3 +cue-gen:VirtualService:storageVersion +cue-gen:VirtualService:annotations:helm.sh/resource-policy=keep +cue-gen:VirtualService:labels:app=istio-pilot,chart=istio,heritage=Tiller,release=istio +cue-gen:VirtualService:subresource:status +cue-gen:VirtualService:scope:Namespaced +cue-gen:VirtualService:resource:categories=istio-io,networking-istio-io,shortNames=vs +cue-gen:VirtualService:printerColumn:name=Gateways,type=string,JSONPath=.spec.gateways,description="The names of gateways and sidecars that should apply these routes" +cue-gen:VirtualService:printerColumn:name=Hosts,type=string,JSONPath=.spec.hosts,description="The destination hosts to which traffic is being sent" +cue-gen:VirtualService:printerColumn:name=Age,type=date,JSONPath=.metadata.creationTimestamp,description="CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata" +cue-gen:VirtualService:preserveUnknownFields:false -->

<!-- go code generation tags +kubetype-gen +kubetype-gen:groupVersion=networking.istio.io/v1alpha3 +genclient +k8s:deepcopy-gen=true --> <!-- istio code generation tags +istio.io/sync-start -->

func (*VirtualService) DeepCopy

func (in *VirtualService) DeepCopy() *VirtualService

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualService. Required by controller-gen.

func (*VirtualService) DeepCopyInterface

func (in *VirtualService) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new VirtualService. Required by controller-gen.

func (*VirtualService) DeepCopyInto

func (in *VirtualService) DeepCopyInto(out *VirtualService)

DeepCopyInto supports using VirtualService within kubernetes types, where deepcopy-gen is used.

func (*VirtualService) Descriptor deprecated

func (*VirtualService) Descriptor() ([]byte, []int)

Deprecated: Use VirtualService.ProtoReflect.Descriptor instead.

func (*VirtualService) GetExportTo

func (x *VirtualService) GetExportTo() []string

func (*VirtualService) GetGateways

func (x *VirtualService) GetGateways() []string

func (*VirtualService) GetHosts

func (x *VirtualService) GetHosts() []string

func (*VirtualService) GetHttp

func (x *VirtualService) GetHttp() []*HTTPRoute

func (*VirtualService) GetTcp

func (x *VirtualService) GetTcp() []*TCPRoute

func (*VirtualService) GetTls

func (x *VirtualService) GetTls() []*TLSRoute

func (*VirtualService) MarshalJSON

func (this *VirtualService) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for VirtualService

func (*VirtualService) ProtoMessage

func (*VirtualService) ProtoMessage()

func (*VirtualService) ProtoReflect

func (x *VirtualService) ProtoReflect() protoreflect.Message

func (*VirtualService) Reset

func (x *VirtualService) Reset()

func (*VirtualService) String

func (x *VirtualService) String() string

func (*VirtualService) UnmarshalJSON

func (this *VirtualService) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for VirtualService

type WorkloadEntry

type WorkloadEntry struct {

	// Address associated with the network endpoint without the
	// port.  Domain names can be used if and only if the resolution is set
	// to DNS, and must be fully-qualified without wildcards. Use the form
	// unix:///absolute/path/to/socket for Unix domain socket endpoints.
	// If address is empty, network must be specified.
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	// Set of ports associated with the endpoint. If the port map is
	// specified, it must be a map of servicePortName to this endpoint's
	// port, such that traffic to the service port will be forwarded to
	// the endpoint port that maps to the service's portName. If
	// omitted, and the targetPort is specified as part of the service's
	// port specification, traffic to the service port will be forwarded
	// to one of the endpoints on the specified `targetPort`. If both
	// the targetPort and endpoint's port map are not specified, traffic
	// to a service port will be forwarded to one of the endpoints on
	// the same port.
	//
	// **NOTE 1:** Do not use for `unix://` addresses.
	//
	// **NOTE 2:** endpoint port map takes precedence over targetPort.
	Ports map[string]uint32 `` /* 152-byte string literal not displayed */
	// One or more labels associated with the endpoint.
	Labels map[string]string `` /* 153-byte string literal not displayed */
	// Network enables Istio to group endpoints resident in the same L3
	// domain/network. All endpoints in the same network are assumed to be
	// directly reachable from one another. When endpoints in different
	// networks cannot reach each other directly, an Istio Gateway can be
	// used to establish connectivity (usually using the
	// `AUTO_PASSTHROUGH` mode in a Gateway Server). This is
	// an advanced configuration used typically for spanning an Istio mesh
	// over multiple clusters. Required if address is not provided.
	Network string `protobuf:"bytes,4,opt,name=network,proto3" json:"network,omitempty"`
	// The locality associated with the endpoint. A locality corresponds
	// to a failure domain (e.g., country/region/zone). Arbitrary failure
	// domain hierarchies can be represented by separating each
	// encapsulating failure domain by /. For example, the locality of an
	// an endpoint in US, in US-East-1 region, within availability zone
	// az-1, in data center rack r11 can be represented as
	// us/us-east-1/az-1/r11. Istio will configure the sidecar to route to
	// endpoints within the same locality as the sidecar. If none of the
	// endpoints in the locality are available, endpoints parent locality
	// (but within the same network ID) will be chosen. For example, if
	// there are two endpoints in same network (networkID "n1"), say e1
	// with locality us/us-east-1/az-1/r11 and e2 with locality
	// us/us-east-1/az-2/r12, a sidecar from us/us-east-1/az-1/r11 locality
	// will prefer e1 from the same locality over e2 from a different
	// locality. Endpoint e2 could be the IP associated with a gateway
	// (that bridges networks n1 and n2), or the IP associated with a
	// standard service endpoint.
	Locality string `protobuf:"bytes,5,opt,name=locality,proto3" json:"locality,omitempty"`
	// The load balancing weight associated with the endpoint. Endpoints
	// with higher weights will receive proportionally higher traffic.
	Weight uint32 `protobuf:"varint,6,opt,name=weight,proto3" json:"weight,omitempty"`
	// The service account associated with the workload if a sidecar
	// is present in the workload. The service account must be present
	// in the same namespace as the configuration ( WorkloadEntry or a
	// ServiceEntry)
	ServiceAccount string `protobuf:"bytes,7,opt,name=service_account,json=serviceAccount,proto3" json:"service_account,omitempty"`
	// contains filtered or unexported fields
}

WorkloadEntry enables specifying the properties of a single non-Kubernetes workload such a VM or a bare metal services that can be referred to by service entries.

<!-- crd generation tags +cue-gen:WorkloadEntry:groupName:networking.istio.io +cue-gen:WorkloadEntry:version:v1alpha3 +cue-gen:WorkloadEntry:storageVersion +cue-gen:WorkloadEntry:annotations:helm.sh/resource-policy=keep +cue-gen:WorkloadEntry:labels:app=istio-pilot,chart=istio,heritage=Tiller,release=istio +cue-gen:WorkloadEntry:subresource:status +cue-gen:WorkloadEntry:scope:Namespaced +cue-gen:WorkloadEntry:resource:categories=istio-io,networking-istio-io,shortNames=we,plural=workloadentries +cue-gen:WorkloadEntry:printerColumn:name=Age,type=date,JSONPath=.metadata.creationTimestamp,description="CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata" +cue-gen:WorkloadEntry:printerColumn:name=Address,type=string,JSONPath=.spec.address,description="Address associated with the network endpoint." +cue-gen:WorkloadEntry:preserveUnknownFields:false -->

<!-- go code generation tags +kubetype-gen +kubetype-gen:groupVersion=networking.istio.io/v1alpha3 +genclient +k8s:deepcopy-gen=true --> <!-- istio code generation tags +istio.io/sync-start -->

func (*WorkloadEntry) DeepCopy

func (in *WorkloadEntry) DeepCopy() *WorkloadEntry

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkloadEntry. Required by controller-gen.

func (*WorkloadEntry) DeepCopyInterface

func (in *WorkloadEntry) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new WorkloadEntry. Required by controller-gen.

func (*WorkloadEntry) DeepCopyInto

func (in *WorkloadEntry) DeepCopyInto(out *WorkloadEntry)

DeepCopyInto supports using WorkloadEntry within kubernetes types, where deepcopy-gen is used.

func (*WorkloadEntry) Descriptor deprecated

func (*WorkloadEntry) Descriptor() ([]byte, []int)

Deprecated: Use WorkloadEntry.ProtoReflect.Descriptor instead.

func (*WorkloadEntry) GetAddress

func (x *WorkloadEntry) GetAddress() string

func (*WorkloadEntry) GetLabels

func (x *WorkloadEntry) GetLabels() map[string]string

func (*WorkloadEntry) GetLocality

func (x *WorkloadEntry) GetLocality() string

func (*WorkloadEntry) GetNetwork

func (x *WorkloadEntry) GetNetwork() string

func (*WorkloadEntry) GetPorts

func (x *WorkloadEntry) GetPorts() map[string]uint32

func (*WorkloadEntry) GetServiceAccount

func (x *WorkloadEntry) GetServiceAccount() string

func (*WorkloadEntry) GetWeight

func (x *WorkloadEntry) GetWeight() uint32

func (*WorkloadEntry) MarshalJSON

func (this *WorkloadEntry) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for WorkloadEntry

func (*WorkloadEntry) ProtoMessage

func (*WorkloadEntry) ProtoMessage()

func (*WorkloadEntry) ProtoReflect

func (x *WorkloadEntry) ProtoReflect() protoreflect.Message

func (*WorkloadEntry) Reset

func (x *WorkloadEntry) Reset()

func (*WorkloadEntry) String

func (x *WorkloadEntry) String() string

func (*WorkloadEntry) UnmarshalJSON

func (this *WorkloadEntry) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for WorkloadEntry

type WorkloadGroup

type WorkloadGroup struct {

	// Metadata that will be used for all corresponding `WorkloadEntries`.
	// User labels for a workload group should be set here in `metadata` rather than in `template`.
	Metadata *WorkloadGroup_ObjectMeta `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"`
	// Template to be used for the generation of `WorkloadEntry` resources that belong to this `WorkloadGroup`.
	// Please note that `address` and `labels` fields should not be set in the template, and an empty `serviceAccount`
	// should default to `default`. The workload identities (mTLS certificates) will be bootstrapped using the
	// specified service account's token. Workload entries in this group will be in the same namespace as the
	// workload group, and inherit the labels and annotations from the above `metadata` field.
	Template *WorkloadEntry `protobuf:"bytes,2,opt,name=template,proto3" json:"template,omitempty"`
	// `ReadinessProbe` describes the configuration the user must provide for healthchecking on their workload.
	// This configuration mirrors K8S in both syntax and logic for the most part.
	Probe *ReadinessProbe `protobuf:"bytes,3,opt,name=probe,proto3" json:"probe,omitempty"`
	// contains filtered or unexported fields
}

`WorkloadGroup` enables specifying the properties of a single workload for bootstrap and provides a template for `WorkloadEntry`, similar to how `Deployment` specifies properties of workloads via `Pod` templates. A `WorkloadGroup` can have more than one `WorkloadEntry`. `WorkloadGroup` has no relationship to resources which control service registry like `ServiceEntry` and as such doesn't configure host name for these workloads.

<!-- crd generation tags +cue-gen:WorkloadGroup:groupName:networking.istio.io +cue-gen:WorkloadGroup:version:v1alpha3 +cue-gen:WorkloadGroup:storageVersion +cue-gen:WorkloadGroup:labels:app=istio-pilot,chart=istio,heritage=Tiller,release=istio +cue-gen:WorkloadGroup:subresource:status +cue-gen:WorkloadGroup:scope:Namespaced +cue-gen:WorkloadGroup:resource:categories=istio-io,networking-istio-io,shortNames=wg,plural=workloadgroups +cue-gen:WorkloadGroup:printerColumn:name=Age,type=date,JSONPath=.metadata.creationTimestamp,description="CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata" +cue-gen:WorkloadGroup:preserveUnknownFields:false -->

<!-- go code generation tags +kubetype-gen +kubetype-gen:groupVersion=networking.istio.io/v1alpha3 +genclient +k8s:deepcopy-gen=true --> <!-- istio code generation tags +istio.io/sync-start -->

func (*WorkloadGroup) DeepCopy

func (in *WorkloadGroup) DeepCopy() *WorkloadGroup

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkloadGroup. Required by controller-gen.

func (*WorkloadGroup) DeepCopyInterface

func (in *WorkloadGroup) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new WorkloadGroup. Required by controller-gen.

func (*WorkloadGroup) DeepCopyInto

func (in *WorkloadGroup) DeepCopyInto(out *WorkloadGroup)

DeepCopyInto supports using WorkloadGroup within kubernetes types, where deepcopy-gen is used.

func (*WorkloadGroup) Descriptor deprecated

func (*WorkloadGroup) Descriptor() ([]byte, []int)

Deprecated: Use WorkloadGroup.ProtoReflect.Descriptor instead.

func (*WorkloadGroup) GetMetadata

func (x *WorkloadGroup) GetMetadata() *WorkloadGroup_ObjectMeta

func (*WorkloadGroup) GetProbe

func (x *WorkloadGroup) GetProbe() *ReadinessProbe

func (*WorkloadGroup) GetTemplate

func (x *WorkloadGroup) GetTemplate() *WorkloadEntry

func (*WorkloadGroup) MarshalJSON

func (this *WorkloadGroup) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for WorkloadGroup

func (*WorkloadGroup) ProtoMessage

func (*WorkloadGroup) ProtoMessage()

func (*WorkloadGroup) ProtoReflect

func (x *WorkloadGroup) ProtoReflect() protoreflect.Message

func (*WorkloadGroup) Reset

func (x *WorkloadGroup) Reset()

func (*WorkloadGroup) String

func (x *WorkloadGroup) String() string

func (*WorkloadGroup) UnmarshalJSON

func (this *WorkloadGroup) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for WorkloadGroup

type WorkloadGroup_ObjectMeta

type WorkloadGroup_ObjectMeta struct {

	// Labels to attach
	Labels map[string]string `` /* 153-byte string literal not displayed */
	// Annotations to attach
	Annotations map[string]string `` /* 163-byte string literal not displayed */
	// contains filtered or unexported fields
}

`ObjectMeta` describes metadata that will be attached to a `WorkloadEntry`. It is a subset of the supported Kubernetes metadata.

func (*WorkloadGroup_ObjectMeta) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkloadGroup_ObjectMeta. Required by controller-gen.

func (*WorkloadGroup_ObjectMeta) DeepCopyInterface

func (in *WorkloadGroup_ObjectMeta) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new WorkloadGroup_ObjectMeta. Required by controller-gen.

func (*WorkloadGroup_ObjectMeta) DeepCopyInto

func (in *WorkloadGroup_ObjectMeta) DeepCopyInto(out *WorkloadGroup_ObjectMeta)

DeepCopyInto supports using WorkloadGroup_ObjectMeta within kubernetes types, where deepcopy-gen is used.

func (*WorkloadGroup_ObjectMeta) Descriptor deprecated

func (*WorkloadGroup_ObjectMeta) Descriptor() ([]byte, []int)

Deprecated: Use WorkloadGroup_ObjectMeta.ProtoReflect.Descriptor instead.

func (*WorkloadGroup_ObjectMeta) GetAnnotations

func (x *WorkloadGroup_ObjectMeta) GetAnnotations() map[string]string

func (*WorkloadGroup_ObjectMeta) GetLabels

func (x *WorkloadGroup_ObjectMeta) GetLabels() map[string]string

func (*WorkloadGroup_ObjectMeta) MarshalJSON

func (this *WorkloadGroup_ObjectMeta) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for WorkloadGroup_ObjectMeta

func (*WorkloadGroup_ObjectMeta) ProtoMessage

func (*WorkloadGroup_ObjectMeta) ProtoMessage()

func (*WorkloadGroup_ObjectMeta) ProtoReflect

func (x *WorkloadGroup_ObjectMeta) ProtoReflect() protoreflect.Message

func (*WorkloadGroup_ObjectMeta) Reset

func (x *WorkloadGroup_ObjectMeta) Reset()

func (*WorkloadGroup_ObjectMeta) String

func (x *WorkloadGroup_ObjectMeta) String() string

func (*WorkloadGroup_ObjectMeta) UnmarshalJSON

func (this *WorkloadGroup_ObjectMeta) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for WorkloadGroup_ObjectMeta

type WorkloadSelector

type WorkloadSelector struct {

	// One or more labels that indicate a specific set of pods/VMs
	// on which the configuration should be applied. The scope of
	// label search is restricted to the configuration namespace in which the
	// the resource is present.
	Labels map[string]string `` /* 153-byte string literal not displayed */
	// contains filtered or unexported fields
}

`WorkloadSelector` specifies the criteria used to determine if the `Gateway`, `Sidecar`, `EnvoyFilter`, `ServiceEntry`, or `DestinationRule` configuration can be applied to a proxy. The matching criteria includes the metadata associated with a proxy, workload instance info such as labels attached to the pod/VM, or any other info that the proxy provides to Istio during the initial handshake. If multiple conditions are specified, all conditions need to match in order for the workload instance to be selected. Currently, only label based selection mechanism is supported.

func (*WorkloadSelector) DeepCopy

func (in *WorkloadSelector) DeepCopy() *WorkloadSelector

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkloadSelector. Required by controller-gen.

func (*WorkloadSelector) DeepCopyInterface

func (in *WorkloadSelector) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new WorkloadSelector. Required by controller-gen.

func (*WorkloadSelector) DeepCopyInto

func (in *WorkloadSelector) DeepCopyInto(out *WorkloadSelector)

DeepCopyInto supports using WorkloadSelector within kubernetes types, where deepcopy-gen is used.

func (*WorkloadSelector) Descriptor deprecated

func (*WorkloadSelector) Descriptor() ([]byte, []int)

Deprecated: Use WorkloadSelector.ProtoReflect.Descriptor instead.

func (*WorkloadSelector) GetLabels

func (x *WorkloadSelector) GetLabels() map[string]string

func (*WorkloadSelector) MarshalJSON

func (this *WorkloadSelector) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for WorkloadSelector

func (*WorkloadSelector) ProtoMessage

func (*WorkloadSelector) ProtoMessage()

func (*WorkloadSelector) ProtoReflect

func (x *WorkloadSelector) ProtoReflect() protoreflect.Message

func (*WorkloadSelector) Reset

func (x *WorkloadSelector) Reset()

func (*WorkloadSelector) String

func (x *WorkloadSelector) String() string

func (*WorkloadSelector) UnmarshalJSON

func (this *WorkloadSelector) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for WorkloadSelector

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL