Fix kubelet '[]string' type casting and python 2.x compatibility
- Add casting for kubelet "[]string" type during
K8s custom configuration update.
- Restore python 2.x compatibility
Test Plan:
PASS: Kubelet runtime testing
1) Add '[]string' type valid parameter with valid value & apply.
- Pod updated successfully.
2) Modify '[]string' type valid parameter with valid value & apply.
- Pod updated successfully
3) Modify '[]string' type valid parameter with invalid value & apply.
- Pod update failed.
Auto recovery process completed successfully.
4) Delete latest added parameter & apply.
- Pod updated successfully.
Reviewed: https:/ /review. opendev. org/c/starlingx /stx-puppet/ +/870033 /opendev. org/starlingx/ stx-puppet/ commit/ bb4ea6df565a13a f21629fa552ced9 aaf96886bd
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit bb4ea6df565a13a f21629fa552ced9 aaf96886bd
Author: Jorge Saffe <email address hidden>
Date: Thu Jan 12 15:50:32 2023 -0500
Fix kubelet '[]string' type casting and python 2.x compatibility
- Add casting for kubelet "[]string" type during
K8s custom configuration update.
- Restore python 2.x compatibility
Test Plan:
PASS: Kubelet runtime testing
1) Add '[]string' type valid parameter with valid value & apply.
- Pod updated successfully.
2) Modify '[]string' type valid parameter with valid value & apply.
- Pod updated successfully
3) Modify '[]string' type valid parameter with invalid value & apply.
- Pod update failed.
Auto recovery process completed successfully.
4) Delete latest added parameter & apply.
- Pod updated successfully.
Closes-Bug: 2002423
Signed-off-by: Jorge Saffe <email address hidden> 12d4979b42fcfe2 8c81765f758
Change-Id: I5ca032abcd34dc