kubectl

package
v0.0.0-...-1dfa148 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: Apache-2.0 Imports: 16 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 GetCrdNames

func GetCrdNames() ([]string, error)

func GetDeployment

func GetDeployment(name, namespace string) (*v1.Deployment, error)

func GetInferenceService

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

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

func UpdateDeployment(deploy *v1.Deployment) error

func UpdateInferenceService

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