controller

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2017 License: MIT Imports: 11 Imported by: 2 modules, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller struct {
	Client kubernetes.Interface
}

func NewController

func NewController(client kubernetes.Interface) *Controller

func (*Controller) EnsureConfigMap

func (c *Controller) EnsureConfigMap(namespace, configMapName string) error

func (*Controller) GenerateConfig

func (c *Controller) GenerateConfig(ingresses ...extensions.Ingress) *armor.Armor

func (*Controller) GetIngresses

func (c *Controller) GetIngresses() ([]extensions.Ingress, error)

func (*Controller) GetNodeIPs

func (c *Controller) GetNodeIPs() ([]string, error)

func (*Controller) UpdateDaemonSet

func (c *Controller) UpdateDaemonSet(daemonSet *extensions.DaemonSet, config *armor.Armor) (*extensions.DaemonSet, error)

TODO(linki): tests with different namespace don't fail ?? TODO(linki): pods do not get updated correctly

func (*Controller) UpdateDaemonSetByName

func (c *Controller) UpdateDaemonSetByName(namespace string, daemonSetName string, config *armor.Armor) (*extensions.DaemonSet, error)

func (*Controller) UpdateDeployment

func (c *Controller) UpdateDeployment(deployment *extensions.Deployment, config *armor.Armor) error

TODO(linki): tests with different namespace don't fail ??

func (*Controller) UpdateDeploymentByName

func (c *Controller) UpdateDeploymentByName(namespace string, deploymentName string, config *armor.Armor) error

func (*Controller) UpdateIngressLoadBalancers

func (c *Controller) UpdateIngressLoadBalancers(ingresses []extensions.Ingress, IPs ...string) error

func (*Controller) UpdatePodsByLabelSelector

func (c *Controller) UpdatePodsByLabelSelector(namespace string, selector labels.Selector, config *armor.Armor) error

func (*Controller) WriteConfigToConfigMap

func (c *Controller) WriteConfigToConfigMap(config *armor.Armor, configMap *v1.ConfigMap, key string) error

func (*Controller) WriteConfigToConfigMapByName

func (c *Controller) WriteConfigToConfigMapByName(config *armor.Armor, namespace, configMapName, key string) error

func (*Controller) WriteConfigToWriter

func (c *Controller) WriteConfigToWriter(config *armor.Armor, writer io.Writer) error

Jump to

Keyboard shortcuts

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