Documentation ¶
Index ¶
Constants ¶
View Source
const ( KindDestinationRule = "DestinationRule" KindDestinationRuleList = "DestinationRuleList" KindEnvoyFilter = "EnvoyFilter" KindEnvoyFilterList = "EnvoyFilterList" KindGateway = "Gateway" KindGatewayList = "GatewayList" KindServiceEntry = "ServiceEntry" KindServiceEntryList = "ServiceEntryList" KindSidecar = "Sidecar" KindSidecarList = "SidecarList" KindVirtualService = "VirtualService" KindVirtualServiceList = "VirtualServiceList" KindWorkloadEntry = "WorkloadEntry" KindWorkloadEntryList = "WorkloadEntryList" KindPodList = "PodList" KindDeploymentList = "DeploymentList" KindStatefulSetList = "StatefulSetList" KindDaemonSetList = "DaemonSetList" )
istio kinds name
View Source
const ( // local test env kubeconfig files // example: // export LOCAL_KUBECONFIG=~/.kube/config1.yaml:~/.kube/config2.yaml EnvLocalKubeConfig = "LOCAL_KUBECONFIG" )
Variables ¶
View Source
var ( DestinationRule = istioNetworkingGV.WithKind(KindDestinationRule) DestinationRuleList = istioNetworkingGV.WithKind(KindDestinationRuleList) EnvoyFilter = istioNetworkingGV.WithKind(KindEnvoyFilter) EnvoyFilterList = istioNetworkingGV.WithKind(KindEnvoyFilterList) Gateway = istioNetworkingGV.WithKind(KindGateway) GatewayList = istioNetworkingGV.WithKind(KindGatewayList) ServiceEntry = istioNetworkingGV.WithKind(KindServiceEntry) ServiceEntryList = istioNetworkingGV.WithKind(KindServiceEntryList) Sidecar = istioNetworkingGV.WithKind(KindSidecar) SidecarList = istioNetworkingGV.WithKind(KindSidecarList) VirtualService = istioNetworkingGV.WithKind(KindVirtualService) VirtualServiceList = istioNetworkingGV.WithKind(KindVirtualServiceList) WorkloadEntry = istioNetworkingGV.WithKind(KindWorkloadEntry) WorkloadEntryList = istioNetworkingGV.WithKind(KindWorkloadEntryList) PodList = coreGV.WithKind(KindPodList) DeploymentList = appsGV.WithKind(KindDeploymentList) StatefulSetList = appsGV.WithKind(KindStatefulSetList) IstioNetworkingListGVK = []schema.GroupVersionKind{ DestinationRuleList, EnvoyFilterList, GatewayList, ServiceEntryList, SidecarList, VirtualServiceList, WorkloadEntryList, } IstioNetworkingGVK = []schema.GroupVersionKind{ DestinationRule, EnvoyFilter, Gateway, ServiceEntry, Sidecar, VirtualService, WorkloadEntry, } WorkloadListGVK = []schema.GroupVersionKind{ PodList, DeploymentList, StatefulSetList, } )
scheme GroupVersionKind
View Source
var ( IstioInjectionAnnotation = "sidecar.istio.io/inject" IstioAppLabelKey = "app" IstioVersionLabelKey = "version" IstioAppSelector = labels.NewSelector().Add(*existsApp) IstioAppVersionSelector = IstioAppSelector.Add(*existsVersion) // TODO configure the following exclude namespaces /* Exclude namespaces: default kube-system istio-system kube-public */ ExcludeNamespacesSelector, _ = fields.ParseSelector( "metadata.namespace!=default," + "metadata.namespace!=kube-system," + "metadata.namespace!=istio-system," + "metadata.namespace!=kube-public", ) )
istio labels, annotations, selector
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.