webhook

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2023 License: Apache-2.0 Imports: 7 Imported by: 1

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 NewWebhookBuilder

func NewWebhookBuilder() Builder

func (Builder) GetManagerProvider

func (builder Builder) GetManagerProvider() Provider

func (Builder) Run

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

Run 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) SetManagerProvider

func (builder Builder) SetManagerProvider(provider Provider) Builder

func (Builder) SetNamespace

func (builder Builder) SetNamespace(namespace string) Builder

func (Builder) SetPodName

func (builder Builder) SetPodName(podName string) Builder

type IManager

type IManager manager.Manager

type Provider

type Provider interface {
	SetupWebhookServer(mgr manager.Manager)
}

type WebhookProvider

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

func NewWebhookManagerProvider

func NewWebhookManagerProvider(certificateDirectory string, keyFileName string, certificateFileName string) WebhookProvider

func (WebhookProvider) SetupWebhookServer

func (provider WebhookProvider) SetupWebhookServer(mgr manager.Manager)

Jump to

Keyboard shortcuts

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