Commit c4160f4
authored
fix: add-cluster functionality for k8s 1.27 (#715)
## What
In this PR, we are making a simple change to ensure that our CLI
supports adding Kubernetes clusters with version 1.27. The change
involves modifying the way we find the pod owned by a job using the
label.
## Why
These changes are being made to accommodate the changes introduced in
Kubernetes version 1.27. In version 1.27, pods owned by a Job now use
the labels `batch.kubernetes.io/job-name` and
`batch.kubernetes.io/controller-uid`. This is a change from the previous
labels `job-name` and `controller-uid`, which were used for
compatibility. By making this adjustment, we ensure that our CLI is
compatible with Kubernetes 1.27 and can correctly identify pods owned by
a job.
## Notes
Link to the changelog -
https://github.com/kubernetes/kubernetes/blob/master/CHANGELOG/CHANGELOG-1.27.md#api-change-31 parent 8ddd021 commit c4160f4
3 files changed
+4
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
566 | 566 | | |
567 | 567 | | |
568 | 568 | | |
569 | | - | |
| 569 | + | |
570 | 570 | | |
571 | 571 | | |
572 | 572 | | |
| |||
0 commit comments