Documentation ¶
Index ¶
Constants ¶
View Source
const (
ControllerName = "challenges-scheduler"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller struct { controllerpkg.Context // contains filtered or unexported fields }
func New ¶
func New(ctx *controllerpkg.Context) *Controller
func (*Controller) Run ¶
func (c *Controller) Run(workers int, stopCh <-chan struct{}) error
func (*Controller) Sync ¶
Sync will process a single ACME challenge resource in order to determine whether it can be scheduled for processing. This is currently extremelly primitive, and **will not** do intelligent things like bumping challenges that are for already expired or nearing expiry certificates to the 'front' of the queue.
This may be something to do in future - we could use a resyncFunc to build a stack of challenges to process, and upon observation of a new challenge, re-evaluate the whole stack.
For now, this function will simply be used to solve https://github.com/jetstack/cert-manager/issues/951
Click to show internal directories.
Click to hide internal directories.