integ/kubernetes
Chris Friesen 15db2d6990 clean up feature gates on k8s upgrade
During a K8s feature upgrade from 1.23 to 1.24 we need to remove
the "RemoveSelfLink=false" feature gate from kube-apiserver.

We had previously handled updating the kubeadm configmap, which
was sufficient to handle the running system.  However, in order
to properly handle backup and restore after the K8s upgrade to
1.24 (and just for general tidiness) we need to also remove the
feature gate from the saved service parameters and from the
last_kube_extra_config_bootstrap.yaml file.

It's possible that there are other kube-apiserver feature gates
specified by the end user, this adds a bit of complexity to the
code.

Test Plan:
PASS: Test python script and bash script in isolation.
PASS: End-to-end test with k8s upgrade and backup/restore with
      manual modification of service parameters and yaml file.
      Tested with AIO-DX, AIO-SX unoptimised restore, and
      AIO-SX optimised restore.
PASS: K8s upgrade using the new code, ensure service parameter
      and last_kube_extra_config_bootstrap.yaml have been
      updated with "RemoveSelfLink=false" feature gate removed.

Closes-Bug: 1999095
Signed-off-by: Chris Friesen <chris.friesen@windriver.com>
Change-Id: I82ecd821d4e1745ab0f480f9f9c0178757521038
2022-12-07 18:13:47 -06:00
..
armada Add support for building armada image 2022-06-15 19:29:09 +03:00
armada-helm-toolkit Debian: fix wrong checksums 2022-08-23 11:56:25 +08:00
chartmuseum meta_data.yaml: add sha256sum checksum 2022-03-03 14:30:40 +08:00
cni debian-pkg: Uprev cni plugins 2022-10-07 15:01:49 +00:00
containerd Debian: Backport commit to Reduce log clutter 2022-08-25 13:52:33 -07:00
crictl/debian meta_data.yaml: add sha256sum checksum 2022-03-03 14:30:40 +08:00
docker-distribution Disable docker-registry service 2022-04-05 12:48:02 +03:00
etcd meta_data.yaml: add sha256sum checksum 2022-03-03 14:30:40 +08:00
helm Add mapkubeapis helm plugin package 2022-08-19 10:33:22 -03:00
k8s-cni-cache-cleanup Debian: add package k8s-cni-cache-cleanup build files 2022-05-26 16:18:12 -03:00
k8s-pod-recovery k8s-pod-recovery: use src_path instead of dl_hook 2021-11-17 17:59:10 +08:00
kubernetes-1.18.1/centos/files Remove kubernetes 1.18, 1.19, 1.20 pkgs 2022-02-23 15:24:03 +00:00
kubernetes-1.21.8 Merge "Debian: Change k8s 1.21.8 package name" 2022-05-17 00:11:15 +00:00
kubernetes-1.22.5 Debian: Add k8s 1.22.5 package 2022-10-11 00:29:11 +00:00
kubernetes-1.23.1 Debian: Add metrics-server to platform namespaces 2022-08-16 16:51:20 +00:00
kubernetes-1.24.4/debian kubelet CFS quota throttling for non integer cpulimit 2022-12-01 04:03:22 -05:00
kubernetes-unversioned clean up feature gates on k8s upgrade 2022-12-07 18:13:47 -06:00
n3000 n3000-opae: debian docker build fails 2022-09-07 22:28:14 +00:00
plugins Debian: Remove conf files from etc-pmon.d 2022-09-26 13:41:53 +00:00
runc/debian Debian: runc upversion to 1.0.2 2022-04-02 00:31:03 +00:00