Skip to content

Commit 3814de2

Browse files
committed
fixup: rename ingress install function
1 parent 646f857 commit 3814de2

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tests/fixture/tmpnet/start_kind_cluster.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,8 @@ func StartKindCluster(
8787
return fmt.Errorf("failed to deploy kube collectors: %w", err)
8888
}
8989

90-
if err := deployNginxIngress(ctx, log, configPath, configContext); err != nil {
91-
return fmt.Errorf("failed to deploy nginx ingress: %w", err)
90+
if err := deployIngressController(ctx, log, configPath, configContext); err != nil {
91+
return fmt.Errorf("failed to deploy ingress controller: %w", err)
9292
}
9393

9494
return nil
@@ -170,13 +170,13 @@ func ensureNamespace(ctx context.Context, log logging.Logger, clientset *kuberne
170170
return nil
171171
}
172172

173-
// DeployNginxIngress deploys the nginx ingress controller using Helm.
174-
func deployNginxIngress(ctx context.Context, log logging.Logger, configPath string, configContext string) error {
173+
// deployIngressController deploys the nginx ingress controller using Helm.
174+
func deployIngressController(ctx context.Context, log logging.Logger, configPath string, configContext string) error {
175175
log.Info("checking if nginx ingress controller is already running")
176176

177177
isRunning, err := isIngressControllerRunning(ctx, log, configPath, configContext)
178178
if err != nil {
179-
return fmt.Errorf("failed to check ingress controller status: %w", err)
179+
return fmt.Errorf("failed to check nginx ingress controller status: %w", err)
180180
}
181181
if isRunning {
182182
log.Info("nginx ingress controller already running")

0 commit comments

Comments
 (0)