Skip to content

Commit

Permalink
Some more pointer passing
Browse files Browse the repository at this point in the history
  • Loading branch information
rhybrillou committed Jun 13, 2023
1 parent 3edc64b commit 4023bb9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fleetshard/pkg/central/reconciler/init_auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 4023bb9

Please sign in to comment.