Help us shape the future of Go! Take the 2026 Go Developer Survey

scheduler

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2018 License: Apache-2.0 Imports: 16 Imported by: 0

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

func (c *Controller) Sync(ctx context.Context, ch *cmapi.Challenge) error

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

Jump to

Keyboard shortcuts

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