webhook

package
v0.0.0-...-b7f4efd Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2025 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CertName = "cert"
	KeyName  = "key"

	ValidatingWebhookName = "gko-validating-webhook-configurations"
	MutatingWebhookName   = "gko-mutating-webhook-configurations"
)

Variables

This section is empty.

Functions

func GenerateCerts

func GenerateCerts(ctx context.Context, host string) ([]byte, []byte, []byte)

GenerateCerts venerates a ca with a leaf certificate and key and returns the ca, cert and key as PEM encoded slices.

Types

type Patcher

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

func NewWebhookPatcher

func NewWebhookPatcher() *Patcher

func (*Patcher) CreateSecret

func (p *Patcher) CreateSecret(ctx context.Context, secretName, namespace, host string) error

func (*Patcher) UpdateMutationCaBundle

func (p *Patcher) UpdateMutationCaBundle(ctx context.Context, webhookName, secretName, ns string) error

func (*Patcher) UpdateValidationCaBundle

func (p *Patcher) UpdateValidationCaBundle(ctx context.Context, webhookName, secretName, ns string) error

Jump to

Keyboard shortcuts

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