Documentation ¶
Index ¶
- Constants
- type HiveOwnershipWebhook
- func (s *HiveOwnershipWebhook) Authorized(request admissionctl.Request) admissionctl.Response
- func (s *HiveOwnershipWebhook) Doc() string
- func (s *HiveOwnershipWebhook) FailurePolicy() admissionregv1.FailurePolicyType
- func (s *HiveOwnershipWebhook) GetURI() string
- func (s *HiveOwnershipWebhook) MatchPolicy() admissionregv1.MatchPolicyType
- func (s *HiveOwnershipWebhook) Name() string
- func (s *HiveOwnershipWebhook) ObjectSelector() *metav1.LabelSelector
- func (s *HiveOwnershipWebhook) Rules() []admissionregv1.RuleWithOperations
- func (s *HiveOwnershipWebhook) SideEffects() admissionregv1.SideEffectClass
- func (s *HiveOwnershipWebhook) SyncSetLabelSelector() metav1.LabelSelector
- func (s *HiveOwnershipWebhook) TimeoutSeconds() int32
- func (s *HiveOwnershipWebhook) Validate(req admissionctl.Request) bool
Constants ¶
const (
WebhookName string = "hiveownership-validation"
)
const
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HiveOwnershipWebhook ¶
type HiveOwnershipWebhook struct {
// contains filtered or unexported fields
}
HiveOwnershipWebhook denies requests if it made by a customer to manage hive-labeled resources
func (*HiveOwnershipWebhook) Authorized ¶
func (s *HiveOwnershipWebhook) Authorized(request admissionctl.Request) admissionctl.Response
Authorized implements Webhook interface
func (*HiveOwnershipWebhook) Doc ¶
func (s *HiveOwnershipWebhook) Doc() string
Doc documents the hook
func (*HiveOwnershipWebhook) FailurePolicy ¶
func (s *HiveOwnershipWebhook) FailurePolicy() admissionregv1.FailurePolicyType
FailurePolicy implements Webhook interface
func (*HiveOwnershipWebhook) GetURI ¶
func (s *HiveOwnershipWebhook) GetURI() string
GetURI implements Webhook interface
func (*HiveOwnershipWebhook) MatchPolicy ¶
func (s *HiveOwnershipWebhook) MatchPolicy() admissionregv1.MatchPolicyType
MatchPolicy implements Webhook interface
func (*HiveOwnershipWebhook) Name ¶
func (s *HiveOwnershipWebhook) Name() string
Name implements Webhook interface
func (*HiveOwnershipWebhook) ObjectSelector ¶
func (s *HiveOwnershipWebhook) ObjectSelector() *metav1.LabelSelector
ObjectSelector intercepts based on having the label .metadata.labels["hive.openshift.io/managed"] == "true"
func (*HiveOwnershipWebhook) Rules ¶
func (s *HiveOwnershipWebhook) Rules() []admissionregv1.RuleWithOperations
Rules implements Webhook interface
func (*HiveOwnershipWebhook) SideEffects ¶
func (s *HiveOwnershipWebhook) SideEffects() admissionregv1.SideEffectClass
SideEffects implements Webhook interface
func (*HiveOwnershipWebhook) SyncSetLabelSelector ¶
func (s *HiveOwnershipWebhook) SyncSetLabelSelector() metav1.LabelSelector
CustomSelector implements Webhook interface, returning the custom label selector for the syncset, if any
func (*HiveOwnershipWebhook) TimeoutSeconds ¶
func (s *HiveOwnershipWebhook) TimeoutSeconds() int32
TimeoutSeconds implements Webhook interface
func (*HiveOwnershipWebhook) Validate ¶
func (s *HiveOwnershipWebhook) Validate(req admissionctl.Request) bool
Validate is the incoming request even valid?