Sanitize SCTPSupport feature gate before upgrading to K8s 1.22
k8s 1.22 does not support "SCTPSupport" feature gate.
Upgrading from 21.12 to 22.12 and then upgrading to k8s 1.22
will result in kube-apiserver failing to start, which will result
in a non-functional K8s control plane.
Changes are made to remove this feature gate.
Also, in k8s version 1.24 and later, name of the kubelet configmap
is changed to "kubelet-config" from kubelet-config-<version>.
Test Plan:
PASS : k8s 1.21.8 upgrade with custom extraArgs removes SCTPSupport Confirmed kubeadm-configmap is updated.
PASS : Added featureGate "SCTPSupport" manually to kubelet_configurations and upgarded k8s to 1.22. kubelet-configmap is updated
PASS : Package builds successfully.
Closes-Bug: 2015917
Change-Id: Ief8791fe4307e2d8b70cc08f08a5bdd7c452b662
Signed-off-by: Saba Touheed Mujawar <email address hidden>
Reviewed: https:/ /review. opendev. org/c/starlingx /config/ +/880063 /opendev. org/starlingx/ config/ commit/ 2afa67e8730b624 65b02041865934b 4d42ded3f7
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit 2afa67e8730b624 65b02041865934b 4d42ded3f7
Author: Saba Touheed Mujawar <email address hidden>
Date: Tue Apr 11 11:18:11 2023 -0400
Sanitize SCTPSupport feature gate before upgrading to K8s 1.22
k8s 1.22 does not support "SCTPSupport" feature gate.
Upgrading from 21.12 to 22.12 and then upgrading to k8s 1.22
will result in kube-apiserver failing to start, which will result
in a non-functional K8s control plane.
Changes are made to remove this feature gate.
Also, in k8s version 1.24 and later, name of the kubelet configmap config- <version> .
is changed to "kubelet-config" from kubelet-
Test Plan:
Confirmed kubeadm-configmap is updated.
kubelet_ configurations and upgarded k8s to 1.22.
kubelet- configmap is updated
PASS : k8s 1.21.8 upgrade with custom extraArgs removes SCTPSupport
PASS : Added featureGate "SCTPSupport" manually to
PASS : Package builds successfully.
Closes-Bug: 2015917
Change-Id: Ief8791fe4307e2 d8b70cc08f08a5b dd7c452b662
Signed-off-by: Saba Touheed Mujawar <email address hidden>