Documentation ¶
Index ¶
- Constants
- type IngressControllerWebhook
- func (wh *IngressControllerWebhook) Authorized(request admissionctl.Request) admissionctl.Response
- func (s *IngressControllerWebhook) ClassicEnabled() bool
- func (wh *IngressControllerWebhook) Doc() string
- func (wh *IngressControllerWebhook) FailurePolicy() admissionregv1.FailurePolicyType
- func (wh *IngressControllerWebhook) GetURI() string
- func (s *IngressControllerWebhook) HypershiftEnabled() bool
- func (wh *IngressControllerWebhook) MatchPolicy() admissionregv1.MatchPolicyType
- func (wh *IngressControllerWebhook) Name() string
- func (wh *IngressControllerWebhook) ObjectSelector() *metav1.LabelSelector
- func (wh *IngressControllerWebhook) Rules() []admissionregv1.RuleWithOperations
- func (wh *IngressControllerWebhook) SideEffects() admissionregv1.SideEffectClass
- func (s *IngressControllerWebhook) SyncSetLabelSelector() metav1.LabelSelector
- func (wh *IngressControllerWebhook) TimeoutSeconds() int32
- func (wh *IngressControllerWebhook) Validate(req admissionctl.Request) bool
Constants ¶
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 (*IngressControllerWebhook) Authorized ¶
func (wh *IngressControllerWebhook) Authorized(request admissionctl.Request) admissionctl.Response
Authorized implements Webhook interface
func (*IngressControllerWebhook) ClassicEnabled ¶
func (s *IngressControllerWebhook) ClassicEnabled() bool
func (*IngressControllerWebhook) Doc ¶
func (wh *IngressControllerWebhook) Doc() string
func (*IngressControllerWebhook) FailurePolicy ¶
func (wh *IngressControllerWebhook) FailurePolicy() admissionregv1.FailurePolicyType
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 ¶
func (wh *IngressControllerWebhook) MatchPolicy() admissionregv1.MatchPolicyType
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 ¶
func (wh *IngressControllerWebhook) Rules() []admissionregv1.RuleWithOperations
Rules implements Webhook interface
func (*IngressControllerWebhook) SideEffects ¶
func (wh *IngressControllerWebhook) SideEffects() admissionregv1.SideEffectClass
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 ¶
func (wh *IngressControllerWebhook) Validate(req admissionctl.Request) bool
Validate implements Webhook interface