labeller

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2020 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	UnknownLabel    = "Unknown"
	NegligibleLabel = "Negligible"
	LowLabel        = "Low"
	MediumLabel     = "Medium"
	HighLabel       = "High"
	CriticalLabel   = "Critical"
	Defcon1Label    = "Defcon1"
)

Functions

func NewMultiNamespaceListerWatcher

func NewMultiNamespaceListerWatcher(namespaces []string, f func(string) cache.ListerWatcher) cache.ListerWatcher

Types

type Config

type Config struct {
	Namespaces        []string      `yaml:"namespaces"`
	Interval          time.Duration `yaml:"interval"`
	ResyncThreshold   time.Duration `yaml:"resyncThreshold"`
	LabelPrefix       string        `yaml:"labelPrefix"`
	PrometheusAddr    string        `yaml:"prometheusAddr"`
	WellknownEndpoint string        `yaml:"wellknownEndpoint"`
}

func LoadConfig

func LoadConfig(cfgPath string) (*Config, error)

Load security labeller config

type File

type File struct {
	SecurityLabeller Config `yaml:"securitylabeller"`
}

YAML configuration with all SecurityLabeller configuration under top-level "security-labeller" key

type Labeller

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

func New

func New(config *Config, kubeconfig string, logger log.Logger) (*Labeller, error)

func (*Labeller) Reconcile

func (l *Labeller) Reconcile(key string) error

func (*Labeller) Run

func (l *Labeller) Run(stopc <-chan struct{}) error

Jump to

Keyboard shortcuts

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