Documentation ¶
Overview ¶
Package config is a generated protocol buffer package.
The `kubernetesenv` adapter extracts information from a Kubernetes environment and produces attribtes that can be used in downstream adapters.
It is generated from these files:
mixer/adapter/kubernetesenv/config/config.proto
It has these top-level messages:
Params
Index ¶
- Variables
- type Params
- func (*Params) Descriptor() ([]byte, []int)
- func (m *Params) Marshal() (dAtA []byte, err error)
- func (m *Params) MarshalTo(dAtA []byte) (int, error)
- func (*Params) ProtoMessage()
- func (m *Params) Reset()
- func (m *Params) Size() (n int)
- func (this *Params) String() string
- func (m *Params) Unmarshal(dAtA []byte) error
Constants ¶
This section is empty.
Variables ¶
var ( ErrInvalidLengthConfig = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowConfig = fmt.Errorf("proto: integer overflow") )
Functions ¶
This section is empty.
Types ¶
type Params ¶
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 kubernetes adapter will use the value of the env var // KUBECONFIG 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,stdduration" json:"cache_refresh_duration"` // Configures the cluster domain name to use for service name normalization. // // Default: svc.cluster.local ClusterDomainName string `protobuf:"bytes,3,opt,name=cluster_domain_name,json=clusterDomainName,proto3" json:"cluster_domain_name,omitempty"` // In order to extract the service associated with a source, destination, or // origin, this adapter relies on pod labels. In particular, it looks for // the value of a specific label, as specified by this parameter. // // Default: app PodLabelForService string `protobuf:"bytes,4,opt,name=pod_label_for_service,json=podLabelForService,proto3" json:"pod_label_for_service,omitempty"` // In order to extract the service associated with a source, destination, or // origin, this adapter relies on pod labels. In particular, it looks for // the value of a specific label for istio component services, as specified // by this parameter. // // Default: istio PodLabelForIstioComponentService string `` /* 165-byte string literal not displayed */ // // Default: false LookupIngressSourceAndOriginValues bool `` /* 172-byte string literal not displayed */ // Istio ingress service string. This is used to identify the // ingress service in requests. // // Default: "ingress.istio-system.svc.cluster.local" FullyQualifiedIstioIngressServiceName string `` /* 180-byte string literal not displayed */ }
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 ¶
func (*Params) ProtoMessage ¶
func (*Params) ProtoMessage()