Documentation ¶
Index ¶
- func NewAdmissionController(name string, path string, wc func(context.Context) context.Context, ...) (*admissionController, error)
- func NewController(ctx context.Context, name, path string, ...) (*controller.Impl, error)
- func NewReconciler(name string, path string, k8sClient kubernetes.Interface, ...) *reconciler
- type Webhook
- func (ac Webhook) Admit(ctx context.Context, request *admissionv1.AdmissionRequest) *admissionv1.AdmissionResponse
- func (ac Webhook) Path() string
- func (r Webhook) Reconcile(ctx context.Context, key string) error
- func (ac Webhook) SetCaCerts(ctx context.Context, obj *corev1.Pod)
- func (ac Webhook) SetEnvVars(ctx context.Context, obj *corev1.Pod)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAdmissionController ¶
func NewController ¶
func NewReconciler ¶
func NewReconciler(name string, path string, k8sClient kubernetes.Interface, mwhlister admissionlisters.MutatingWebhookConfigurationLister, secretlister corelisters.SecretLister, secretName string) *reconciler
Types ¶
type Webhook ¶
type Webhook struct {
// contains filtered or unexported fields
}
func (Webhook) Admit ¶
func (ac Webhook) Admit(ctx context.Context, request *admissionv1.AdmissionRequest) *admissionv1.AdmissionResponse
Click to show internal directories.
Click to hide internal directories.