Fix the output of show-certs script to correlate with the alarms
The certificate names in the output of "show-certs.sh" are not
correlated with the corresponding certificate expiry/expired
alarms, this fix addresses this issue.
Test Cases:
PASS: Run the "show-certs.sh" on systemcontroller and verify the namespace,cert names in the output for admin-ep certs
PASS: Run the "show-certs.sh" on subcloud and verify the namespace,cert names in the output for admin-ep certs
PASS: Run the "show-certs.sh" on standalone and verify it works
as expected
PASS: Run the "show-certs.sh" and verify that "registry.local"
changed to "docker_registry" to corelate with the alarm
PASS: Run "show-certs.sh" script without -k and verify the
filename is shown for ldap,ssl and docker-registry certs
PASS: Run "show-certs.sh" with -k and verify namespace/secret
name is shown in the output
PASS: Run "show-cert.sh -k" and verify in the output that for "cm-cert-manager-webhook-ca" secret the renewal shows as
"Auto renewal"
Reviewed: https:/ /review. opendev. org/c/starlingx /utilities/ +/890361 /opendev. org/starlingx/ utilities/ commit/ 95e774f3107b574 48862ed681ad01a 0e7a713cb9
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit 95e774f3107b574 48862ed681ad01a 0e7a713cb9
Author: amantri <email address hidden>
Date: Wed Aug 2 16:00:09 2023 -0400
Fix the output of show-certs script to correlate with the alarms
The certificate names in the output of "show-certs.sh" are not
correlated with the corresponding certificate expiry/expired
alarms, this fix addresses this issue.
Test Cases:
namespace, cert names in the output for admin-ep certs
namespace, cert names in the output for admin-ep certs
"cm- cert-manager- webhook- ca" secret the renewal shows as
PASS: Run the "show-certs.sh" on systemcontroller and verify the
PASS: Run the "show-certs.sh" on subcloud and verify the
PASS: Run the "show-certs.sh" on standalone and verify it works
as expected
PASS: Run the "show-certs.sh" and verify that "registry.local"
changed to "docker_registry" to corelate with the alarm
PASS: Run "show-certs.sh" script without -k and verify the
filename is shown for ldap,ssl and docker-registry certs
PASS: Run "show-certs.sh" with -k and verify namespace/secret
name is shown in the output
PASS: Run "show-cert.sh -k" and verify in the output that for
"Auto renewal"
Closes-bug: 2029412
Change-Id: Icf08493f19bf52 9101488a8b5fa42 78ed9b325fc
Signed-off-by: amantri <email address hidden>