StatCan / openmpp

Implementing the OpenM++ microsimulation framework as a Kubernetes service on the StatCan cloud.
0 stars 1 forks source link

Implement MPI job spec programmatically #41

Closed chuckbelisle closed 9 months ago

chuckbelisle commented 10 months ago

Dependant on: #45

jacek-dudek commented 10 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

jacek-dudek commented 10 months ago

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.

jacek-dudek commented 9 months ago

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.

jacek-dudek commented 9 months ago

Link to the issue branch: https://github.com/StatCan/openmpp/tree/openmpp-41

jacek-dudek commented 9 months ago

I'm still trying to grok how to interact with the clientset object in-code.