mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-05 23:47:50 +00:00
Make PodTemplateSpec for Job not a pointer, since it's a required field
This commit is contained in:
@@ -89,10 +89,7 @@ func addDefaultingFuncs() {
|
||||
}
|
||||
},
|
||||
func(obj *Job) {
|
||||
var labels map[string]string
|
||||
if obj.Spec.Template != nil {
|
||||
labels = obj.Spec.Template.Labels
|
||||
}
|
||||
labels := obj.Spec.Template.Labels
|
||||
// TODO: support templates defined elsewhere when we support them in the API
|
||||
if labels != nil {
|
||||
if len(obj.Spec.Selector) == 0 {
|
||||
|
||||
Reference in New Issue
Block a user