kubeflow / mxnet-operator

A Kubernetes operator for mxnet jobs
Apache License 2.0
53 stars 34 forks source link

how to create a mxjob in go? #51

Closed yangwenhuan closed 5 years ago

gaocegege commented 5 years ago

You need to create the client for MXNetJob then use that client to CRUD the CRD

gaocegege commented 5 years ago

/kind question

yangwenhuan commented 5 years ago

You need to create the client for MXNetJob then use that client to CRUD the CRD

Is there any go api for CRUD the CRD mxjob?

gaocegege commented 5 years ago

https://github.com/kubeflow/mxnet-operator/tree/master/pkg/client/clientset/versioned

gaocegege commented 5 years ago

/close

I am closing it but feel free to comment if you have problems on it.

yangwenhuan commented 5 years ago

https://github.com/kubeflow/mxnet-operator/tree/master/pkg/client/clientset/versioned

Could you offer me the v1alpha1 api version?

gaocegege commented 5 years ago

@yangwenhuan We deprecate v1alpha1, thus do not suggest using that version. But if you still want to use, try https://github.com/kubeflow/mxnet-operator/tree/8b18864a467a0cd9603bbb2a7c1c70185aa7e313/pkg/client/clientset/versioned

yangwenhuan commented 5 years ago

@yangwenhuan We deprecate v1alpha1, thus do not suggest using that version. But if you still want to use, try https://github.com/kubeflow/mxnet-operator/tree/8b18864a467a0cd9603bbb2a7c1c70185aa7e313/pkg/client/clientset/versioned

thanks a lot for your help!