From 621616a64d2b3c1f06354e78da64edbccee4282f Mon Sep 17 00:00:00 2001 From: Fernando Serboncini Date: Fri, 28 Nov 2025 10:07:46 -0500 Subject: [PATCH] cmd/k8s-operator fix populateTLSSecret on tests The call for populateTLSSecret was broken between PRs. Updates #cleanup Signed-off-by: Fernando Serboncini --- cmd/k8s-operator/ingress-for-pg_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/k8s-operator/ingress-for-pg_test.go b/cmd/k8s-operator/ingress-for-pg_test.go index 1257336e3..0f5527185 100644 --- a/cmd/k8s-operator/ingress-for-pg_test.go +++ b/cmd/k8s-operator/ingress-for-pg_test.go @@ -671,7 +671,7 @@ func TestIngressPGReconciler_HTTPRedirect(t *testing.T) { // Verify initial reconciliation with HTTP redirect enabled expectReconciled(t, ingPGR, "default", "test-ingress") - populateTLSSecret(context.Background(), fc, "test-pg", "my-svc.ts.net") + populateTLSSecret(t, fc, "test-pg", "my-svc.ts.net") expectReconciled(t, ingPGR, "default", "test-ingress") // Verify Tailscale Service includes both tcp:80 and tcp:443 @@ -795,7 +795,7 @@ func TestIngressPGReconciler_HTTPEndpointAndRedirectConflict(t *testing.T) { // Verify initial reconciliation - HTTP endpoint should take precedence expectReconciled(t, ingPGR, "default", "test-ingress") - populateTLSSecret(context.Background(), fc, "test-pg", "my-svc.ts.net") + populateTLSSecret(t, fc, "test-pg", "my-svc.ts.net") expectReconciled(t, ingPGR, "default", "test-ingress") // Verify Tailscale Service includes both tcp:80 and tcp:443