@@ -28,6 +28,7 @@ import (
28
28
29
29
"github.com/kong/kubernetes-ingress-controller/v3/internal/annotations"
30
30
"github.com/kong/kubernetes-ingress-controller/v3/internal/gatewayapi"
31
+ "github.com/kong/kubernetes-ingress-controller/v3/internal/manager/featuregates"
31
32
"github.com/kong/kubernetes-ingress-controller/v3/internal/util"
32
33
kongv1 "github.com/kong/kubernetes-ingress-controller/v3/pkg/apis/configuration/v1"
33
34
"github.com/kong/kubernetes-ingress-controller/v3/pkg/clientset"
@@ -249,8 +250,13 @@ func TestDeployAllInOneDBLESSGateway(t *testing.T) {
249
250
controllerDeployment := deployments .GetController (ctx , t , env )
250
251
for i , container := range controllerDeployment .Spec .Template .Spec .Containers {
251
252
if container .Name == controllerContainerName {
252
- controllerDeployment .Spec .Template .Spec .Containers [i ].Env = append (controllerDeployment .Spec .Template .Spec .Containers [i ].Env ,
253
- corev1.EnvVar {Name : "CONTROLLER_FEATURE_GATES" , Value : testenv .GetFeatureGates ()})
253
+ controllerDeployment .Spec .Template .Spec .Containers [i ].Env = append (
254
+ controllerDeployment .Spec .Template .Spec .Containers [i ].Env ,
255
+ corev1.EnvVar {
256
+ Name : "CONTROLLER_FEATURE_GATES" ,
257
+ Value : fmt .Sprintf ("%s=true" , featuregates .GatewayAlphaFeature ),
258
+ },
259
+ )
254
260
}
255
261
}
256
262
@@ -263,6 +269,7 @@ func TestDeployAllInOneDBLESSGateway(t *testing.T) {
263
269
require .NoError (t , err )
264
270
265
271
expectedMsg := "Required CustomResourceDefinitions are not installed, setting up a watch for them in case they are installed afterward"
272
+ t .Logf ("checking logs of #%d pods" , len (pods .Items ))
266
273
for _ , pod := range pods .Items {
267
274
logs , err := getPodLogs (ctx , t , env , pod .Namespace , pod .Name )
268
275
if err != nil {
@@ -274,7 +281,7 @@ func TestDeployAllInOneDBLESSGateway(t *testing.T) {
274
281
}
275
282
}
276
283
return true
277
- }, time .Minute , 5 * time .Second )
284
+ }, time .Minute , 3 * time .Second )
278
285
279
286
t .Logf ("deploying Gateway APIs CRDs in standard channel from %s" , consts .GatewayStandardCRDsKustomizeURL )
280
287
require .NoError (t , clusters .KustomizeDeployForCluster (ctx , env .Cluster (), consts .GatewayStandardCRDsKustomizeURL ))
0 commit comments