Skip to content

Commit

Permalink
clarify comments
Browse files Browse the repository at this point in the history
  • Loading branch information
sam-heilbron committed Oct 2, 2024
1 parent 5d4cb41 commit 1824cb4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/kubernetes/e2e/features/deployer/suite.go
Original file line number Diff line number Diff line change
Expand Up @@ -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},
}
}

Expand Down Expand Up @@ -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(),
Expand Down

0 comments on commit 1824cb4

Please sign in to comment.