add delete precondition
This commit is contained in:
@@ -27,6 +27,7 @@ import (
|
||||
fields "k8s.io/kubernetes/pkg/fields"
|
||||
labels "k8s.io/kubernetes/pkg/labels"
|
||||
runtime "k8s.io/kubernetes/pkg/runtime"
|
||||
types "k8s.io/kubernetes/pkg/types"
|
||||
intstr "k8s.io/kubernetes/pkg/util/intstr"
|
||||
)
|
||||
|
||||
@@ -140,6 +141,7 @@ func init() {
|
||||
DeepCopy_api_PodTemplate,
|
||||
DeepCopy_api_PodTemplateList,
|
||||
DeepCopy_api_PodTemplateSpec,
|
||||
DeepCopy_api_Preconditions,
|
||||
DeepCopy_api_PreferredSchedulingTerm,
|
||||
DeepCopy_api_Probe,
|
||||
DeepCopy_api_RBDVolumeSource,
|
||||
@@ -617,6 +619,15 @@ func DeepCopy_api_DeleteOptions(in DeleteOptions, out *DeleteOptions, c *convers
|
||||
} else {
|
||||
out.GracePeriodSeconds = nil
|
||||
}
|
||||
if in.Preconditions != nil {
|
||||
in, out := in.Preconditions, &out.Preconditions
|
||||
*out = new(Preconditions)
|
||||
if err := DeepCopy_api_Preconditions(*in, *out, c); err != nil {
|
||||
return err
|
||||
}
|
||||
} else {
|
||||
out.Preconditions = nil
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
@@ -2247,6 +2258,21 @@ func DeepCopy_api_PodTemplateSpec(in PodTemplateSpec, out *PodTemplateSpec, c *c
|
||||
return nil
|
||||
}
|
||||
|
||||
func DeepCopy_api_Preconditions(in Preconditions, out *Preconditions, c *conversion.Cloner) error {
|
||||
if in.UID != nil {
|
||||
in, out := in.UID, &out.UID
|
||||
*out = new(types.UID)
|
||||
if newVal, err := c.DeepCopy(*in); err != nil {
|
||||
return err
|
||||
} else {
|
||||
**out = newVal.(types.UID)
|
||||
}
|
||||
} else {
|
||||
out.UID = nil
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func DeepCopy_api_PreferredSchedulingTerm(in PreferredSchedulingTerm, out *PreferredSchedulingTerm, c *conversion.Cloner) error {
|
||||
out.Weight = in.Weight
|
||||
if err := DeepCopy_api_NodeSelectorTerm(in.Preference, &out.Preference, c); err != nil {
|
||||
|
Reference in New Issue
Block a user