Skip to content

Commit

Permalink
cleanup comments
Browse files Browse the repository at this point in the history
  • Loading branch information
AlisonB319 committed Mar 14, 2024
1 parent 35ea61d commit 30feae3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion e2e/airgap.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package e2e_test
import (
"context"
"fmt"
"log"
"net"

"github.com/Azure/agentbakere2e/suite"
Expand Down Expand Up @@ -77,7 +78,7 @@ func getSecurityRule(name, destinationAddressPrefix string, priority int32) *arm
}

func addAirgapNetworkSettings(ctx context.Context, cloud *azureClient, suiteConfig *suite.Config, clusterConfig clusterConfig) error {
fmt.Printf("Adding network settings for airgap cluster %s in rg %s\n", *clusterConfig.cluster.Name, *clusterConfig.cluster.Properties.NodeResourceGroup)
log.Printf("Adding network settings for airgap cluster %s in rg %s\n", *clusterConfig.cluster.Name, *clusterConfig.cluster.Properties.NodeResourceGroup)

vnet, err := getClusterVNet(ctx, cloud, *clusterConfig.cluster.Properties.NodeResourceGroup)
if err != nil {
Expand Down
6 changes: 3 additions & 3 deletions e2e/vmss.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const (
maxRetries = 3
)

type RetryVmssOperations struct {
type VMSSOperationRetrier struct {
maxRetries int
}

Expand All @@ -49,7 +49,7 @@ func bootstrapVMSS(ctx context.Context, t *testing.T, r *mrand.Rand, vmssName st
log.Printf("finished deleting vmss %q", vmssName)
}

rOpts := RetryVmssOperations{maxRetries: maxRetries}
rOpts := VMSSOperationRetrier{maxRetries: maxRetries}
vmssModel, err := rOpts.createVMSSWithPayload(ctx, nodeBootstrapping.CustomData, nodeBootstrapping.CSE, vmssName, publicKeyBytes, opts)
if err != nil {
return nil, cleanupVMSS, fmt.Errorf("unable to create VMSS with payload: %w", err)
Expand All @@ -58,7 +58,7 @@ func bootstrapVMSS(ctx context.Context, t *testing.T, r *mrand.Rand, vmssName st
return vmssModel, cleanupVMSS, nil
}

func (rOpts RetryVmssOperations) createVMSSWithPayload(ctx context.Context, customData, cseCmd, vmssName string, publicKeyBytes []byte, opts *scenarioRunOpts) (*armcompute.VirtualMachineScaleSet, error) {
func (rOpts VMSSOperationRetrier) createVMSSWithPayload(ctx context.Context, customData, cseCmd, vmssName string, publicKeyBytes []byte, opts *scenarioRunOpts) (*armcompute.VirtualMachineScaleSet, error) {
model := getBaseVMSSModel(vmssName, string(publicKeyBytes), customData, cseCmd, opts)

if opts.suiteConfig.BuildID != "" {
Expand Down

0 comments on commit 30feae3

Please sign in to comment.