certmanager

package
v3.4.3 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2023 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Overview

Package certmanager provides a controller for creating and managing certificates for VS resources.

Package certmanager provides a controller for creating and managing certificates for VS resources.

Package certmanager provides a controller for creating and managing certificates for VS resources.

Index

Constants

View Source
const (
	// ControllerName is the name of the certmanager controller
	ControllerName = "vs-cm-shim"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CmController

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

CmController watches certificate and virtual server resources, and creates/ updates certificates for VS resources as required, and VS resources when certificate objects are created/ updated

func NewCmController

func NewCmController(opts *CmOpts) *CmController

NewCmController creates a new CmController

func (*CmController) AddNewNamespacedInformer

func (c *CmController) AddNewNamespacedInformer(ns string)

AddNewNamespacedInformer adds watchers for a new namespace

func (*CmController) RemoveNamespacedInformer

func (c *CmController) RemoveNamespacedInformer(ns string)

RemoveNamespacedInformer removes watchers for a namespace we are no longer watching

func (*CmController) Run

func (c *CmController) Run(stopCh <-chan struct{})

Run will set up the event handlers for types we are interested in, as well as syncing informer caches and starting workers. It will block until stopCh is closed, at which point it will shutdown the workqueue and wait for workers to finish processing their current work items.

type CmOpts

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

CmOpts is the options required for building the CmController

func BuildOpts

func BuildOpts(ctx context.Context, kc *rest.Config, cl kubernetes.Interface, ns []string, er record.EventRecorder, vsc k8s_nginx.Interface, idn bool) *CmOpts

BuildOpts builds a CmOpts from the given parameters

type SyncFn

type SyncFn func(context.Context, *vsapi.VirtualServer) error

SyncFn is the reconciliation function passed to cert manager VS controller.

func SyncFnFor

func SyncFnFor(
	rec record.EventRecorder,
	cmClient clientset.Interface,
	ig map[string]*namespacedInformer,
) SyncFn

SyncFnFor contains logic to reconcile VirtualServer objects.

Reconciling a VirtualServer object with respect to Certificates means looking at its annotations and creating a Certificate with matching DNS names and secretNames from the TLS configuration of the VirtualServer object.

Directories

Path Synopsis
nolint
nolint

Jump to

Keyboard shortcuts

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