update kubelet-config configmap based on k8s version

Bug #2029358 reported by Boovan Rajendran
6
This bug affects 1 person
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-config-<version>. We need to handle both naming conventions.

Severity:
Minor

Steps to Reproduce:

Perform platform upgrade on AIO-SX.
check kubectl get cm -n kube-system.

Expected Behavior:

sysadmin@controller-0:~$ kubectl get cm -n kube-system | grep kubelet-config
kubelet-config                              1      4d3h

Actual Behavior:

sysadmin@controller-0:~$ kubectl get cm -n kube-system | grep kubelet-config
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
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to stx-puppet (master)

Reviewed: https://review.opendev.org/c/starlingx/stx-puppet/+/890329
Committed: https://opendev.org/starlingx/stx-puppet/commit/25ff4735b09930dcf4122c5d8bfab21f3d6fa265
Submitter: "Zuul (22348)"
Branch: master

commit 25ff4735b09930dcf4122c5d8bfab21f3d6fa265
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
    have a version in the name, while for K8s 1.23 and earlier the
    ConfigMap is named kubelet-config-<version>. We need to handle
    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: I263426cc52debb9e273875686a4998668ad1f7c9
    Signed-off-by: Boovan Rajendran <email address hidden>

Changed in starlingx:
status: In Progress → Fix Released
Ghada Khalil (gkhalil)
Changed in starlingx:
importance: Undecided → Low
tags: added: stx.9.0 stx.containers
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.