Documentation ¶
Index ¶
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 ¶
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.