Documentation
¶
Index ¶
- Constants
- type IngressConfigWebhook
- func (w *IngressConfigWebhook) Authorized(request admissionctl.Request) (ret admissionctl.Response)
- func (w *IngressConfigWebhook) ClassicEnabled() bool
- func (w *IngressConfigWebhook) Doc() string
- func (w *IngressConfigWebhook) FailurePolicy() admissionregv1.FailurePolicyType
- func (w *IngressConfigWebhook) GetURI() string
- func (w *IngressConfigWebhook) HypershiftEnabled() bool
- func (w *IngressConfigWebhook) MatchPolicy() admissionregv1.MatchPolicyType
- func (w *IngressConfigWebhook) Name() string
- func (w *IngressConfigWebhook) ObjectSelector() *metav1.LabelSelector
- func (w *IngressConfigWebhook) Rules() []admissionregv1.RuleWithOperations
- func (w *IngressConfigWebhook) SideEffects() admissionregv1.SideEffectClass
- func (w *IngressConfigWebhook) SyncSetLabelSelector() metav1.LabelSelector
- func (w *IngressConfigWebhook) TimeoutSeconds() int32
- func (w *IngressConfigWebhook) Validate(req admissionctl.Request) bool
Constants ¶
const (
WebhookName string = "ingress-config-validation"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IngressConfigWebhook ¶
type IngressConfigWebhook struct {
// contains filtered or unexported fields
}
func (*IngressConfigWebhook) Authorized ¶
func (w *IngressConfigWebhook) Authorized(request admissionctl.Request) (ret admissionctl.Response)
Authorized will determine if the request is allowed
func (*IngressConfigWebhook) ClassicEnabled ¶
func (w *IngressConfigWebhook) ClassicEnabled() bool
func (*IngressConfigWebhook) Doc ¶
func (w *IngressConfigWebhook) Doc() string
Doc returns a string for end-customer documentation purposes.
func (*IngressConfigWebhook) FailurePolicy ¶
func (w *IngressConfigWebhook) FailurePolicy() admissionregv1.FailurePolicyType
FailurePolicy is how the hook config should react if k8s can't access it
func (*IngressConfigWebhook) GetURI ¶
func (w *IngressConfigWebhook) GetURI() string
GetURI returns the URI for the webhook
func (*IngressConfigWebhook) HypershiftEnabled ¶
func (w *IngressConfigWebhook) HypershiftEnabled() bool
HypershiftEnabled will return boolean value for hypershift enabled configurations
func (*IngressConfigWebhook) MatchPolicy ¶
func (w *IngressConfigWebhook) MatchPolicy() admissionregv1.MatchPolicyType
MatchPolicy mirrors validatingwebhookconfiguration.webhooks[].matchPolicy If it is important to the webhook, be sure to check subResource vs requestSubResource.
func (*IngressConfigWebhook) Name ¶
func (w *IngressConfigWebhook) Name() string
Name is the name of the webhook
func (*IngressConfigWebhook) ObjectSelector ¶
func (w *IngressConfigWebhook) ObjectSelector() *metav1.LabelSelector
ObjectSelector uses a *metav1.LabelSelector to augment the webhook's Rules() to match only on incoming requests which match the specific LabelSelector.
func (*IngressConfigWebhook) Rules ¶
func (w *IngressConfigWebhook) Rules() []admissionregv1.RuleWithOperations
Rules is a slice of rules on which this hook should trigger
func (*IngressConfigWebhook) SideEffects ¶
func (w *IngressConfigWebhook) SideEffects() admissionregv1.SideEffectClass
SideEffects are what side effects, if any, this hook has. Refer to https://kubernetes.io/docs/reference/access-authn-authz/extensible-admission-controllers/#side-effects
func (*IngressConfigWebhook) SyncSetLabelSelector ¶
func (w *IngressConfigWebhook) SyncSetLabelSelector() metav1.LabelSelector
SyncSetLabelSelector returns the label selector to use in the SyncSet. Return utils.DefaultLabelSelector() to stick with the default
func (*IngressConfigWebhook) TimeoutSeconds ¶
func (w *IngressConfigWebhook) TimeoutSeconds() int32
TimeoutSeconds returns an int32 representing how long to wait for this hook to complete
func (*IngressConfigWebhook) Validate ¶
func (w *IngressConfigWebhook) Validate(req admissionctl.Request) bool
Validate will validate the incoming request