In show-certs script to derive the renewal field for WRA certs
mon-elastic-services-secrets/ca.crt and
mon-elastic-services-secrets/ext-ca.crt, the contents are
compared with mon-elastic-services-ca-crt and
mon-elastic-services-extca-crt secrets respectively, this is
creating a confusion to the user from the show-certs script
output when WRA fails to update the certificates as per its
certificate management and also WRA certificates are managed by
cert-manager by default, so removing this condition and keeping
only secret exist check makes it clear for the user what is
expected from the script output.
TestCases:
PASS: Have different contents in mon-elastic-services-secrets/
ca.crt and mon-elastic-services-ca-crt and notice the
renewal field for mon-elastic-services-secrets/ca.crt
shows as "Automatic"
PASS: Have different contents in mon-elastic-services-secrets/ ext-ca.crt and mon-elastic-services-ext-ca-crt and notice the
renewal field for mon-elastic-services-secrets/ext-ca.crt
shows as "Automatic"
Reviewed: https:/ /review. opendev. org/c/starlingx /utilities/ +/915504 /opendev. org/starlingx/ utilities/ commit/ a79f2d06c83d557 43e37c753a8c2fa c9a39416a4
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit a79f2d06c83d557 43e37c753a8c2fa c9a39416a4
Author: amantri <email address hidden>
Date: Thu Apr 11 15:09:44 2024 -0400
Remove renewal check for WRA certificates
In show-certs script to derive the renewal field for WRA certs elastic- services- secrets/ ca.crt and elastic- services- secrets/ ext-ca. crt, the contents are services- ca-crt and elastic- services- extca-crt secrets respectively, this is
mon-
mon-
compared with mon-elastic-
mon-
creating a confusion to the user from the show-certs script
output when WRA fails to update the certificates as per its
certificate management and also WRA certificates are managed by
cert-manager by default, so removing this condition and keeping
only secret exist check makes it clear for the user what is
expected from the script output.
TestCases: services- secrets/ services- ca-crt and notice the services- secrets/ ca.crt services- secrets/
ext- ca.crt and mon-elastic- services- ext-ca- crt and notice the services- secrets/ ext-ca. crt
PASS: Have different contents in mon-elastic-
ca.crt and mon-elastic-
renewal field for mon-elastic-
shows as "Automatic"
PASS: Have different contents in mon-elastic-
renewal field for mon-elastic-
shows as "Automatic"
Closes-Bug: 2061014
Change-Id: Ib6e0627eda9b40 1210f2eda5c0fa8 e613738a11e
Signed-off-by: amantri <email address hidden>