Documentation ¶
Index ¶
- Constants
- func AddTrainingJobLabel(job *training.Job, key string, value string) error
- 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 GetLWSJob(name, namespace string) (*lwsv1.LeaderWorkerSet, 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
- func UpdateLWSJob(lwsJob *lwsv1.LeaderWorkerSet) error
Constants ¶
const JOB_CONFIG_LABEL = "createdBy=arena"
Variables ¶
This section is empty.
Functions ¶
func AddTrainingJobLabel ¶ added in v0.9.14
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 ¶ added in v0.7.0
func GetDeployment ¶ added in v0.8.9
func GetDeployment(name, namespace string) (*v1.Deployment, error)
func GetInferenceService ¶ added in v0.9.11
func GetInferenceService(name, namespace string) (*kservev1beta1.InferenceService, error)
func GetLWSJob ¶ added in v0.12.0
func GetLWSJob(name, namespace string) (*lwsv1.LeaderWorkerSet, 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 ¶ added in v0.9.6
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 ¶ added in v0.8.9
func UpdateDeployment(deploy *v1.Deployment) error
func UpdateInferenceService ¶ added in v0.9.11
func UpdateInferenceService(inferenceService *kservev1beta1.InferenceService) error
func UpdateLWSJob ¶ added in v0.12.0
func UpdateLWSJob(lwsJob *lwsv1.LeaderWorkerSet) error
Types ¶
This section is empty.