Skip to content

Commit

Permalink
Remove priority set from image-scanner job
Browse files Browse the repository at this point in the history
In order to prevent issues with an enabled priority admission
controller, jobs created by the imagescanner subsystem no longer set it
on the created jobs.
  • Loading branch information
patrickpichler committed Mar 21, 2024
1 parent f28361e commit 35dcf5c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion cmd/controller/state/imagescan/scanner.go
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,6 @@ func scanJobSpec(
},
Spec: corev1.PodSpec{
RestartPolicy: corev1.RestartPolicyNever,
Priority: lo.ToPtr(int32(0)),
ServiceAccountName: cfg.ServiceAccount,
Affinity: &corev1.Affinity{
NodeAffinity: &corev1.NodeAffinity{
Expand Down
1 change: 0 additions & 1 deletion cmd/controller/state/imagescan/scanner_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ func TestScanner(t *testing.T) {
},
Spec: corev1.PodSpec{
RestartPolicy: "Never",
Priority: lo.ToPtr(int32(0)),
Affinity: &corev1.Affinity{
NodeAffinity: &corev1.NodeAffinity{
RequiredDuringSchedulingIgnoredDuringExecution: &corev1.NodeSelector{
Expand Down

0 comments on commit 35dcf5c

Please sign in to comment.