kubectl

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2020 License: Apache-2.0, Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const JOB_CONFIG_LABEL = "createdBy=arena"

Variables

This section is empty.

Functions

func CheckAppConfigMap

func CheckAppConfigMap(name, namespace string) (found bool)

* * * get configMap by using name, namespace *

func CreateAppConfigmap

func CreateAppConfigmap(name, trainingType, namespace, configFileName, appInfoFileName, chartName, chartVersion string) (err error)

* * This name should be <job-type>-<job-name> * create configMap by using name, namespace and configFile *

func DeleteAppConfigMap

func DeleteAppConfigMap(name, namespace string) (err error)

* * * delete configMap by using name, namespace *

func InstallApps

func InstallApps(fileName, namespace string) (output string, err error)

* * Apply kubernetes config to install app * Exec /usr/local/bin/kubectl, [apply -f /tmp/values313606961 --namespace default] *

func LabelAppConfigmap

func LabelAppConfigmap(name, trainingType, namespace, label string) (err error)

func ListAppConfigMaps

func ListAppConfigMaps(clientset *kubernetes.Clientset, namespace string, trainingTypes []string) (jobs []types.TrainingJobInfo, err error)

* * * list configMaps by using namespace *

func SaveAppConfigMapToFile

func SaveAppConfigMapToFile(name, key, namespace string) (fileName string, err error)

* * * save the key of configMap into a file *

func SaveAppInfo

func SaveAppInfo(fileName, namespace string) (configFileName string, err error)

func UninstallApps

func UninstallApps(fileName, namespace string) (err error)

* * Delete kubernetes config to uninstall app * Exec /usr/local/bin/kubectl, [delete -f /tmp/values313606961 --namespace default] *

func UninstallAppsWithAppInfoFile

func UninstallAppsWithAppInfoFile(appInfoFile, namespace string) (output string, err error)

* * Delete kubernetes config to uninstall app * Exec /usr/local/bin/kubectl, [delete -f /tmp/values313606961 --namespace default] *

Types

This section is empty.

Jump to

Keyboard shortcuts

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