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
Click to show internal directories.
Click to hide internal directories.