Documentation ¶
Index ¶
- Constants
- func CheckAppConfigMap(name, namespace string) (found bool)
- func CreateAppConfigmap(...) (err error)
- func DeleteAppConfigMap(name, namespace string) (err error)
- func InstallApps(fileName, namespace string) (output string, err error)
- func LabelAppConfigmap(name, trainingType, namespace, label string) (err error)
- func ListAppConfigMaps(clientset *kubernetes.Clientset, namespace string, trainingTypes []string) (jobs []types.TrainingJobInfo, err error)
- func SaveAppConfigMapToFile(name, key, namespace string) (fileName string, err error)
- func SaveAppInfo(fileName, namespace string) (configFileName string, err error)
- func UninstallApps(fileName, namespace string) (err error)
- func UninstallAppsWithAppInfoFile(appInfoFile, namespace string) (output string, err error)
Constants ¶
const JOB_CONFIG_LABEL = "createdBy=arena"
Variables ¶
This section is empty.
Functions ¶
func CheckAppConfigMap ¶
* * * 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 ¶
* * * delete configMap by using name, namespace *
func InstallApps ¶
* * Apply kubernetes config to install app * Exec /usr/local/bin/kubectl, [apply -f /tmp/values313606961 --namespace default] *
func LabelAppConfigmap ¶
func ListAppConfigMaps ¶
func ListAppConfigMaps(clientset *kubernetes.Clientset, namespace string, trainingTypes []string) (jobs []types.TrainingJobInfo, err error)
* * * list configMaps by using namespace *
func SaveAppConfigMapToFile ¶
* * * save the key of configMap into a file *
func SaveAppInfo ¶
func UninstallApps ¶
* * Delete kubernetes config to uninstall app * Exec /usr/local/bin/kubectl, [delete -f /tmp/values313606961 --namespace default] *
func UninstallAppsWithAppInfoFile ¶
* * Delete kubernetes config to uninstall app * Exec /usr/local/bin/kubectl, [delete -f /tmp/values313606961 --namespace default] *
Types ¶
This section is empty.