cert

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2021 License: MIT Imports: 22 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CertOption

type CertOption struct {
	CAName          string
	CAOrganizations []string
	Hosts           []string
	// Deprecated: user Hosts instead
	DNSNames             []string
	CommonName           string
	CertDir              string
	CertValidityDuration time.Duration

	SecretInfo SecretInfo
}

type SecretInfo

type SecretInfo struct {
	Name      string
	Namespace string
	// contains filtered or unexported fields
}

type WebhookCert

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

func NewWebhookCert

func NewWebhookCert(certOpt CertOption, webhooks []WebhookInfo, kubeclient kubernetes.Interface, dyclient dynamic.Interface) *WebhookCert

func (*WebhookCert) EnsureCertReady

func (w *WebhookCert) EnsureCertReady(ctx context.Context) error

type WebhookInfo

type WebhookInfo struct {
	Type WebhookType
	Name string
}

type WebhookType

type WebhookType string
const (
	ValidatingV1      WebhookType = "ValidatingV1"
	ValidatingV1Beta1 WebhookType = "ValidatingV1Beta1"
	MutatingV1        WebhookType = "MutatingV1"
	MutatingV1Beta1   WebhookType = "MutatingV1Beta1"
)

Jump to

Keyboard shortcuts

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