webhook

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Overview

Package webhook is used for running a 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
	NumaClient v1alpha1.NumaflowV1alpha1Interface

	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