selfsignedsecret

package
v0.6.7 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2022 License: Apache-2.0 Imports: 15 Imported by: 2

Documentation

Overview

Package selfsignedsecret installs a self-signed CA, RSA key, and TLS certificate to an arbitrary secret. It then ensures the CA and certificate remain valid for the lifetime of the secret.

It is inspired by Knative's webhook package (https://github.com/knative/pkg/tree/master/webhook) but does not depend on the rest of the Knative ecosystem, instead integrating with controller-runtime.

This package exposes a method, AddReconcilerToManager, that should be used with an already-instantiated controller-runtime Manager to add this automation to your existing controller.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddReconcilerToManager

func AddReconcilerToManager(mgr manager.Manager, secretKey client.ObjectKey, organization string, dnsNames ...string) error

Types

type Reconciler

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

func NewReconciler

func NewReconciler(cl client.Client, organization string, dnsNames ...string) *Reconciler

func (*Reconciler) Reconcile

func (r *Reconciler) Reconcile(ctx context.Context, req reconcile.Request) (res reconcile.Result, err error)

Jump to

Keyboard shortcuts

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