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