Some of the k8s Opaque type secrets data has None values, this
is failing the "system k8s-certificate-list" command.This fix
addresses this issue by checking the "data" field in the
secret
Test Cases:
Pass: Have a secret with no data, run "system k8s-certificate-
list" comamnd and verify it is listing the certificates
Reviewed: https:/ /review. opendev. org/c/starlingx /config/ +/919885 /opendev. org/starlingx/ config/ commit/ 0e941dc7c21bab8 dc01d9d94eae0eb 3c38d6f16d
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit 0e941dc7c21bab8 dc01d9d94eae0eb 3c38d6f16d
Author: amantri <email address hidden>
Date: Thu May 16 12:25:34 2024 -0400
Support secrets of data field with None
Some of the k8s Opaque type secrets data has None values, this -list" command.This fix
is failing the "system k8s-certificate
addresses this issue by checking the "data" field in the
secret
Test Cases:
Pass: Have a secret with no data, run "system k8s-certificate-
list" comamnd and verify it is listing the certificates
Closes-bug: 2065926
Change-Id: I85ea4341d71016 c6064b22860f761 b3f77f1619c
Signed-off-by: amantri <email address hidden>