From 1647d3acadc1cc9808554de30cd2c814fce09352 Mon Sep 17 00:00:00 2001 From: Vishwanath Taykhande Date: Wed, 16 Oct 2024 13:46:34 +0530 Subject: [PATCH] PCP-3366 Changing string seperator for search domains --- pkg/ipam/metal3io/metal3io_ipam.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/ipam/metal3io/metal3io_ipam.go b/pkg/ipam/metal3io/metal3io_ipam.go index 9e7bd2b..16ce475 100644 --- a/pkg/ipam/metal3io/metal3io_ipam.go +++ b/pkg/ipam/metal3io/metal3io_ipam.go @@ -110,7 +110,7 @@ func (m Metal3IPAM) GetAvailableIPPool(poolMatchLabels map[string]string, cluste //TODO: refactor searchDomains, once its added in metal3io searchDomains := []string{} if len(ipPool.Annotations[ipam.SearchDomainsKey]) > 0 { - searchDomains = strings.Split(ipPool.Annotations[ipam.SearchDomainsKey], ",") + searchDomains = strings.Split(ipPool.Annotations[ipam.SearchDomainsKey], "_") } m.log.V(0).Info(fmt.Sprintf("IPPool %s is available", ipPool.Name))