update kubelet-config configmap based on k8s version
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
StarlingX |
Fix Released
|
Low
|
Boovan Rajendran |
Bug Description
Brief Description:
For K8s 1.24 and later the kubelet-config configmap does not have a version
in the name, while for K8s 1.23 and earlier the configmap is named
kubelet-
Severity:
Minor
Steps to Reproduce:
Perform platform upgrade on AIO-SX.
check kubectl get cm -n kube-system.
Expected Behavior:
sysadmin@
kubelet-config 1 4d3h
Actual Behavior:
sysadmin@
kubelet-config 1 4d3h
kubelet-config-1.24 1 4d3h
Reproducibility:
100% Reproducible
System Configuration:
AIO-SX
Last Pass:
NA
Timestamp/Logs:
NA
Alarms:
No
Test Activity:
Developer Testing
Workaround:
NA
description: | updated |
Changed in starlingx: | |
assignee: | nobody → Boovan Rajendran (brajendr) |
description: | updated |
Changed in starlingx: | |
status: | New → In Progress |
Changed in starlingx: | |
importance: | Undecided → Low |
tags: | added: stx.9.0 stx.containers |
Reviewed: https:/ /review. opendev. org/c/starlingx /stx-puppet/ +/890329 /opendev. org/starlingx/ stx-puppet/ commit/ 25ff4735b09930d cf4122c5d8bfab2 1f3d6fa265
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit 25ff4735b09930d cf4122c5d8bfab2 1f3d6fa265
Author: Boovan Rajendran <email address hidden>
Date: Wed Aug 2 08:08:39 2023 -0400
Update kubelet-config ConfigMap based on k8s version
For K8s 1.24 and later, the kubelet-config ConfigMap does not config- <version> . We need to handle
have a version in the name, while for K8s 1.23 and earlier the
ConfigMap is named kubelet-
both naming conventions.
This updates the kubelet-config ConfigMap using the name depending
on k8s version.
Testplan:
Pass: Perform platform upgrade, verify ConfigMaps has new kubelet-config
ConfigMap based on k8s version.
Pass: Verify 'kubectl get cm -n kube-system | grep kubelet-config' shows
the updated kubelet-config ConfigMap based on k8s version.
Closes-Bug: 2029358
Change-Id: I263426cc52debb 9e273875686a499 8668ad1f7c9
Signed-off-by: Boovan Rajendran <email address hidden>