applabel

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: 4 Imported by: 2

README

App Label

The applabel vetter inspects the labels defined for the pods in the mesh and generates notes if the label app is missing on any pod.

The label app is used to add contextual information in tracing information collected by the mesh. It is recommended to add unique and meaningful app label to the pods in the mesh in order to collect useful tracing data.

Notes Generated

Documentation

Overview

Package applabel vets the labels defined for the pods in the mesh and generates notes if the label `app` is missing on any pod.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppLabel

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

AppLabel implements Vetter interface

func NewVetter

func NewVetter(factory vetter.ResourceListGetter) *AppLabel

NewVetter returns "AppLabel" which implements Vetter Interface

func NewVetterFromListers

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

func (*AppLabel) Info

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

func (*AppLabel) Vet

func (m *AppLabel) 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