ingresscontroller

package
v0.0.0-...-30e2592 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

This section is empty.

Types

type IngressControllerWebhook

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

func NewWebhook

func NewWebhook() *IngressControllerWebhook

NewWebhook creates a new webhook

func (*IngressControllerWebhook) Authorized

Authorized implements Webhook interface

func (*IngressControllerWebhook) ClassicEnabled

func (s *IngressControllerWebhook) ClassicEnabled() bool

func (*IngressControllerWebhook) Doc

func (wh *IngressControllerWebhook) Doc() string

func (*IngressControllerWebhook) FailurePolicy

FailurePolicy implements Webhook interface and defines how unrecognized errors and timeout errors from the admission webhook are handled. Allowed values are Ignore or Fail. Ignore means that an error calling the webhook is ignored and the API request is allowed to continue. It's important to leave the FailurePolicy set to Ignore because otherwise the pod will fail to be created as the API request will be rejected.

func (*IngressControllerWebhook) GetURI

func (wh *IngressControllerWebhook) GetURI() string

GetURI implements Webhook interface

func (*IngressControllerWebhook) HypershiftEnabled

func (s *IngressControllerWebhook) HypershiftEnabled() bool

func (*IngressControllerWebhook) MatchPolicy

MatchPolicy implements Webhook interface

func (*IngressControllerWebhook) Name

func (wh *IngressControllerWebhook) Name() string

Name implements Webhook interface

func (*IngressControllerWebhook) ObjectSelector

func (wh *IngressControllerWebhook) ObjectSelector() *metav1.LabelSelector

ObjectSelector implements Webhook interface

func (*IngressControllerWebhook) Rules

Rules implements Webhook interface

func (*IngressControllerWebhook) SideEffects

SideEffects implements Webhook interface

func (*IngressControllerWebhook) SyncSetLabelSelector

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

SyncSetLabelSelector returns the label selector to use in the SyncSet. We turn on 'managed ingress v2' by setting legacy ingress to 'false' See https://github.com/openshift/cloud-ingress-operator/blob/master/hack/olm-registry/olm-artifacts-template.yaml and https://github.com/openshift/custom-domains-operator/blob/master/hack/olm-registry/olm-artifacts-template.yaml For examples of use.

func (*IngressControllerWebhook) TimeoutSeconds

func (wh *IngressControllerWebhook) TimeoutSeconds() int32

TimeoutSeconds implements Webhook interface

func (*IngressControllerWebhook) Validate

Validate implements Webhook interface

Jump to

Keyboard shortcuts

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