admission

package
v0.0.0-...-6cdb919 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Admission

type Admission struct {
	Webhooks []Webhook `yaml:"webhooks"`
}

type ClientConfig

type ClientConfig struct {
	URL      string `yaml:"url"`
	CABundle string `yaml:"caBundle"`
	Insecure bool   `yaml:"insecure"`
}

type FailurePolicy

type FailurePolicy string
const (
	FailurePolicyIgnore FailurePolicy = "ignore"
	FailurePolicyFail   FailurePolicy = "fail"
)

func (FailurePolicy) Eq

func (f FailurePolicy) Eq(other FailurePolicy) bool

type Rule

type Rule struct {
	Resources  []string           `yaml:"resources"`
	Operations []models.Operation `yaml:"operations"`
	Versions   []string           `yaml:"versions"`
}

type Webhook

type Webhook struct {
	Kind          models.Kind   `yaml:"kind"`
	FailurePolicy FailurePolicy `yaml:"failurePolicy"`
	Timeout       time.Duration `yaml:"timeout"`
	Rules         []Rule        `yaml:"rules"`
	ClientConfig  ClientConfig  `yaml:"clientConfig"`
}

Jump to

Keyboard shortcuts

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