kubernetes: k8s.io/kubernetes/pkg/controller/bootstrap Index | Files

package bootstrap

import "k8s.io/kubernetes/pkg/controller/bootstrap"

Package bootstrap provides automatic processes necessary for bootstraping. This includes managing and expiring tokens along with signing well known configmaps with those tokens.

Index

Package Files

bootstrapsigner.go doc.go tokencleaner.go util.go

type Signer Uses

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

Signer is a controller that signs a ConfigMap with a set of tokens.

func NewSigner Uses

func NewSigner(cl clientset.Interface, secrets informers.SecretInformer, configMaps informers.ConfigMapInformer, options SignerOptions) (*Signer, error)

NewSigner returns a new *Signer.

func (*Signer) Run Uses

func (e *Signer) Run(stopCh <-chan struct{})

Run runs controller loops and returns when they are done

type SignerOptions Uses

type SignerOptions struct {
    // ConfigMapNamespace is the namespace of the ConfigMap
    ConfigMapNamespace string

    // ConfigMapName is the name for the ConfigMap
    ConfigMapName string

    // TokenSecretNamespace string is the namespace for token Secrets.
    TokenSecretNamespace string

    // ConfigMapResynce is the time.Duration at which to fully re-list configmaps.
    // If zero, re-list will be delayed as long as possible
    ConfigMapResync time.Duration

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

SignerOptions contains options for the Signer

func DefaultSignerOptions Uses

func DefaultSignerOptions() SignerOptions

DefaultSignerOptions returns a set of default options for creating a Signer.

type TokenCleaner Uses

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

TokenCleaner is a controller that deletes expired tokens

func NewTokenCleaner Uses

func NewTokenCleaner(cl clientset.Interface, secrets coreinformers.SecretInformer, options TokenCleanerOptions) (*TokenCleaner, error)

NewTokenCleaner returns a new *NewTokenCleaner.

func (*TokenCleaner) Run Uses

func (tc *TokenCleaner) Run(stopCh <-chan struct{})

Run runs controller loops and returns when they are done

type TokenCleanerOptions Uses

type TokenCleanerOptions struct {
    // TokenSecretNamespace string is the namespace for token Secrets.
    TokenSecretNamespace string

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

TokenCleanerOptions contains options for the TokenCleaner

func DefaultTokenCleanerOptions Uses

func DefaultTokenCleanerOptions() TokenCleanerOptions

DefaultTokenCleanerOptions returns a set of default options for creating a TokenCleaner

Package bootstrap imports 21 packages (graph) and is imported by 10 packages. Updated 2019-10-18. Refresh now. Tools for package owners.