controller

package
v0.0.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetConfigMapForProxy

func GetConfigMapForProxy(cmLister corev1listers.ConfigMapLister, p *v1alpha1.MemcachedProxy) (*corev1.ConfigMap, error)

GetConfigMapForProxy returns the configmap owned by the proxy or an error if multiple are found.

func GetConfigMapsForProxy

func GetConfigMapsForProxy(cmLister corev1listers.ConfigMapLister, p *v1alpha1.MemcachedProxy) ([]*corev1.ConfigMap, error)

GetConfigMapsForProxy returns all configmaps owned by the proxy

func GetDeploymentsForProxy

func GetDeploymentsForProxy(dLister v1beta1listers.DeploymentLister, p *v1alpha1.MemcachedProxy) ([]*v1beta1.Deployment, error)

GetDeploymentsForProxy returns all configmaps owned by the proxy

func GetProxyServiceName

func GetProxyServiceName(p *v1alpha1.MemcachedProxy) string

GetProxyServiceName returns the name of the proxy service for the given proxy

func GetProxyServiceSelector

func GetProxyServiceSelector(p *v1alpha1.MemcachedProxy) map[string]string

GetProxyServiceSelector returns labels used by the proxy service's selector

func MakeName

func MakeName(prefix string, hashValues []string) string

MakeName creates an object name (usually Pod) by appending the given prefix to a hash of the given values (such as another object's UID).

func NewProxyOwnerRef

func NewProxyOwnerRef(c *v1alpha1.MemcachedProxy) *metav1.OwnerReference

NewProxyOwnerRef returns a new OwnerReference referencing the given proxy.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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