Documentation ¶
Index ¶
- Constants
- type NetworkConfigWebhook
- func (w *NetworkConfigWebhook) Authorized(request admissionctl.Request) admissionctl.Response
- func (w *NetworkConfigWebhook) ClassicEnabled() bool
- func (w *NetworkConfigWebhook) Doc() string
- func (w *NetworkConfigWebhook) FailurePolicy() admissionregv1.FailurePolicyType
- func (w *NetworkConfigWebhook) GetURI() string
- func (w *NetworkConfigWebhook) HypershiftEnabled() bool
- func (w *NetworkConfigWebhook) MatchPolicy() admissionregv1.MatchPolicyType
- func (w *NetworkConfigWebhook) Name() string
- func (w *NetworkConfigWebhook) ObjectSelector() *metav1.LabelSelector
- func (w *NetworkConfigWebhook) Rules() []admissionregv1.RuleWithOperations
- func (w *NetworkConfigWebhook) SideEffects() admissionregv1.SideEffectClass
- func (w *NetworkConfigWebhook) SyncSetLabelSelector() metav1.LabelSelector
- func (w *NetworkConfigWebhook) TimeoutSeconds() int32
- func (w *NetworkConfigWebhook) Validate(req admissionctl.Request) bool
Constants ¶
const (
WebhookName string = "sdn-migration-validation"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NetworkConfigWebhook ¶
type NetworkConfigWebhook struct {
// contains filtered or unexported fields
}
func (*NetworkConfigWebhook) Authorized ¶
func (w *NetworkConfigWebhook) Authorized(request admissionctl.Request) admissionctl.Response
Authorized will determine if the request is allowed
func (*NetworkConfigWebhook) ClassicEnabled ¶
func (w *NetworkConfigWebhook) ClassicEnabled() bool
func (*NetworkConfigWebhook) Doc ¶
func (w *NetworkConfigWebhook) Doc() string
Doc returns a string for end-customer documentation purposes.
func (*NetworkConfigWebhook) FailurePolicy ¶
func (w *NetworkConfigWebhook) FailurePolicy() admissionregv1.FailurePolicyType
FailurePolicy is how the hook config should react if k8s can't access it
func (*NetworkConfigWebhook) GetURI ¶
func (w *NetworkConfigWebhook) GetURI() string
GetURI returns the URI for the webhook
func (*NetworkConfigWebhook) HypershiftEnabled ¶
func (w *NetworkConfigWebhook) HypershiftEnabled() bool
HypershiftEnabled will return boolean value for hypershift enabled configurations
func (*NetworkConfigWebhook) MatchPolicy ¶
func (w *NetworkConfigWebhook) MatchPolicy() admissionregv1.MatchPolicyType
MatchPolicy mirrors validatingwebhookconfiguration.webhooks[].matchPolicy If it is important to the webhook, be sure to check subResource vs requestSubResource.
func (*NetworkConfigWebhook) Name ¶
func (w *NetworkConfigWebhook) Name() string
Name is the name of the webhook
func (*NetworkConfigWebhook) ObjectSelector ¶
func (w *NetworkConfigWebhook) 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 (*NetworkConfigWebhook) Rules ¶
func (w *NetworkConfigWebhook) Rules() []admissionregv1.RuleWithOperations
Rules is a slice of rules on which this hook should trigger
func (*NetworkConfigWebhook) SideEffects ¶
func (w *NetworkConfigWebhook) 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 (*NetworkConfigWebhook) SyncSetLabelSelector ¶
func (w *NetworkConfigWebhook) SyncSetLabelSelector() metav1.LabelSelector
SyncSetLabelSelector returns the label selector to use in the SyncSet. Return utils.DefaultLabelSelector() to stick with the default
func (*NetworkConfigWebhook) TimeoutSeconds ¶
func (w *NetworkConfigWebhook) TimeoutSeconds() int32
TimeoutSeconds returns an int32 representing how long to wait for this hook to complete
func (*NetworkConfigWebhook) Validate ¶
func (w *NetworkConfigWebhook) Validate(req admissionctl.Request) bool
Validate will validate the incoming request