Documentation ¶
Index ¶
- Constants
- func Add(mgr manager.Manager) error
- type ReconcileTrial
- func (r *ReconcileTrial) Reconcile(ctx context.Context, request reconcile.Request) (reconcile.Result, error)
- func (r *ReconcileTrial) UpdateTrialStatusCondition(instance *trialsv1beta1.Trial, deployedJobName string, ...)
- func (r *ReconcileTrial) UpdateTrialStatusObservation(instance *trialsv1beta1.Trial) error
Constants ¶
View Source
const ( // For Trials TrialCreatedReason = "TrialCreated" TrialRunningReason = "TrialRunning" TrialSucceededReason = "TrialSucceeded" TrialFailedReason = "TrialFailed" // For Jobs JobCreatedReason = "JobCreated" JobDeletedReason = "JobDeleted" JobSucceededReason = "JobSucceeded" JobFailedReason = "JobFailed" JobRunningReason = "JobRunning" )
View Source
const (
// ControllerName is the controller name.
ControllerName = "trial-controller"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ReconcileTrial ¶
type ReconcileTrial struct { client.Client managerclient.ManagerClient // contains filtered or unexported fields }
ReconcileTrial reconciles a Trial object
func (*ReconcileTrial) Reconcile ¶
func (r *ReconcileTrial) Reconcile(ctx context.Context, request reconcile.Request) (reconcile.Result, error)
Reconcile reads that state of the cluster for a Trial object and makes changes based on the state read and what is in the Trial.Spec +kubebuilder:rbac:groups=trials.kubeflow.org,resources=trials,verbs=get;list;watch;create;update;patch;delete +kubebuilder:rbac:groups=trials.kubeflow.org,resources=trials/status,verbs=get;update;patch
func (*ReconcileTrial) UpdateTrialStatusCondition ¶
func (r *ReconcileTrial) UpdateTrialStatusCondition(instance *trialsv1beta1.Trial, deployedJobName string, jobStatus *trialutil.TrialJobStatus)
UpdateTrialStatusCondition updates Trial status from current deployed Job status
func (*ReconcileTrial) UpdateTrialStatusObservation ¶
func (r *ReconcileTrial) UpdateTrialStatusObservation(instance *trialsv1beta1.Trial) error
Source Files ¶
Click to show internal directories.
Click to hide internal directories.