controller

package
v0.0.0-...-0000b31 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2017 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// The Istio secret annotation type
	IstioSecretType = "istio.io/key-and-cert"

	// The ID/name for the certificate chain file.
	CertChainID = "cert-chain.pem"
	// The ID/name for the private key file.
	PrivateKeyID = "key.pem"
	// The ID/name for the CA root certificate file.
	RootCertID = "root-cert.pem"
)

#nosec: disable gas linter

Variables

This section is empty.

Functions

This section is empty.

Types

type SecretController

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

SecretController manages the service accounts' secrets that contains Istio keys and certificates.

func NewSecretController

func NewSecretController(ca ca.CertificateAuthority, core corev1.CoreV1Interface,
	namespace string) *SecretController

NewSecretController returns a pointer to a newly constructed SecretController instance.

func (*SecretController) Run

func (sc *SecretController) Run(stopCh chan struct{})

Run starts the SecretController until a value is sent to stopCh.

type ServiceController

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

ServiceController monitors the service definition changes in a namespace. Callback functions are called whenever there is a new service, a service deleted, or a service updated.

func NewServiceController

func NewServiceController(core corev1.CoreV1Interface, namespace string,
	addFunc, deleteFunc func(*v1.Service),
	updateFunc func(*v1.Service, *v1.Service)) *ServiceController

NewServiceController returns a new ServiceController

func (*ServiceController) Run

func (c *ServiceController) Run(stopCh chan struct{})

Run starts the ServiceController until a value is sent to stopCh. It should only be called once.

Jump to

Keyboard shortcuts

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