certificates

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2024 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RootKey     = "ca.key"
	RootCert    = "ca.crt"
	RootCertOld = "ca.crt.old"
	ServerKey   = "tls.key"
	ServerCert  = "tls.crt"
)
View Source
const (
	SuccessDuration = 3 * time.Hour
)

Variables

This section is empty.

Functions

func Add

func Add(mgr manager.Manager, ns string) error

func AddBootstrap

func AddBootstrap(mgr manager.Manager, ns string, cancelMgr context.CancelFunc) error

Types

type Certs

type Certs struct {
	Now time.Time

	SrcData map[string][]byte
	Data    map[string][]byte

	Domain string
	// contains filtered or unexported fields
}

Certs handles creation and renewal of CA and SSL/TLS server certificates.

func (*Certs) ValidateCerts

func (cs *Certs) ValidateCerts() error

ValidateCerts checks for certificates and keys on cs.SrcData and renews them if needed. The existing (or new) certificates will be stored on cs.Data.

type WebhookCertificateController

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

func (*WebhookCertificateController) Reconcile

func (controller *WebhookCertificateController) Reconcile(ctx context.Context, request reconcile.Request) (reconcile.Result, error)

Jump to

Keyboard shortcuts

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