This change added a new mode "openldap_ca" to certificate-install
sysinv API. With this mode, an openldap CA certificate can be installed
as an k8s secret.
Note that using this new mode to install openldap CA cert is only
supported in the API, it is not supported by the certificate-install
CLI, (will return invalid mode), since openldap certs are managed
internally.
This commit also include an unit test for the new mode.
Test Plan:
PASS: Call the API to install openldap CA certificate as k8s secret.
PASS: While the secret exists, call the API to install the CA cert
again, verify the secret is updated.
PASS: Run "system certificate-install -m openldap_ca <cert file>",
verify "Warning: Invalid mode: openldap_ca" is returned.
PASS: DC multi-nodes subcloud upgrade.
Story: 2009834
Task: 46893
Signed-off-by: Andy Ning <andy.ning@windriver.com>
Change-Id: I47eba6353c8cb64b65b291acca9b9c96a7c0e466