Closed chuckbelisle closed 9 months ago
Here is a subset of the types that will be participating in creating and submitting an mpi job specification in code, and their package import paths:
k8s.io/client-go/rest Config k8s.io/client-go/kubernetes ClientSet k8s.io/api/core/v1 PodTemplateSpec PodSpec Container ResourceRequirements ResourceList k8s.io/apimachinery/pkg/apis/meta/v1 ListOptions GetOptions github.com/kubeflow/training-operator/pkg/apis/kubeflow.org/v1 MPIJobSpec ReplicaSpec RunPolicy
Currently trying to figure out what go language mechanism is used to extend a type definition (DiscoveryClient from k8s.io/client-go/discovery package) with methods that correspond to kubernetes api access endpoints.
I have the in-code mpijob specification figured out. I will try to figure out the appropriate method calls to the mpijob api endpoint for submitting and listing mpijob specs by the end of today to close out the issue. I will be linking to corresponding issue branch in openmpp repo.
Link to the issue branch: https://github.com/StatCan/openmpp/tree/openmpp-41
I'm still trying to grok how to interact with the clientset object in-code.
Dependant on: #45