FederatedJob: to add template in FederatedJobSpec
-
/*
Copyright 2018 The Kubernetes Authors.
@@ -15,7 +14,6 @@ See the License for the specific language governing permissions and
limitations under the License.
*/
-
package v1alpha1
import (
@@ -24,6 +22,7 @@ import (
"k8s.io/apimachinery/pkg/runtime"
"k8s.io/apiserver/pkg/endpoints/request"
+ batchv1 "k8s.io/api/batch/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/util/validation/field"
@@ -46,6 +45,7 @@ type FederatedJob struct {
// FederatedJobSpec defines the desired state of FederatedJob
type FederatedJobSpec struct {
+ Template batchv1.Job `json:"template,omitempty"`
}
// FederatedJobStatus defines the observed state of FederatedJob
