webhook

package
v0.0.0-...-e048679 Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 License: Apache-2.0 Imports: 4 Imported by: 2

Documentation

Index

Constants

View Source
const (
	FlagCertificateDirectory   = "certs-dir"
	FlagCertificateFileName    = "cert"
	FlagCertificateKeyFileName = "cert-key"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

type Builder struct {
	// contains filtered or unexported fields
}

func NewWebhookServerBuilder

func NewWebhookServerBuilder() Builder

func (Builder) GetOptions

func (builder Builder) GetOptions() webhook.Options

func (Builder) GetWebhookServer

func (builder Builder) GetWebhookServer() webhook.Server

func (Builder) LoadCertOptionsFromFlag

func (builder Builder) LoadCertOptionsFromFlag() Builder

func (Builder) Register

func (builder Builder) Register(webhookManager manager.Manager, webhooks map[string]*webhook.Admission)

Register ensures that the secret containing the certificate required for the webhooks is available, and then registers the given webhooks at the webhookManager's webhook server.

func (Builder) SetCertificateWatcher

func (builder Builder) SetCertificateWatcher(watcher certificates.ICertificateWatcher) Builder

func (Builder) SetNamespace

func (builder Builder) SetNamespace(namespace string) Builder

func (Builder) SetPodName

func (builder Builder) SetPodName(podName string) Builder

func (Builder) SetPort

func (builder Builder) SetPort(port int) Builder

type IManager

type IManager manager.Manager

Jump to

Keyboard shortcuts

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