utils

package
v0.0.0-...-ca7731e Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2016 License: Apache-2.0 Imports: 9 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteConfigMapGroups

func DeleteConfigMapGroups(cm map[string]string, deleteCms map[string]struct{}) map[string]string

DeleteConfigMapGroups deletes all configmap groups defined in deleteCms map

func Filter

func Filter(nodeList *api.NodeList, f func(api.Node) bool) []api.Node

Filter uses the input function f to filter the given node list, and return the filtered nodes

func GetConfigMapGroups

func GetConfigMapGroups(cm map[string]string) sets.String

GetConfigMapGroups gets all the groups in the keys The loadbalancer Configmap has the form of k -> groupName.configKey v -> configValue

func GetNodeHostIP

func GetNodeHostIP(node api.Node) (*string, error)

func GetPoolNodePortMap

func GetPoolNodePortMap(client *unversioned.Client, configMapNamespace string, configMapLabelKey, configMapLabelValue string) map[string]int

GetPoolNodePortMap fetches all the configmaps and returns a map of loadbalancer pool to node port

func GetResourceName

func GetResourceName(resourceType string, names ...string) string

GetResourceName returns given args seperated by hypen

func GetUpdatedConfigMapGroups

func GetUpdatedConfigMapGroups(m1, m2 map[string]string) sets.String

GetUpdatedConfigMapGroups returns a set of the diff between two configmaps.

func GetUserConfigMaps

func GetUserConfigMaps(kubeClient *unversioned.Client, configLabelKey, configLabelValue, namespace string) map[string]struct{}

GetUserConfigMaps gets list of all user configmaps

func MapKeys

func MapKeys(m map[string]string) []string

MapKeys return keys of a map

func NodeReady

func NodeReady(node api.Node) bool

NodeReady returns true if the given node is READY

Types

This section is empty.

Jump to

Keyboard shortcuts

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