injection

package
v0.0.0-...-dd1a744 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	RevisionInjectionLabelName = label.IoIstioRev.Name
)

We assume that enablement is via an istio-injection=enabled or istio.io/rev namespace label In theory, there can be alternatives using Mutatingwebhookconfiguration, but they're very uncommon See https://istio.io/docs/ops/troubleshooting/injection/ for more info.

Functions

func GetEnableNamespacesByDefaultFromInjectedConfigMap

func GetEnableNamespacesByDefaultFromInjectedConfigMap(cm *v1.ConfigMap) bool

GetInjectedConfigMapValuesStruct retrieves value of sidecarInjectorWebhook.enableNamespacesByDefault defined in the sidecar injector configuration.

func GetIstioProxyImage

func GetIstioProxyImage(cm *v1.ConfigMap) string

GetIstioProxyImage retrieves the proxy image name defined in the sidecar injector configuration.

Types

type Analyzer

type Analyzer struct{}

Analyzer checks conditions related to Istio sidecar injection.

func (*Analyzer) Analyze

func (a *Analyzer) Analyze(c analysis.Context)

Analyze implements Analyzer

func (*Analyzer) Metadata

func (a *Analyzer) Metadata() analysis.Metadata

Metadata implements Analyzer

type ImageAnalyzer

type ImageAnalyzer struct{}

ImageAnalyzer checks the image of auto-injection configured with the running proxies on pods.

func (*ImageAnalyzer) Analyze

func (a *ImageAnalyzer) Analyze(c analysis.Context)

Analyze implements Analyzer.

func (*ImageAnalyzer) Metadata

func (a *ImageAnalyzer) Metadata() analysis.Metadata

Metadata implements Analyzer.

type ImageAutoAnalyzer

type ImageAutoAnalyzer struct{}

ImageAutoAnalyzer reports an error if Pods and Deployments with `image: auto` are not going to be injected.

func (*ImageAutoAnalyzer) Analyze

func (a *ImageAutoAnalyzer) Analyze(c analysis.Context)

Analyze implements Analyzer.

func (*ImageAutoAnalyzer) Metadata

func (a *ImageAutoAnalyzer) Metadata() analysis.Metadata

Metadata implements Analyzer.

Jump to

Keyboard shortcuts

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