Documentation
¶
Index ¶
- func CheckFunctionExistence(client client.Interface, functions []string, fnNamespace string) (err error)
- func GetApplicationUrl(selector string, kubeContext string) (string, error)
- func GetFissionNamespace() string
- func GetKubernetesClient(kubeContext string) (*restclient.Config, *kubernetes.Clientset, error)
- func GetResourceReqs(input cli.Input, resReqs *v1.ResourceRequirements) (*v1.ResourceRequirements, error)
- func GetServer(input cli.Input) (c client.Interface, err error)
- func GetServerURL(input cli.Input) (serverUrl string, err error)
- func GetSpecDir(input cli.Input) string
- func GetVersion(client client.Interface) info.Versions
- func KubifyName(old string) string
- func SetupPortForward(namespace, labelSelector string, kubeContext string) (string, error)
- func UpdateMapFromStringSlice(dataMap *map[string]string, params []string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckFunctionExistence ¶
func CheckFunctionExistence(client client.Interface, functions []string, fnNamespace string) (err error)
given a list of functions, this checks if the functions actually exist on the cluster
func GetApplicationUrl ¶
func GetFissionNamespace ¶
func GetFissionNamespace() string
func GetKubernetesClient ¶
func GetKubernetesClient(kubeContext string) (*restclient.Config, *kubernetes.Clientset, error)
GetKubernetesClient builds a new kubernetes client. If the KUBECONFIG environment variable is empty or doesn't exist, ~/.kube/config is used for the kube config path
func GetResourceReqs ¶ added in v1.7.0
func GetResourceReqs(input cli.Input, resReqs *v1.ResourceRequirements) (*v1.ResourceRequirements, error)
func GetServerURL ¶ added in v1.8.0
func GetSpecDir ¶ added in v1.7.0
func KubifyName ¶
KubifyName make a kubernetes compliant name out of an arbitrary string
func SetupPortForward ¶
Port forward a free local port to a pod on the cluster. The pod is found in the specified namespace by labelSelector. The pod's port is found by looking for a service in the same namespace and using its targetPort. Once the port forward is started, wait for it to start accepting connections before returning.
Types ¶
This section is empty.