node

package
v0.0.0-...-a3c95e9 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	WebhookName string = "node-validation-osd"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type NodeWebhook

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

NodeWebhook protects various objects from unauthorized manipulation

func NewWebhook

func NewWebhook() *NodeWebhook

NewWebhook creates a new webhook

func (*NodeWebhook) Authorized

func (s *NodeWebhook) Authorized(request admissionctl.Request) admissionctl.Response

Authorized implements Webhook interface

func (*NodeWebhook) ClassicEnabled

func (s *NodeWebhook) ClassicEnabled() bool

func (*NodeWebhook) Doc

func (s *NodeWebhook) Doc() string

func (*NodeWebhook) FailurePolicy

func (s *NodeWebhook) FailurePolicy() admissionregv1.FailurePolicyType

FailurePolicy implements Webhook interface

func (*NodeWebhook) GetURI

func (s *NodeWebhook) GetURI() string

GetURI implements Webhook interface

func (*NodeWebhook) HypershiftEnabled

func (s *NodeWebhook) HypershiftEnabled() bool

func (*NodeWebhook) MatchPolicy

func (s *NodeWebhook) MatchPolicy() admissionregv1.MatchPolicyType

MatchPolicy implements Webhook interface

func (*NodeWebhook) Name

func (s *NodeWebhook) Name() string

Name implements Webhook interface

func (*NodeWebhook) ObjectSelector

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

ObjectSelector implements Webhook interface

func (*NodeWebhook) Rules

Rules implements Webhook interface

func (*NodeWebhook) SideEffects

func (s *NodeWebhook) SideEffects() admissionregv1.SideEffectClass

SideEffects implements Webhook interface

func (*NodeWebhook) SyncSetLabelSelector

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

SyncSetLabelSelector returns the label selector to use in the SyncSet.

func (*NodeWebhook) TimeoutSeconds

func (s *NodeWebhook) TimeoutSeconds() int32

TimeoutSeconds implements Webhook interface

func (*NodeWebhook) Validate

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

Validate is the incoming request even valid?

Jump to

Keyboard shortcuts

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