Skip to content

Commit be4bc3f

Browse files
committed
The required-scc annotation should be on the template that gets applied to the pod itself, not the job.
1 parent f935e9e commit be4bc3f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/resource/prunercronjob.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ done
175175
},
176176
}
177177
cj.Spec.JobTemplate.Labels = map[string]string{"created-by": gcj.GetName()}
178-
cj.Spec.JobTemplate.Annotations = map[string]string{securityv1.RequiredSCCAnnotation: "restricted-v2"}
178+
cj.Spec.JobTemplate.Spec.Template.Annotations = map[string]string{securityv1.RequiredSCCAnnotation: "restricted-v2"}
179179
return cj, nil
180180
}
181181

0 commit comments

Comments
 (0)