istio: Index | Files

package config

import ""


Package Files



var (
    ErrInvalidLengthConfig = fmt.Errorf("proto: negative length found during unmarshaling")
    ErrIntOverflowConfig   = fmt.Errorf("proto: integer overflow")

type Params Uses

type Params struct {
    // File path to discover `kubeconfig`. For in-cluster configuration,
    // this should be left unset. For local configuration, this should
    // be set to the path of a `kubeconfig` file that can be used to
    // reach a kubernetes API server.
    // NOTE: The `kubernetesenv` adapter will use the value of the `KUBECONFIG` environment variable
    // in the case where it is set (overriding any value configured
    // through this proto).
    // Default: "" (unset)
    KubeconfigPath string `protobuf:"bytes,1,opt,name=kubeconfig_path,json=kubeconfigPath,proto3" json:"kubeconfig_path,omitempty"`
    // Controls the resync period of the Kubernetes cluster info cache.
    // The cache will watch for events and every so often completely resync.
    // This controls how frequently the complete resync occurs.
    // Default: 5 minutes
    CacheRefreshDuration time.Duration `protobuf:"bytes,2,opt,name=cache_refresh_duration,json=cacheRefreshDuration,proto3,stdduration" json:"cache_refresh_duration"`
    // Namespace of the secret created for multicluster support.
    // Details on multicluster and the Kubernetes secret required to
    // access the remote cluster's credentials can be found in
    // [multicluster install](
    // NOTE: If `cluster_registries_namespace` is not set then the environment
    // variable `POD_NAMESPACE` is checked/used. If `POD_NAMESPACE` is not
    // set then `cluster_registries_namespace` defaults to "istio-system".
    // Default: "istio-system"
    ClusterRegistriesNamespace string `protobuf:"bytes,7,opt,name=cluster_registries_namespace,json=clusterRegistriesNamespace,proto3" json:"cluster_registries_namespace,omitempty"`

Configuration parameters for the kubernetes adapter. These params control the manner in which the kubernetes adapter discovers and generates values related to pod information.

The adapter works by looking up pod information by UIDs (of the form: "kubernetes://pod.namespace"). It expects that the UIDs will be supplied in an input map for three distinct traffic classes (source, destination, and origin).

For all valid UIDs supplied, this adapter generates output values containing information about the related pods.

func (*Params) Descriptor Uses

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

func (*Params) Marshal Uses

func (m *Params) Marshal() (dAtA []byte, err error)

func (*Params) MarshalTo Uses

func (m *Params) MarshalTo(dAtA []byte) (int, error)

func (*Params) MarshalToSizedBuffer Uses

func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Params) ProtoMessage Uses

func (*Params) ProtoMessage()

func (*Params) Reset Uses

func (m *Params) Reset()

func (*Params) Size Uses

func (m *Params) Size() (n int)

func (*Params) String Uses

func (this *Params) String() string

func (*Params) Unmarshal Uses

func (m *Params) Unmarshal(dAtA []byte) error

func (*Params) XXX_DiscardUnknown Uses

func (m *Params) XXX_DiscardUnknown()

func (*Params) XXX_Marshal Uses

func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Params) XXX_Merge Uses

func (m *Params) XXX_Merge(src proto.Message)

func (*Params) XXX_Size Uses

func (m *Params) XXX_Size() int

func (*Params) XXX_Unmarshal Uses

func (m *Params) XXX_Unmarshal(b []byte) error

Package config imports 10 packages (graph) and is imported by 4 packages. Updated 2020-03-10. Refresh now. Tools for package owners.