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 ¶
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
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.