Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdmissionValidator ¶
type AdmissionValidator struct {
// contains filtered or unexported fields
}
func NewAdmissionValidator ¶
func NewAdmissionValidator(kubernetesClient *k8sinterface.KubernetesApi, objectCache objectcache.ObjectCache, exporter *exporters.HTTPExporter, ruleBindingCache rulebinding.RuleBindingCache) *AdmissionValidator
func (*AdmissionValidator) GetClientset ¶
func (av *AdmissionValidator) GetClientset() kubernetes.Interface
func (*AdmissionValidator) Handles ¶
func (av *AdmissionValidator) Handles(operation admission.Operation) bool
We are implementing the Handles method from the ValidationInterface interface. This method returns true if this admission controller can handle the given operation, we accept all operations.
func (*AdmissionValidator) Validate ¶
func (av *AdmissionValidator) Validate(ctx context.Context, attrs admission.Attributes, o admission.ObjectInterfaces) (err error)
We are implementing the Validate method from the ValidationInterface interface.
type AdmissionWebhookInterface ¶
type AdmissionWebhookInterface interface { // Runs the webhook server until the passed context is cancelled, or it // experiences an internal error. // // Error is always non-nil and will always be one of: // deadline exceeded // context cancelled // or http listen error Run(ctx context.Context) error }
Click to show internal directories.
Click to hide internal directories.