use configMapName parameter in function
The `GetBundleFromConfigMap` function has a `configMapName`
parameter, but its code is hard-coded to always retrieve the
`components.KubeVirtCASecretName` configmap.
This patch updates the code to use the parameter name.
@@ -4608,7 +4608,7 @@ func GetCertFromSecret(secretName string) []byte {
func GetBundleFromConfigMap(configMapName string) ([]byte, []*x509.Certificate) {
virtClient, err := kubecli.GetKubevirtClient()
Expect(err).ToNot(HaveOccurred())
- configMap, err := virtClient.CoreV1().ConfigMaps(KubeVirtInstallNamespace).Get(components.KubeVirtCASecretName, metav1.GetOptions{})
+ configMap, err := virtClient.CoreV1().ConfigMaps(KubeVirtInstallNamespace).Get(configMapName, metav1.GetOptions{})
Expect(err).ToNot(HaveOccurred())
if rawBundle, ok := configMap.Data[components.CABundleKey]; ok {
crts, err := cert.ParseCertsPEM([]byte(rawBundle))
