When fgrep'ing for "ca.crt","ext-ca.crt" in the WRA secret "mon-elastic-
services-secrets" it is finding matches for "ca.crt:","ca.crt-helm:" and
"ext-ca.crt:","ext-ca.crt-helm:" respectively, this fails an if clause
where it checks whether it is managed by cert-manager and wrongly
displaying the renewal as "Manual" instead of "Automatic",this fix
addresses this issue by hardening the fgrep to look for "ca.crt:" and
"ext-ca.crt:" respectively.
Test Cases:
PASS: Run "show-certs.sh" script and verify that all information for WRA
certs properly in the output
PASS: "show-certs.sh -k" script and verify that all information for WRA
certs properly in the output
Reviewed: https:/ /review. opendev. org/c/starlingx /utilities/ +/907358 /opendev. org/starlingx/ utilities/ commit/ 8d7d74f97c3d289 0d09fe6b2971260 a091065d54
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit 8d7d74f97c3d289 0d09fe6b2971260 a091065d54
Author: amantri <email address hidden>
Date: Wed Jan 31 15:58:39 2024 -0500
Fix WRA cert info in the show-certs.sh output
When fgrep'ing for "ca.crt" ,"ext-ca. crt" in the WRA secret "mon-elastic- secrets" it is finding matches for "ca.crt: ","ca.crt- helm:" and ca.crt: ","ext- ca.crt- helm:" respectively, this fails an if clause
services-
"ext-
where it checks whether it is managed by cert-manager and wrongly
displaying the renewal as "Manual" instead of "Automatic",this fix
addresses this issue by hardening the fgrep to look for "ca.crt:" and
"ext-ca.crt:" respectively.
Test Cases:
PASS: Run "show-certs.sh" script and verify that all information for WRA
certs properly in the output
PASS: "show-certs.sh -k" script and verify that all information for WRA
certs properly in the output
Closes-Bug: 2051880
Change-Id: I73af1ebd60a0c7 50569381b6ed671 08f79dbb69e
Signed-off-by: amantri <email address hidden>