Skip to content

Get job logs failed in k8s 1.27 because pod is no longer labeled with controller-uid #690

Description

Describe the bug

Starting from Kubernetes 1.27, this label controller-uid is deprecated. Kubernetes 1.27 and newer ignore this label and use the prefixed controller-uid label.

This is now using batch.kubernetes.io/controller-uid

https://kubernetes.io/docs/reference/labels-annotations-taints/#controller-uid

To Reproduce
Deploy helm version 1.6.3 to Kubernetes 1.28
Open ui/last_reports and click Logs of any reports

Expected behavior
Logs file downloaded with content

Screenshots
image
image

Version:

  • Predator: 1.6.3
  • Predator-runner: 1.6.2
  • Database: sqlite

Additional context

const controllerUid = job.spec.selector.matchLabels['controller-uid'];

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions