Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdmissionController ¶
type AdmissionController struct { Client kubernetes.Interface EventBusClient eventbusclient.Interface EventSourceClient eventsourceclient.Interface SensorClient sensorclient.Interface Options Options Handlers map[schema.GroupVersionKind]runtime.Object Logger *zap.SugaredLogger }
AdmissionController implements a webhook for validation
func (*AdmissionController) Run ¶
func (ac *AdmissionController) Run(ctx context.Context) error
Run implements the admission controller run loop.
func (*AdmissionController) ServeHTTP ¶
func (ac *AdmissionController) ServeHTTP(w http.ResponseWriter, r *http.Request)
ServeHTTP implements the validating admission webhook
type Options ¶
type Options struct { // WebhookName is the name of the webhook WebhookName string // ServiceName is the service name of the webhook. ServiceName string // DeploymentName is the deployment name of the webhook. DeploymentName string // ClusterRoleName is the cluster role name of the webhook ClusterRoleName string // SecretName is the name of k8s secret that contains the webhook // server key/cert and corresponding CA cert that signed them. The // server key/cert are used to serve the webhook and the CA cert // is provided to k8s apiserver during admission controller // registration. SecretName string // Namespace is the namespace in which everything above lives Namespace string // Port where the webhook is served. Per k8s admission // registration requirements this should be 443 unless there is // only a single port for the service. Port int // ClientAuthType declares the policy the webhook server will follow for // TLS Client Authentication. // The default value is tls.NoClientCert. ClientAuth tls.ClientAuthType }
Options contains the configuration for the webhook
Click to show internal directories.
Click to hide internal directories.