determined icon indicating copy to clipboard operation
determined copied to clipboard

fix: add backwards compatibility for Pods to Jobs for k8s <v1.27 [CM-461]

Open corban-beaird opened this issue 6 months ago • 2 comments

Ticket

CM-461

Description

Older version of Kubernetes don't have the expected label (batch.kubernetes.io/job-name), instead they use job-name. https://kubernetes.io/docs/reference/labels-annotations-taints/#job-name

This PR adds a fallback to handle backwards compatibility in the event that version of k8s being used does not support the latest job label key.

Test Plan

  • CI Passes (Automated testing coming soon)

Checklist

  • [ ] Changes have been manually QA'd
  • [ ] New features have been approved by the corresponding PM
  • [ ] User-facing API changes have the "User-facing API Change" label
  • [ ] Release notes have been added as a separate file under docs/release-notes/ See Release Note for details.
  • [ ] Licenses have been included for new code which was copied and/or modified from any external code

corban-beaird avatar Aug 28 '24 22:08 corban-beaird