Documentation ¶
Index ¶
Constants ¶
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" )
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.