integ/kubernetes/kubernetes-1.22.5/centos
Kaustubh Dhokte a6a5349d02 k8s-1.22.5: remove feature-gates
This script is intended to be run during platform upgrade.
('upgrade-activate' phase). It removes below feature gates
from kubeadm-config configmap and rewrites kube-apiserver
and kube-controller-manager manifests.
  - SCTPSupport=true
  - HugePageStorageMediumSize=true
  - TTLAfterFinished=true

Background:
HugePageStorageMediumSize is deprecated in Kubernetes 1.22
SCTPSupport blocks kube-apiserver pod to spawn after control-plane upgrade
TTLAfterFinished value defaults to true from k8s 1.21

Test Plan (On CentOS)
On AIO-SX and AIO-DX:
PASS: Full platform upgrade successful.
      Confirm kubeadm-configmap is updated, kube-apiserver
      and controller-manager static manifests and processes
      are updated with updated feature-gates after platform
      upgrade.
PASS: Upgrade k8s 1.21.8 to 1.22.5 after platform upgrade.
      Create a PV, PVC and deploy a pod.
PASS: Package builds successfully.

Story: 2009789
Task: 45627

Signed-off-by: Kaustubh Dhokte <kaustubh.dhokte@windriver.com>
Change-Id: I51400c63226b532eed4a05fddb255b877cc5bbb5
2022-06-19 03:42:53 -04:00
..
files k8s-1.22.5: remove feature-gates 2022-06-19 03:42:53 -04:00
build_srpm.data Fix qemu and kubernetes build resource requirements 2022-03-15 11:39:08 -04:00
kubernetes.spec k8s-1.22.5: remove feature-gates 2022-06-19 03:42:53 -04:00
kubernetes.spec.orig Add kubernetes 1.22.5 pkg 2022-01-28 11:56:47 +02:00
Readme.rst Add kubernetes 1.22.5 pkg 2022-01-28 11:56:47 +02:00

The spec file used here was from the kubernetes 1.10.0 src rpm. The orig file is included to help show modifications made to that spec file, to help understand which changes were needed and to assist with future upversioning.