webhook

package
v0.7.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 21, 2026 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Overview

Package webhook is used for the validating admission webhook.

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
	KynomeshClient v1alpha1.KynomeshV1alpha1Interface

	Options  Options
	Handlers map[schema.GroupVersionKind]runtime.Object

	Logger *zap.SugaredLogger
}

AdmissionController is the validating admission webhook controller

func (*AdmissionController) Run

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     string
	ServiceName     string
	DeploymentName  string
	ClusterRoleName string
	SecretName      string
	Namespace       string
	Port            int
	ClientAuth      tls.ClientAuthType
}

Options is the webhook configuration

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL