service

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 string = "service-mutation"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ServiceWebhook

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

ServiceWebhook mutates a Service change

func NewWebhook

func NewWebhook() *ServiceWebhook

NewWebhook creates the new webhook

func (*ServiceWebhook) Authorized

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

Authorized implements Webhook interface

func (*ServiceWebhook) Doc

func (s *ServiceWebhook) Doc() string

Doc implements Webhook interface

func (*ServiceWebhook) FailurePolicy

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

FailurePolicy implements Webhook interface

func (*ServiceWebhook) GetURI

func (s *ServiceWebhook) GetURI() string

GetURI implements Webhook interface

func (*ServiceWebhook) HypershiftEnabled

func (s *ServiceWebhook) HypershiftEnabled() bool

HypershiftEnabled indicates that this webhook is compatible with hosted control plane clusters

func (*ServiceWebhook) MatchPolicy

MatchPolicy implements Webhook interface

func (*ServiceWebhook) Name

func (s *ServiceWebhook) Name() string

Name implements Webhook interface

func (*ServiceWebhook) ObjectSelector

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

ObjectSelector implements Webhook interface

func (*ServiceWebhook) Rules

Rules implements Webhook interface

func (*ServiceWebhook) SideEffects

SideEffects implements Webhook interface

func (*ServiceWebhook) SyncSetLabelSelector

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

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

func (*ServiceWebhook) TimeoutSeconds

func (s *ServiceWebhook) TimeoutSeconds() int32

TimeoutSeconds implements Webhook interface

func (*ServiceWebhook) Validate

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