From 1824cb490b62fc59c34447dcb689f9dd76f50cd0 Mon Sep 17 00:00:00 2001 From: Sam Heilbron Date: Wed, 2 Oct 2024 17:36:33 -0500 Subject: [PATCH] clarify comments --- test/kubernetes/e2e/features/deployer/suite.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/kubernetes/e2e/features/deployer/suite.go b/test/kubernetes/e2e/features/deployer/suite.go index e52146bd0b5..f1aa7052f04 100644 --- a/test/kubernetes/e2e/features/deployer/suite.go +++ b/test/kubernetes/e2e/features/deployer/suite.go @@ -65,7 +65,7 @@ func (s *testingSuite) SetupSuite() { testdefaults.NginxPodManifest: {testdefaults.NginxPod, testdefaults.NginxSvc}, gatewayWithoutParameters: {proxyService, proxyServiceAccount, proxyDeployment}, gatewayWithParameters: {proxyService, proxyServiceAccount, proxyDeployment, gwParams}, - selfManagedGatewayManifestFile: {}, + selfManagedGatewayManifestFile: {gwParams}, } } @@ -194,8 +194,9 @@ func (s *testingSuite) TestSelfManagedGateway() { s.testInstallation.Assertions.ConsistentlyObjectsNotExist(s.ctx, proxyService, proxyServiceAccount, proxyDeployment) } +// patchGatewayParameters accepts a reference to an object, and a patch function +// It then queries the object, performs the patch in memory, and writes the object back to the cluster func (s *testingSuite) patchGatewayParameters(objectMeta metav1.ObjectMeta, patchFn func(*v1alpha1.GatewayParameters)) { - // modify the number of replicas in the GatewayParameters gatewayParameters := &v1alpha1.GatewayParameters{} err := s.testInstallation.ClusterContext.Client.Get(s.ctx, client.ObjectKey{ Name: objectMeta.GetName(),