You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 12, 2023. It is now read-only.
This repo contains the libraries for writing a custom job operators such as tf-operator and pytorch-operator.
To write a custom operator, user need to do following steps
Define job crd and reuse common API. Check test_job for full example.
import (
commonv1 "github.com/kubeflow/common/pkg/apis/common/v1"
)
// reuse commonv1 api in your type.goRunPolicy*commonv1.RunPolicy`json:"runPolicy,omitempty"`TestReplicaSpecsmap[TestReplicaType]*commonv1.ReplicaSpec`json:"testReplicaSpecs"`
interface.go: the interfaces to be implemented by custom controllers.
controller.go: the main JobController that contains the ReconcileJobs API method to be invoked by user. This is the entrypoint of
the JobController logic. The rest of the code under job_controller/ folder contains the core logic for the JobController to work, such as creating and managing worker pods, services, etc.
About
Common APIs and libraries shared by other Kubeflow operator repositories.