mirror of
https://github.com/hanzo-ml/katib.git
synced 2026-09-24 00:31:27 +00:00
* include MetricsUnavailable condition to Complete in Trial It is not easy for users to find why Trial failed when training code output incorrect format logs since the trial-controller sets Succeeded condition with False to Trial if there are unavailable metrics in Katib DB as described in https://github.com/kubeflow/katib/issues/1343. So we also include MetricsUnavailable condition to Complete in Trial. * add gh-actions tasks to verify generated codes * fix gh-actions workflow * when the number of Failed Trials reaches maxTrialCount, experiment-controller sets Failed to Experiment status * fix e2e test * To avoid being set Failed in Experiment status when and is equal to 0, we need to add condition,
470 lines
13 KiB
Go
470 lines
13 KiB
Go
//go:build !ignore_autogenerated
|
|
// +build !ignore_autogenerated
|
|
|
|
/*
|
|
Copyright 2022 The Kubeflow Authors.
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
you may not use this file except in compliance with the License.
|
|
You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
*/
|
|
|
|
// Code generated by deepcopy-gen. DO NOT EDIT.
|
|
|
|
package v1beta1
|
|
|
|
import (
|
|
commonv1beta1 "github.com/kubeflow/katib/pkg/apis/controller/common/v1beta1"
|
|
runtime "k8s.io/apimachinery/pkg/runtime"
|
|
)
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *ConfigMapSource) DeepCopyInto(out *ConfigMapSource) {
|
|
*out = *in
|
|
return
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConfigMapSource.
|
|
func (in *ConfigMapSource) DeepCopy() *ConfigMapSource {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(ConfigMapSource)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *Experiment) DeepCopyInto(out *Experiment) {
|
|
*out = *in
|
|
out.TypeMeta = in.TypeMeta
|
|
in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
|
|
in.Spec.DeepCopyInto(&out.Spec)
|
|
in.Status.DeepCopyInto(&out.Status)
|
|
return
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Experiment.
|
|
func (in *Experiment) DeepCopy() *Experiment {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(Experiment)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
|
|
func (in *Experiment) DeepCopyObject() runtime.Object {
|
|
if c := in.DeepCopy(); c != nil {
|
|
return c
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *ExperimentCondition) DeepCopyInto(out *ExperimentCondition) {
|
|
*out = *in
|
|
in.LastUpdateTime.DeepCopyInto(&out.LastUpdateTime)
|
|
in.LastTransitionTime.DeepCopyInto(&out.LastTransitionTime)
|
|
return
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExperimentCondition.
|
|
func (in *ExperimentCondition) DeepCopy() *ExperimentCondition {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(ExperimentCondition)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *ExperimentList) DeepCopyInto(out *ExperimentList) {
|
|
*out = *in
|
|
out.TypeMeta = in.TypeMeta
|
|
in.ListMeta.DeepCopyInto(&out.ListMeta)
|
|
if in.Items != nil {
|
|
in, out := &in.Items, &out.Items
|
|
*out = make([]Experiment, len(*in))
|
|
for i := range *in {
|
|
(*in)[i].DeepCopyInto(&(*out)[i])
|
|
}
|
|
}
|
|
return
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExperimentList.
|
|
func (in *ExperimentList) DeepCopy() *ExperimentList {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(ExperimentList)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
|
|
func (in *ExperimentList) DeepCopyObject() runtime.Object {
|
|
if c := in.DeepCopy(); c != nil {
|
|
return c
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *ExperimentSpec) DeepCopyInto(out *ExperimentSpec) {
|
|
*out = *in
|
|
if in.Parameters != nil {
|
|
in, out := &in.Parameters, &out.Parameters
|
|
*out = make([]ParameterSpec, len(*in))
|
|
for i := range *in {
|
|
(*in)[i].DeepCopyInto(&(*out)[i])
|
|
}
|
|
}
|
|
if in.Objective != nil {
|
|
in, out := &in.Objective, &out.Objective
|
|
*out = new(commonv1beta1.ObjectiveSpec)
|
|
(*in).DeepCopyInto(*out)
|
|
}
|
|
if in.Algorithm != nil {
|
|
in, out := &in.Algorithm, &out.Algorithm
|
|
*out = new(commonv1beta1.AlgorithmSpec)
|
|
(*in).DeepCopyInto(*out)
|
|
}
|
|
if in.EarlyStopping != nil {
|
|
in, out := &in.EarlyStopping, &out.EarlyStopping
|
|
*out = new(commonv1beta1.EarlyStoppingSpec)
|
|
(*in).DeepCopyInto(*out)
|
|
}
|
|
if in.TrialTemplate != nil {
|
|
in, out := &in.TrialTemplate, &out.TrialTemplate
|
|
*out = new(TrialTemplate)
|
|
(*in).DeepCopyInto(*out)
|
|
}
|
|
if in.ParallelTrialCount != nil {
|
|
in, out := &in.ParallelTrialCount, &out.ParallelTrialCount
|
|
*out = new(int32)
|
|
**out = **in
|
|
}
|
|
if in.MaxTrialCount != nil {
|
|
in, out := &in.MaxTrialCount, &out.MaxTrialCount
|
|
*out = new(int32)
|
|
**out = **in
|
|
}
|
|
if in.MaxFailedTrialCount != nil {
|
|
in, out := &in.MaxFailedTrialCount, &out.MaxFailedTrialCount
|
|
*out = new(int32)
|
|
**out = **in
|
|
}
|
|
if in.MetricsCollectorSpec != nil {
|
|
in, out := &in.MetricsCollectorSpec, &out.MetricsCollectorSpec
|
|
*out = new(commonv1beta1.MetricsCollectorSpec)
|
|
(*in).DeepCopyInto(*out)
|
|
}
|
|
if in.NasConfig != nil {
|
|
in, out := &in.NasConfig, &out.NasConfig
|
|
*out = new(NasConfig)
|
|
(*in).DeepCopyInto(*out)
|
|
}
|
|
return
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExperimentSpec.
|
|
func (in *ExperimentSpec) DeepCopy() *ExperimentSpec {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(ExperimentSpec)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *ExperimentStatus) DeepCopyInto(out *ExperimentStatus) {
|
|
*out = *in
|
|
if in.StartTime != nil {
|
|
in, out := &in.StartTime, &out.StartTime
|
|
*out = (*in).DeepCopy()
|
|
}
|
|
if in.CompletionTime != nil {
|
|
in, out := &in.CompletionTime, &out.CompletionTime
|
|
*out = (*in).DeepCopy()
|
|
}
|
|
if in.LastReconcileTime != nil {
|
|
in, out := &in.LastReconcileTime, &out.LastReconcileTime
|
|
*out = (*in).DeepCopy()
|
|
}
|
|
if in.Conditions != nil {
|
|
in, out := &in.Conditions, &out.Conditions
|
|
*out = make([]ExperimentCondition, len(*in))
|
|
for i := range *in {
|
|
(*in)[i].DeepCopyInto(&(*out)[i])
|
|
}
|
|
}
|
|
in.CurrentOptimalTrial.DeepCopyInto(&out.CurrentOptimalTrial)
|
|
if in.RunningTrialList != nil {
|
|
in, out := &in.RunningTrialList, &out.RunningTrialList
|
|
*out = make([]string, len(*in))
|
|
copy(*out, *in)
|
|
}
|
|
if in.PendingTrialList != nil {
|
|
in, out := &in.PendingTrialList, &out.PendingTrialList
|
|
*out = make([]string, len(*in))
|
|
copy(*out, *in)
|
|
}
|
|
if in.FailedTrialList != nil {
|
|
in, out := &in.FailedTrialList, &out.FailedTrialList
|
|
*out = make([]string, len(*in))
|
|
copy(*out, *in)
|
|
}
|
|
if in.SucceededTrialList != nil {
|
|
in, out := &in.SucceededTrialList, &out.SucceededTrialList
|
|
*out = make([]string, len(*in))
|
|
copy(*out, *in)
|
|
}
|
|
if in.KilledTrialList != nil {
|
|
in, out := &in.KilledTrialList, &out.KilledTrialList
|
|
*out = make([]string, len(*in))
|
|
copy(*out, *in)
|
|
}
|
|
if in.EarlyStoppedTrialList != nil {
|
|
in, out := &in.EarlyStoppedTrialList, &out.EarlyStoppedTrialList
|
|
*out = make([]string, len(*in))
|
|
copy(*out, *in)
|
|
}
|
|
if in.MetricsUnavailableTrialList != nil {
|
|
in, out := &in.MetricsUnavailableTrialList, &out.MetricsUnavailableTrialList
|
|
*out = make([]string, len(*in))
|
|
copy(*out, *in)
|
|
}
|
|
return
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExperimentStatus.
|
|
func (in *ExperimentStatus) DeepCopy() *ExperimentStatus {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(ExperimentStatus)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *FeasibleSpace) DeepCopyInto(out *FeasibleSpace) {
|
|
*out = *in
|
|
if in.List != nil {
|
|
in, out := &in.List, &out.List
|
|
*out = make([]string, len(*in))
|
|
copy(*out, *in)
|
|
}
|
|
return
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FeasibleSpace.
|
|
func (in *FeasibleSpace) DeepCopy() *FeasibleSpace {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(FeasibleSpace)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *GraphConfig) DeepCopyInto(out *GraphConfig) {
|
|
*out = *in
|
|
if in.NumLayers != nil {
|
|
in, out := &in.NumLayers, &out.NumLayers
|
|
*out = new(int32)
|
|
**out = **in
|
|
}
|
|
if in.InputSizes != nil {
|
|
in, out := &in.InputSizes, &out.InputSizes
|
|
*out = make([]int32, len(*in))
|
|
copy(*out, *in)
|
|
}
|
|
if in.OutputSizes != nil {
|
|
in, out := &in.OutputSizes, &out.OutputSizes
|
|
*out = make([]int32, len(*in))
|
|
copy(*out, *in)
|
|
}
|
|
return
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GraphConfig.
|
|
func (in *GraphConfig) DeepCopy() *GraphConfig {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(GraphConfig)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *NasConfig) DeepCopyInto(out *NasConfig) {
|
|
*out = *in
|
|
in.GraphConfig.DeepCopyInto(&out.GraphConfig)
|
|
if in.Operations != nil {
|
|
in, out := &in.Operations, &out.Operations
|
|
*out = make([]Operation, len(*in))
|
|
for i := range *in {
|
|
(*in)[i].DeepCopyInto(&(*out)[i])
|
|
}
|
|
}
|
|
return
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NasConfig.
|
|
func (in *NasConfig) DeepCopy() *NasConfig {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(NasConfig)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *Operation) DeepCopyInto(out *Operation) {
|
|
*out = *in
|
|
if in.Parameters != nil {
|
|
in, out := &in.Parameters, &out.Parameters
|
|
*out = make([]ParameterSpec, len(*in))
|
|
for i := range *in {
|
|
(*in)[i].DeepCopyInto(&(*out)[i])
|
|
}
|
|
}
|
|
return
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Operation.
|
|
func (in *Operation) DeepCopy() *Operation {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(Operation)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *OptimalTrial) DeepCopyInto(out *OptimalTrial) {
|
|
*out = *in
|
|
if in.ParameterAssignments != nil {
|
|
in, out := &in.ParameterAssignments, &out.ParameterAssignments
|
|
*out = make([]commonv1beta1.ParameterAssignment, len(*in))
|
|
copy(*out, *in)
|
|
}
|
|
in.Observation.DeepCopyInto(&out.Observation)
|
|
return
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OptimalTrial.
|
|
func (in *OptimalTrial) DeepCopy() *OptimalTrial {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(OptimalTrial)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *ParameterSpec) DeepCopyInto(out *ParameterSpec) {
|
|
*out = *in
|
|
in.FeasibleSpace.DeepCopyInto(&out.FeasibleSpace)
|
|
return
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ParameterSpec.
|
|
func (in *ParameterSpec) DeepCopy() *ParameterSpec {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(ParameterSpec)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *TrialParameterSpec) DeepCopyInto(out *TrialParameterSpec) {
|
|
*out = *in
|
|
return
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TrialParameterSpec.
|
|
func (in *TrialParameterSpec) DeepCopy() *TrialParameterSpec {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(TrialParameterSpec)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *TrialSource) DeepCopyInto(out *TrialSource) {
|
|
*out = *in
|
|
if in.TrialSpec != nil {
|
|
in, out := &in.TrialSpec, &out.TrialSpec
|
|
*out = (*in).DeepCopy()
|
|
}
|
|
if in.ConfigMap != nil {
|
|
in, out := &in.ConfigMap, &out.ConfigMap
|
|
*out = new(ConfigMapSource)
|
|
**out = **in
|
|
}
|
|
return
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TrialSource.
|
|
func (in *TrialSource) DeepCopy() *TrialSource {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(TrialSource)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *TrialTemplate) DeepCopyInto(out *TrialTemplate) {
|
|
*out = *in
|
|
in.TrialSource.DeepCopyInto(&out.TrialSource)
|
|
if in.TrialParameters != nil {
|
|
in, out := &in.TrialParameters, &out.TrialParameters
|
|
*out = make([]TrialParameterSpec, len(*in))
|
|
copy(*out, *in)
|
|
}
|
|
if in.PrimaryPodLabels != nil {
|
|
in, out := &in.PrimaryPodLabels, &out.PrimaryPodLabels
|
|
*out = make(map[string]string, len(*in))
|
|
for key, val := range *in {
|
|
(*out)[key] = val
|
|
}
|
|
}
|
|
return
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TrialTemplate.
|
|
func (in *TrialTemplate) DeepCopy() *TrialTemplate {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(TrialTemplate)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|