networking

package
v2.11.27 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	IstioNamespace = "istio-system"

	// IstioInjectionLabel is the label used to tell Istio to inject the
	// sidecar proxy. It is also used on the Istio deployment to show what
	// version of Istio is installed.
	IstioInjectionLabel = "istio.io/rev"
)
View Source
const (
	GroupName = "networking.istio.io"
)

GroupName is the group name used in this package

Variables

This section is empty.

Functions

func IsManagedASM

func IsManagedASM(getConfigMap func(namespace, configMapName string) (*corev1.ConfigMap, error)) (bool, error)

IsManagedASM checks if the cluster is using the Google-managed control plane installation of ASM.

Managed control plane installations of ASM create a ConfigMap named "istio-asm-managed" in the "istio-system" namespace. The presence of that ConfigMap is used to determine if the cluster is using managed ASM.

func LookupASMRev

func LookupASMRev(
	listDeployments func(namespace string, selector labels.Selector) ([]*v1.Deployment, error),
	getConfigMap func(namespace, configMapName string) (*corev1.ConfigMap, error),
) (string, error)

LookupASMRev fetches the revision label from the ASM/Istio control plane or sets to "asm-managed" if managed ASM is detected.

If there are multiple istio control planes we use the one with the latest semver in the istioOperatorVersionLabel. If managed ASM is detected we always return the managed revision.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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