Skip to content

Commit

Permalink
Remove labels from ImageJob PodTemplateSpec
Browse files Browse the repository at this point in the history
Signed-off-by: Patrick von Steht <[email protected]>
  • Loading branch information
Patrick von Steht committed Mar 27, 2024
1 parent ff46160 commit 5cde3b4
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 16 deletions.
8 changes: 0 additions & 8 deletions controllers/imagecollector/imagecollector_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -323,15 +323,7 @@ func (r *Reconciler) createImageJob(ctx context.Context) (ctrl.Result, error) {
pullSecrets = append(pullSecrets, corev1.LocalObjectReference{Name: secret})
}

labels := map[string]string{}
for k, v := range mgrCfg.AdditionalPodLabels {
labels[k] = v
}

jobTemplate := corev1.PodTemplateSpec{
ObjectMeta: metav1.ObjectMeta{
Labels: labels,
},
Spec: corev1.PodSpec{
Volumes: []corev1.Volume{
{
Expand Down
8 changes: 0 additions & 8 deletions controllers/imagelist/imagelist_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -291,15 +291,7 @@ func (r *Reconciler) handleImageListEvent(ctx context.Context, imageList *eraser
pullSecrets = append(pullSecrets, corev1.LocalObjectReference{Name: secret})
}

labels := map[string]string{}
for k, v := range eraserConfig.Manager.AdditionalPodLabels {
labels[k] = v
}

jobTemplate := corev1.PodTemplateSpec{
ObjectMeta: metav1.ObjectMeta{
Labels: labels,
},
Spec: corev1.PodSpec{
Volumes: []corev1.Volume{
{
Expand Down

0 comments on commit 5cde3b4

Please sign in to comment.