secret

package
v0.0.0-...-f496b69 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2023 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var LoadKubeConfig = clientcmd.Load

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

Functions

This section is empty.

Types

type ClusterStore

type ClusterStore struct {
	RemoteClusters map[string]*RemoteCluster
}

ClusterStore is a collection of clusters

type Controller

type Controller struct {
	Cs *ClusterStore
	// 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,
	updateCallback updateSecretCallback,
	removeCallback removeSecretCallback,
	secretResolverType string) *Controller

NewController returns a new secret controller

func StartSecretController

func StartSecretController(
	ctx context.Context,
	k8s kubernetes.Interface,
	addCallback addSecretCallback,
	updateCallback updateSecretCallback,
	removeCallback removeSecretCallback,
	namespace string,
	secretResolverType string) (*Controller, error)

StartSecretController creates the 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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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