From 4023bb96b070da3e4b09da7857c42f07de508cf5 Mon Sep 17 00:00:00 2001 From: Yann Brillouet Date: Tue, 13 Jun 2023 17:34:08 +0200 Subject: [PATCH] Some more pointer passing --- fleetshard/pkg/central/reconciler/init_auth.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fleetshard/pkg/central/reconciler/init_auth.go b/fleetshard/pkg/central/reconciler/init_auth.go index a4768d1ae5..9409d8db28 100644 --- a/fleetshard/pkg/central/reconciler/init_auth.go +++ b/fleetshard/pkg/central/reconciler/init_auth.go @@ -126,7 +126,7 @@ func existsRHSSOAuthProvider(ctx context.Context, central *private.ManagedCentra // createRHSSOAuthProvider initialises sso.redhat.com auth provider in a deployed Central instance. func createRHSSOAuthProvider(ctx context.Context, central *private.ManagedCentral, client ctrlClient.Client) error { - pass, err := getAdminPassword(ctx, *central, client) + pass, err := getAdminPassword(ctx, central, client) if err != nil { return err } @@ -245,7 +245,7 @@ func getHTTPSServicePort(service *core.Service) (int32, error) { return 0, errors.Errorf("no `https` port is present in %s/%s service", service.Namespace, service.Name) } -func getAdminPassword(ctx context.Context, central private.ManagedCentral, client ctrlClient.Client) (string, error) { +func getAdminPassword(ctx context.Context, central *private.ManagedCentral, client ctrlClient.Client) (string, error) { // pragma: allowlist nextline secret secretRef := ctrlClient.ObjectKey{ Name: centralHtpasswdSecretName,