scc

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: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	WebhookName = "scc-validation"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type SCCWebHook

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

func NewWebhook

func NewWebhook() *SCCWebHook

NewWebhook creates the new webhook

func (*SCCWebHook) Authorized

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

Authorized implements Webhook interface

func (*SCCWebHook) Doc

func (s *SCCWebHook) Doc() string

Doc implements Webhook interface

func (*SCCWebHook) FailurePolicy

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

FailurePolicy implements Webhook interface

func (*SCCWebHook) GetURI

func (s *SCCWebHook) GetURI() string

GetURI implements Webhook interface

func (*SCCWebHook) HypershiftEnabled

func (s *SCCWebHook) HypershiftEnabled() bool

func (*SCCWebHook) MatchPolicy

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

MatchPolicy implements Webhook interface

func (*SCCWebHook) Name

func (s *SCCWebHook) Name() string

Name implements Webhook interface

func (*SCCWebHook) ObjectSelector

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

ObjectSelector implements Webhook interface

func (*SCCWebHook) Rules

Rules implements Webhook interface

func (*SCCWebHook) SideEffects

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

SideEffects implements Webhook interface

func (*SCCWebHook) SyncSetLabelSelector

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

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

func (*SCCWebHook) TimeoutSeconds

func (s *SCCWebHook) TimeoutSeconds() int32

TimeoutSeconds implements Webhook interface

func (*SCCWebHook) Validate

func (s *SCCWebHook) Validate(request admissionctl.Request) bool

Validate implements Webhook interface

Jump to

Keyboard shortcuts

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