@@ -61,7 +61,7 @@ var _ = Describe("Designate multipool controller", func() {
6161 DeferCleanup (k8sClient .Delete , ctx , multipoolConfig )
6262
6363 // Verify multipool config can be parsed
64- config , err := designate .GetMultipoolConfig (ctx , k8sClient , namespace )
64+ config , err := designate .GetMultipoolConfig (ctx , k8sClient , namespace , "" )
6565 Expect (err ).ShouldNot (HaveOccurred ())
6666 Expect (config ).ShouldNot (BeNil ())
6767 Expect (config .Pools ).To (HaveLen (2 ))
@@ -88,7 +88,7 @@ var _ = Describe("Designate multipool controller", func() {
8888 DeferCleanup (k8sClient .Delete , ctx , multipoolConfig )
8989
9090 // Verify only one pool exists
91- config , err := designate .GetMultipoolConfig (ctx , k8sClient , namespace )
91+ config , err := designate .GetMultipoolConfig (ctx , k8sClient , namespace , "" )
9292 Expect (err ).ShouldNot (HaveOccurred ())
9393 Expect (config ).ShouldNot (BeNil ())
9494 Expect (config .Pools ).To (HaveLen (1 ))
@@ -123,7 +123,7 @@ var _ = Describe("Designate multipool controller", func() {
123123 DeferCleanup (k8sClient .Delete , ctx , multipoolConfig )
124124
125125 // Verify initial state
126- config , err := designate .GetMultipoolConfig (ctx , k8sClient , namespace )
126+ config , err := designate .GetMultipoolConfig (ctx , k8sClient , namespace , "" )
127127 Expect (err ).ShouldNot (HaveOccurred ())
128128 Expect (config .Pools ).To (HaveLen (2 ))
129129
@@ -149,7 +149,7 @@ var _ = Describe("Designate multipool controller", func() {
149149 Expect (k8sClient .Update (ctx , multipoolConfig )).Should (Succeed ())
150150
151151 // Verify new state
152- config , err = designate .GetMultipoolConfig (ctx , k8sClient , namespace )
152+ config , err = designate .GetMultipoolConfig (ctx , k8sClient , namespace , "" )
153153 Expect (err ).ShouldNot (HaveOccurred ())
154154 Expect (config .Pools ).To (HaveLen (3 ))
155155 Expect (config .Pools [2 ].Name ).To (Equal ("pool2" ))
@@ -182,7 +182,7 @@ var _ = Describe("Designate multipool controller", func() {
182182 DeferCleanup (k8sClient .Delete , ctx , multipoolConfig )
183183
184184 // Verify replica counts
185- config , err := designate .GetMultipoolConfig (ctx , k8sClient , namespace )
185+ config , err := designate .GetMultipoolConfig (ctx , k8sClient , namespace , "" )
186186 Expect (err ).ShouldNot (HaveOccurred ())
187187 Expect (config .Pools ).To (HaveLen (2 ))
188188 Expect (config .Pools [0 ].BindReplicas ).To (Equal (int32 (2 )))
@@ -222,7 +222,7 @@ var _ = Describe("Designate multipool controller", func() {
222222 DeferCleanup (k8sClient .Delete , ctx , multipoolConfig )
223223
224224 // Verify attributes
225- config , err := designate .GetMultipoolConfig (ctx , k8sClient , namespace )
225+ config , err := designate .GetMultipoolConfig (ctx , k8sClient , namespace , "" )
226226 Expect (err ).ShouldNot (HaveOccurred ())
227227 Expect (config .Pools ).To (HaveLen (2 ))
228228 Expect (config .Pools [0 ].Attributes ).To (HaveKeyWithValue ("availability_zone" , "az1" ))
@@ -264,7 +264,7 @@ var _ = Describe("Designate multipool controller", func() {
264264 DeferCleanup (k8sClient .Delete , ctx , multipoolConfig )
265265
266266 // Verify pool order matches alphabetical sorting (from code implementation)
267- config , err := designate .GetMultipoolConfig (ctx , k8sClient , namespace )
267+ config , err := designate .GetMultipoolConfig (ctx , k8sClient , namespace , "" )
268268 Expect (err ).ShouldNot (HaveOccurred ())
269269 Expect (config .Pools ).To (HaveLen (3 ))
270270 // Pools should be sorted alphabetically by name
@@ -304,7 +304,7 @@ var _ = Describe("Designate multipool controller", func() {
304304 DeferCleanup (k8sClient .Delete , ctx , multipoolConfig )
305305
306306 // Verify per-pool NS records
307- config , err := designate .GetMultipoolConfig (ctx , k8sClient , namespace )
307+ config , err := designate .GetMultipoolConfig (ctx , k8sClient , namespace , "" )
308308 Expect (err ).ShouldNot (HaveOccurred ())
309309 Expect (config .Pools ).To (HaveLen (2 ))
310310
@@ -347,7 +347,7 @@ var _ = Describe("Designate multipool controller", func() {
347347 DeferCleanup (k8sClient .Delete , ctx , multipoolConfig )
348348
349349 // Verify initial replica counts
350- config , err := designate .GetMultipoolConfig (ctx , k8sClient , namespace )
350+ config , err := designate .GetMultipoolConfig (ctx , k8sClient , namespace , "" )
351351 Expect (err ).ShouldNot (HaveOccurred ())
352352 Expect (config .Pools [0 ].BindReplicas ).To (Equal (int32 (1 )))
353353 Expect (config .Pools [1 ].BindReplicas ).To (Equal (int32 (1 )))
@@ -368,7 +368,7 @@ var _ = Describe("Designate multipool controller", func() {
368368 Expect (k8sClient .Update (ctx , multipoolConfig )).Should (Succeed ())
369369
370370 // Verify updated replica count
371- config , err = designate .GetMultipoolConfig (ctx , k8sClient , namespace )
371+ config , err = designate .GetMultipoolConfig (ctx , k8sClient , namespace , "" )
372372 Expect (err ).ShouldNot (HaveOccurred ())
373373 Expect (config .Pools [0 ].BindReplicas ).To (Equal (int32 (1 )))
374374 Expect (config .Pools [1 ].BindReplicas ).To (Equal (int32 (3 )))
0 commit comments