controllers

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2015 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultOpenshiftDockerURL = "docker-registry.default.svc.cluster.local:5000"
View Source
const NumServiceAccountUpdateRetries = 10

NumServiceAccountUpdateRetries controls the number of times we will retry on conflict errors. This happens when multiple service account controllers update at the same time.

View Source
const ServiceAccountTokenSecretNameKey = "openshift.io/token-secret.name"

Variables

This section is empty.

Functions

This section is empty.

Types

type DockerRegistryServiceController

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

DockerRegistryServiceController manages ServiceToken secrets for Service objects

func NewDockerRegistryServiceController

func NewDockerRegistryServiceController(cl client.Interface, options DockerRegistryServiceControllerOptions) *DockerRegistryServiceController

NewDockerRegistryServiceController returns a new *DockerRegistryServiceController.

func (*DockerRegistryServiceController) Run

Runs controller loops and returns immediately

func (*DockerRegistryServiceController) Stop

Stop gracefully shuts down this controller

type DockerRegistryServiceControllerOptions

type DockerRegistryServiceControllerOptions struct {
	// Resync is the time.Duration at which to fully re-list services.
	// If zero, re-list will be delayed as long as possible
	Resync time.Duration

	RegistryNamespace   string
	RegistryServiceName string

	DefaultDockerURL string

	DockercfgController *DockercfgController
}

DockerRegistryServiceControllerOptions contains options for the DockerRegistryServiceController

type DockercfgController

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

DockercfgController manages dockercfg secrets for ServiceAccount objects

func NewDockercfgController

func NewDockercfgController(cl client.Interface, options DockercfgControllerOptions) *DockercfgController

NewDockercfgController returns a new *DockercfgController.

func (*DockercfgController) Run

func (e *DockercfgController) Run()

Runs controller loops and returns immediately

func (*DockercfgController) SetDockerURL

func (e *DockercfgController) SetDockerURL(newDockerURL string)

func (*DockercfgController) Stop

func (e *DockercfgController) Stop()

Stop gracefully shuts down this controller

type DockercfgControllerOptions

type DockercfgControllerOptions struct {
	// Resync is the time.Duration at which to fully re-list service accounts.
	// If zero, re-list will be delayed as long as possible
	Resync time.Duration

	DefaultDockerURL string
}

DockercfgControllerOptions contains options for the DockercfgController

type DockercfgDeletedController

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

The DockercfgDeletedController watches for service account dockercfg secrets to be deleted It removes the corresponding token secret and service account references.

func NewDockercfgDeletedController

func NewDockercfgDeletedController(cl client.Interface, options DockercfgDeletedControllerOptions) *DockercfgDeletedController

NewDockercfgDeletedController returns a new *DockercfgDeletedController.

func (*DockercfgDeletedController) Run

func (e *DockercfgDeletedController) Run()

Runs controller loops and returns immediately

func (*DockercfgDeletedController) Stop

func (e *DockercfgDeletedController) Stop()

Stop gracefully shuts down this controller

type DockercfgDeletedControllerOptions

type DockercfgDeletedControllerOptions struct {
	// Resync is the time.Duration at which to fully re-list secrets.
	// If zero, re-list will be delayed as long as possible
	Resync time.Duration
}

DockercfgDeletedControllerOptions contains options for the DockercfgDeletedController

type DockercfgTokenDeletedController

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

The DockercfgTokenDeletedController watches for service account tokens to be deleted. On delete, it removes the associated dockercfg secret if it exists.

func NewDockercfgTokenDeletedController

func NewDockercfgTokenDeletedController(cl client.Interface, options DockercfgTokenDeletedControllerOptions) *DockercfgTokenDeletedController

NewDockercfgTokenDeletedController returns a new *DockercfgTokenDeletedController.

func (*DockercfgTokenDeletedController) Run

Runs controller loops and returns immediately

func (*DockercfgTokenDeletedController) Stop

Stop gracefully shuts down this controller

type DockercfgTokenDeletedControllerOptions

type DockercfgTokenDeletedControllerOptions struct {
	// Resync is the time.Duration at which to fully re-list secrets.
	// If zero, re-list will be delayed as long as possible
	Resync time.Duration
}

DockercfgTokenDeletedControllerOptions contains options for the DockercfgTokenDeletedController

Jump to

Keyboard shortcuts

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