kubectl

package
v0.9.15 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2024 License: Apache-2.0 Imports: 17 Imported by: 6

Documentation

Index

Constants

View Source
const JOB_CONFIG_LABEL = "createdBy=arena"

Variables

This section is empty.

Functions

func AddTrainingJobLabel added in v0.9.14

func AddTrainingJobLabel(job *training.Job, key string, value string) error

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 GetCrdNames added in v0.7.0

func GetCrdNames() ([]string, error)

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 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 PatchOwnerReferenceWithAppInfoFile added in v0.9.6

func PatchOwnerReferenceWithAppInfoFile(name, trainingType, appInfoFile, namespace string) error

PatchOwnerReferenceWithAppInfoFile patch tfjob / pytorchjob ownerReference

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) error

* * 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

Types

This section is empty.

Jump to

Keyboard shortcuts

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