nslabels

package
v0.0.0-...-61304a0 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2018 License: LGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NAME = "nslabels"
)

Variables

View Source
var (
	NoLabelsPresent = "NsLabelsSentry: Namespace rejected because of no labels"
)

Functions

This section is empty.

Types

type Config

type Config struct {
	IgnoredNamespaces []string `mapstructure:"ignoredNamespaces"`
}

func (*Config) LoadSentry

func (c *Config) LoadSentry() sentry.Sentry

func (*Config) Name

func (c *Config) Name() string

type Sentry

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

func (Sentry) Admit

func (s Sentry) Admit(receivedAdmissionReview v1beta1.AdmissionReview) *v1beta1.AdmissionResponse

func (Sentry) Ignore

func (s Sentry) Ignore(namespace string) bool

func (Sentry) Type

func (s Sentry) Type() string

Jump to

Keyboard shortcuts

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