Documentation ¶
Index ¶
- func GetConfigMapForProxy(cmLister corev1listers.ConfigMapLister, p *v1alpha1.MemcachedProxy) (*corev1.ConfigMap, error)
- func GetConfigMapsForProxy(cmLister corev1listers.ConfigMapLister, p *v1alpha1.MemcachedProxy) ([]*corev1.ConfigMap, error)
- func GetDeploymentsForProxy(dLister v1beta1listers.DeploymentLister, p *v1alpha1.MemcachedProxy) ([]*v1beta1.Deployment, error)
- func GetProxyServiceName(p *v1alpha1.MemcachedProxy) string
- func GetProxyServiceSelector(p *v1alpha1.MemcachedProxy) map[string]string
- func MakeName(prefix string, hashValues []string) string
- func NewProxyOwnerRef(c *v1alpha1.MemcachedProxy) *metav1.OwnerReference
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 ¶
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.
Click to show internal directories.
Click to hide internal directories.