Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
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 ¶
GetInjectedConfigMapValuesStruct retrieves value of sidecarInjectorWebhook.enableNamespacesByDefault defined in the sidecar injector configuration.
func GetIstioProxyImage ¶
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.
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.