podsinmesh

package
v0.0.0-...-e408518 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2021 License: Apache-2.0 Imports: 7 Imported by: 2

README

Pods In Mesh

The podsinmesh vetter counts the number of Pods in/out of the mesh which can be useful for detecting misconfigurations or policy violations.

This vetter counts all user Pods (not in namespaces kube-system, kube-public, istio-system) and reports the number of Pods in the mesh. Pods are considered in the mesh if they have the correct initializer annotations and sidecar proxy injected.

It also counts the system Pods (in namespaces kube-system, kube-public, istio-system) and reports the number of running system pods which are exempted from the mesh.

Notes Generated

Documentation

Overview

Package podsinmesh generates informational notes on system and user Pods in the mesh.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MeshStats

type MeshStats struct {
	// contains filtered or unexported fields
}

MeshStats implements Vetter interface

func NewVetter

func NewVetter(factory vetter.ResourceListGetter) *MeshStats

NewVetter returns "meshStats" which implements Vetter Interface

func NewVetterFromListers

func NewVetterFromListers(podLister v1.PodLister, nsLister v1.NamespaceLister) *MeshStats

func (*MeshStats) Info

func (m *MeshStats) Info() *apiv1.Info

Info returns information about the vetter

func (*MeshStats) Vet

func (m *MeshStats) Vet() ([]*apiv1.Note, error)

Vet returns the list of generated notes

Jump to

Keyboard shortcuts

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