networkoperator

package
v0.0.0-...-e97388c Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	WebhookName string = "network-operator-validation"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type NetworkOperatorWebhook

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

func NewWebhook

func NewWebhook() *NetworkOperatorWebhook

NewWebhook creates a new webhook

func (*NetworkOperatorWebhook) Authorized

Authorized will determine if the request is allowed

func (*NetworkOperatorWebhook) ClassicEnabled

func (w *NetworkOperatorWebhook) ClassicEnabled() bool

func (*NetworkOperatorWebhook) Doc

func (w *NetworkOperatorWebhook) Doc() string

Doc returns a string for end-customer documentation purposes.

func (*NetworkOperatorWebhook) FailurePolicy

FailurePolicy is how the hook config should react if k8s can't access it

func (*NetworkOperatorWebhook) GetURI

func (w *NetworkOperatorWebhook) GetURI() string

GetURI returns the URI for the webhook

func (*NetworkOperatorWebhook) HypershiftEnabled

func (w *NetworkOperatorWebhook) HypershiftEnabled() bool

HypershiftEnabled will return boolean value for hypershift enabled configurations

func (*NetworkOperatorWebhook) MatchPolicy

MatchPolicy mirrors validatingwebhookconfiguration.webhooks[].matchPolicy If it is important to the webhook, be sure to check subResource vs requestSubResource.

func (*NetworkOperatorWebhook) Name

func (w *NetworkOperatorWebhook) Name() string

Name is the name of the webhook

func (*NetworkOperatorWebhook) ObjectSelector

func (w *NetworkOperatorWebhook) ObjectSelector() *metav1.LabelSelector

ObjectSelector uses a *metav1.LabelSelector to augment the webhook's Rules() to match only on incoming requests which match the specific LabelSelector.

func (*NetworkOperatorWebhook) Rules

Rules is a slice of rules on which this hook should trigger

func (*NetworkOperatorWebhook) SideEffects

SideEffects are what side effects, if any, this hook has. Refer to https://kubernetes.io/docs/reference/access-authn-authz/extensible-admission-controllers/#side-effects

func (*NetworkOperatorWebhook) SyncSetLabelSelector

func (w *NetworkOperatorWebhook) SyncSetLabelSelector() metav1.LabelSelector

SyncSetLabelSelector returns the label selector to use in the SyncSet. Return utils.DefaultLabelSelector() to stick with the default

func (*NetworkOperatorWebhook) TimeoutSeconds

func (w *NetworkOperatorWebhook) TimeoutSeconds() int32

TimeoutSeconds returns an int32 representing how long to wait for this hook to complete

func (*NetworkOperatorWebhook) Validate

Validate will validate the incoming request

Jump to

Keyboard shortcuts

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