cert

package
v0.2.8 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupCertRotator

func SetupCertRotator(mgr manager.Manager, options Options) (chan struct{}, error)

Types

type Options

type Options struct {
	Namespace      string
	SecretName     string
	CertDir        string
	CAName         string
	ServiceName    string
	CAOrganization string
	Webhooks       []WebhookInfo
}

func (*Options) Default

func (option *Options) Default()

type WebhookInfo

type WebhookInfo struct {
	Name string
	Type WebhookType
}

type WebhookType

type WebhookType int

WebhookType is the type of webhook, either validating/mutating webhook, a CRD conversion webhook, or an extension API server

const (
	//ValidatingWebhook indicates the webhook is a ValidatingWebhook
	Validating WebhookType = iota
	//MutingWebhook indicates the webhook is a MutatingWebhook
	Mutating
	//CRDConversionWebhook indicates the webhook is a conversion webhook
	CRDConversion
	//APIServiceWebhook indicates the webhook is an extension API server
	APIService
)

Jump to

Keyboard shortcuts

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