hiveownership

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

Documentation

Index

Constants

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

const

Variables

This section is empty.

Functions

This section is empty.

Types

type HiveOwnershipWebhook

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

HiveOwnershipWebhook denies requests if it made by a customer to manage hive-labeled resources

func NewWebhook

func NewWebhook() *HiveOwnershipWebhook

NewWebhook creates a new webhook

func (*HiveOwnershipWebhook) Authorized

Authorized implements Webhook interface

func (*HiveOwnershipWebhook) Doc

func (s *HiveOwnershipWebhook) Doc() string

Doc documents the hook

func (*HiveOwnershipWebhook) FailurePolicy

FailurePolicy implements Webhook interface

func (*HiveOwnershipWebhook) GetURI

func (s *HiveOwnershipWebhook) GetURI() string

GetURI implements Webhook interface

func (*HiveOwnershipWebhook) HypershiftEnabled

func (s *HiveOwnershipWebhook) HypershiftEnabled() bool

func (*HiveOwnershipWebhook) MatchPolicy

MatchPolicy implements Webhook interface

func (*HiveOwnershipWebhook) Name

func (s *HiveOwnershipWebhook) Name() string

Name implements Webhook interface

func (*HiveOwnershipWebhook) ObjectSelector

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

ObjectSelector intercepts based on having the label .metadata.labels["hive.openshift.io/managed"] == "true"

func (*HiveOwnershipWebhook) Rules

Rules implements Webhook interface

func (*HiveOwnershipWebhook) SideEffects

SideEffects implements Webhook interface

func (*HiveOwnershipWebhook) SyncSetLabelSelector

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

CustomSelector implements Webhook interface, returning the custom label selector for the syncset, if any

func (*HiveOwnershipWebhook) TimeoutSeconds

func (s *HiveOwnershipWebhook) TimeoutSeconds() int32

TimeoutSeconds implements Webhook interface

func (*HiveOwnershipWebhook) Validate

func (s *HiveOwnershipWebhook) 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