Documentation ¶
Index ¶
- Constants
- func CheckAppConfigMap(name, namespace string) (found bool)
- func CreateAppConfigmap(...) (err error)
- func DeleteAppConfigMap(name, namespace string) (err error)
- func GetCrdNames() ([]string, error)
- func GetDeployment(name, namespace string) (*v1.Deployment, error)
- func GetInferenceService(name, namespace string) (*kservev1beta1.InferenceService, 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 PatchOwnerReferenceWithAppInfoFile(name, trainingType, appInfoFile, namespace string) 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) error
- func UpdateDeployment(deploy *v1.Deployment) error
- func UpdateInferenceService(inferenceService *kservev1beta1.InferenceService) 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 GetCrdNames ¶
func GetDeployment ¶
func GetDeployment(name, namespace string) (*v1.Deployment, error)
func GetInferenceService ¶
func GetInferenceService(name, namespace string) (*kservev1beta1.InferenceService, error)
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 PatchOwnerReferenceWithAppInfoFile ¶
PatchOwnerReferenceWithAppInfoFile patch tfjob / pytorchjob ownerReference
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] *
func UpdateDeployment ¶
func UpdateDeployment(deploy *v1.Deployment) error
func UpdateInferenceService ¶
func UpdateInferenceService(inferenceService *kservev1beta1.InferenceService) error
Types ¶
This section is empty.