need a Job to run

This commit is contained in:
Jean-Marc ANDRE 2023-02-26 00:43:50 +01:00
parent 3790f30e29
commit da8b224cf0
2 changed files with 9 additions and 0 deletions

View File

@ -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 {

View File

@ -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.