need a Job to run
This commit is contained in:
parent
3790f30e29
commit
da8b224cf0
@ -57,6 +57,8 @@ type TargetContainer struct {
|
||||
Steps []Step `json:"steps,omitempty"`
|
||||
// +kubebuilder:default:=/formol-shared
|
||||
SharePath string `json:"sharePath"`
|
||||
// +optional
|
||||
Job []Step `json:"job,omitempty"`
|
||||
}
|
||||
|
||||
type Target struct {
|
||||
|
||||
@ -614,6 +614,13 @@ func (in *TargetContainer) DeepCopyInto(out *TargetContainer) {
|
||||
(*in)[i].DeepCopyInto(&(*out)[i])
|
||||
}
|
||||
}
|
||||
if in.Job != nil {
|
||||
in, out := &in.Job, &out.Job
|
||||
*out = make([]Step, len(*in))
|
||||
for i := range *in {
|
||||
(*in)[i].DeepCopyInto(&(*out)[i])
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TargetContainer.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user