constants

package
v1.9.0-industry.4 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2023 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 8 more Imports: 7 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL