secretcontroller

package
v0.0.0-...-1a56975 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2019 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CreateInterfaceFromClusterConfig = kube.CreateInterfaceFromClusterConfig

CreateInterfaceFromClusterConfig is a unit test override variable for interface create. DO NOT USE - TEST ONLY.

View Source
var LoadKubeConfig = clientcmd.Load

LoadKubeConfig is a unit test override variable for loading the k8s config. DO NOT USE - TEST ONLY.

View Source
var ValidateClientConfig = clientcmd.Validate

Functions

func StartSecretController

func StartSecretController(k8s kubernetes.Interface,
	addCallback addSecretCallback,
	removeCallback removeSecretCallback,
	namespace string) error

StartSecretController creates the secret controller.

Types

type ClusterStore

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

ClusterStore is a collection of clusters

type Controller

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

Controller is the controller implementation for Secret resources

func NewController

func NewController(
	kubeclientset kubernetes.Interface,
	namespace string,
	cs *ClusterStore,
	addCallback addSecretCallback,
	removeCallback removeSecretCallback) *Controller

NewController returns a new secret controller

func (*Controller) Run

func (c *Controller) Run(stopCh <-chan struct{})

Run starts the controller until it receives a message over stopCh

type RemoteCluster

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

RemoteCluster defines cluster structZZ

Jump to

Keyboard shortcuts

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