Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ghost opened this issue Jul 23, 2024 · 1 comment

Comments

@ghost
Copy link

ghost commented Jul 23, 2024

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'];

@enudler
Copy link
Collaborator

enudler commented Jul 23, 2024

thanks @itungnt
PR is appreciated.
@kerenfi fyi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant