namespace

package
v0.0.0-...-a158ba3 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	WebhookName string = "namespace-validation"
)

Variables

View Source
var (
	BadNamespaceRe = regexp.MustCompile(badNamespace)
)

exported vars to be used across packages

Functions

This section is empty.

Types

type NamespaceWebhook

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

NamespaceWebhook validates a Namespace change

func NewWebhook

func NewWebhook() *NamespaceWebhook

NewWebhook creates a new webhook

func (*NamespaceWebhook) Authorized

Authorized implements Webhook interface

func (*NamespaceWebhook) Doc

func (s *NamespaceWebhook) Doc() string

func (*NamespaceWebhook) FailurePolicy

FailurePolicy implements Webhook interface

func (*NamespaceWebhook) GetURI

func (s *NamespaceWebhook) GetURI() string

GetURI implements Webhook interface

func (*NamespaceWebhook) HypershiftEnabled

func (s *NamespaceWebhook) HypershiftEnabled() bool

func (*NamespaceWebhook) MatchPolicy

MatchPolicy implements Webhook interface

func (*NamespaceWebhook) Name

func (s *NamespaceWebhook) Name() string

Name implements Webhook interface

func (*NamespaceWebhook) ObjectSelector

func (s *NamespaceWebhook) ObjectSelector() *metav1.LabelSelector

ObjectSelector implements Webhook interface

func (*NamespaceWebhook) Rules

Rules implements Webhook interface

func (*NamespaceWebhook) SideEffects

SideEffects implements Webhook interface

func (*NamespaceWebhook) SyncSetLabelSelector

func (s *NamespaceWebhook) SyncSetLabelSelector() metav1.LabelSelector

SyncSetLabelSelector returns the label selector to use in the SyncSet.

func (*NamespaceWebhook) TimeoutSeconds

func (s *NamespaceWebhook) TimeoutSeconds() int32

TimeoutSeconds implements Webhook interface

func (*NamespaceWebhook) Validate

func (s *NamespaceWebhook) Validate(req admissionctl.Request) bool

Validate - Make sure we're working with a well-formed Admission Request object

Jump to

Keyboard shortcuts

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