Documentation ¶
Index ¶
- Constants
- Variables
- type NamespaceWebhook
- func (s *NamespaceWebhook) Authorized(request admissionctl.Request) admissionctl.Response
- func (s *NamespaceWebhook) ClassicEnabled() bool
- func (s *NamespaceWebhook) Doc() string
- func (s *NamespaceWebhook) FailurePolicy() admissionregv1.FailurePolicyType
- func (s *NamespaceWebhook) GetURI() string
- func (s *NamespaceWebhook) HypershiftEnabled() bool
- func (s *NamespaceWebhook) MatchPolicy() admissionregv1.MatchPolicyType
- func (s *NamespaceWebhook) Name() string
- func (s *NamespaceWebhook) ObjectSelector() *metav1.LabelSelector
- func (s *NamespaceWebhook) Rules() []admissionregv1.RuleWithOperations
- func (s *NamespaceWebhook) SideEffects() admissionregv1.SideEffectClass
- func (s *NamespaceWebhook) SyncSetLabelSelector() metav1.LabelSelector
- func (s *NamespaceWebhook) TimeoutSeconds() int32
- func (s *NamespaceWebhook) Validate(req admissionctl.Request) bool
Constants ¶
View Source
const (
WebhookName string = "namespace-validation"
)
Variables ¶
View Source
var (
BadNamespaceRe = regexp.MustCompile(badNamespace)
)
exported vars to be used across packages
Functions ¶
This section is empty.
Types ¶
type NamespaceWebhook ¶
type NamespaceWebhook struct {
// contains filtered or unexported fields
}
NamespaceWebhook validates a Namespace change
func (*NamespaceWebhook) Authorized ¶
func (s *NamespaceWebhook) Authorized(request admissionctl.Request) admissionctl.Response
Authorized implements Webhook interface
func (*NamespaceWebhook) ClassicEnabled ¶
func (s *NamespaceWebhook) ClassicEnabled() bool
func (*NamespaceWebhook) Doc ¶
func (s *NamespaceWebhook) Doc() string
func (*NamespaceWebhook) FailurePolicy ¶
func (s *NamespaceWebhook) FailurePolicy() admissionregv1.FailurePolicyType
FailurePolicy implements Webhook interface
func (*NamespaceWebhook) GetURI ¶
func (s *NamespaceWebhook) GetURI() string
GetURI implements Webhook interface
func (*NamespaceWebhook) HypershiftEnabled ¶
func (s *NamespaceWebhook) HypershiftEnabled() bool
func (*NamespaceWebhook) MatchPolicy ¶
func (s *NamespaceWebhook) MatchPolicy() admissionregv1.MatchPolicyType
MatchPolicy implements Webhook interface
func (*NamespaceWebhook) Name ¶
func (s *NamespaceWebhook) Name() string
Name implements Webhook interface
func (*NamespaceWebhook) ObjectSelector ¶
func (s *NamespaceWebhook) ObjectSelector() *metav1.LabelSelector
ObjectSelector implements Webhook interface
func (*NamespaceWebhook) Rules ¶
func (s *NamespaceWebhook) Rules() []admissionregv1.RuleWithOperations
Rules implements Webhook interface
func (*NamespaceWebhook) SideEffects ¶
func (s *NamespaceWebhook) SideEffects() admissionregv1.SideEffectClass
SideEffects implements Webhook interface
func (*NamespaceWebhook) SyncSetLabelSelector ¶
func (s *NamespaceWebhook) SyncSetLabelSelector() metav1.LabelSelector
SyncSetLabelSelector returns the label selector to use in the SyncSet.
func (*NamespaceWebhook) TimeoutSeconds ¶
func (s *NamespaceWebhook) TimeoutSeconds() int32
TimeoutSeconds implements Webhook interface
func (*NamespaceWebhook) Validate ¶
func (s *NamespaceWebhook) Validate(req admissionctl.Request) bool
Validate - Make sure we're working with a well-formed Admission Request object
Click to show internal directories.
Click to hide internal directories.