etcdproxy

package
v0.0.0-...-ec11375 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2018 License: Apache-2.0 Imports: 32 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ProxyCertificateExpiryAnnotation contains the certificate expiration date in RFC3339 format.
	ProxyCertificateExpiryAnnotation = "etcd.xmudrii.com/certificate-expiry-date"
	// ProxyCertificateSignedBy contains the common name of the certificate that signed another certificate.
	ProxyCertificateSignedBy = "etcd.xmudrii.com/certificate-signed-by"
)
View Source
const (
	// EtcdStorageDeployed is used as part of the Event reason when an EtcdStorage resource is successfully synced.
	EtcdStorageDeployed = "EtcdStorageDeployed"

	// EtcdStorageDeployFailure is used as part of the Event reason when an EtcdStorage resource is not synced successfully.
	EtcdStorageDeployFailure = "EtcdStorageDeployFailure"

	// CertificatesDeployFailure is used as part of the Event reason when a Certificates are not generated or deployed successfully.
	CertificatesDeployFailure = "CertificatesDeployFailure"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CoreEtcdConfig

type CoreEtcdConfig struct {
	// URLs contains the core etcd addresses.
	URLs []string

	// CAConfigMapName is the name of the ConfigMap in the controller namespace where CA certificates for
	// the core etcd are stored.
	CAConfigMapName string

	// CertSecretName is the name of the Secret in the controller namespace where Client certificate and key for
	// the core etcd are stored.
	CertSecretName string
}

CoreEtcdConfig type is used to wire the core etcd information used by controller to create Deployments.

type EtcdProxyController

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

EtcdProxyController is the controller implementation for EtcdStorage resources

func NewEtcdProxyController

func NewEtcdProxyController(
	kubeclientset kubernetes.Interface,
	etcdProxyClient clientset.Interface,
	deploymentsInformer appsinformers.DeploymentInformer,
	servicesInformer corev1informers.ServiceInformer,
	etcdstorageInformer informers.EtcdStorageInformer,
	config *EtcdProxyControllerConfig) *EtcdProxyController

NewEtcdProxyController returns a new sample controller

func (*EtcdProxyController) Run

func (c *EtcdProxyController) Run(threadiness int, stopCh <-chan struct{}) error

Run will set up the event handlers for types we are interested in, as well as syncing informer caches and starting workers. It will block until stopCh is closed, at which point it will shutdown the workqueue and wait for workers to finish processing their current work items.

type EtcdProxyControllerConfig

type EtcdProxyControllerConfig struct {
	// CoreEtcd contains information needed to wire up Deployments and the core etcd.
	CoreEtcd *CoreEtcdConfig

	// ControllerNamespace is name of namespace where controller is deployed.
	ControllerNamespace string

	// Kubeconfig is the cluster configuration.
	Kubeconfig *restclient.Config

	// ProxyImage is name of the etcd image to be used for etcd-proxy Deployment creation.
	ProxyImage string
}

EtcdProxyControllerConfig type is used to pass information from cli to the controller.

Jump to

Keyboard shortcuts

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