Add more logs and fix params order

This commit is contained in:
Volodymyr Zotov
2025-06-06 16:12:25 -05:00
parent 72511ed687
commit ac06f8db13
2 changed files with 8 additions and 5 deletions

View File

@@ -2,6 +2,7 @@ package client
import (
"errors"
"fmt"
"os"
"github.com/1Password/onepassword-operator/pkg/onepassword/client/connect"
@@ -28,6 +29,7 @@ func NewClient(integrationVersion string) (Client, error) {
}
if serviceAccountToken != "" {
fmt.Printf("Using Service Account Token")
return sdk.NewClient(sdk.Config{
ServiceAccountToken: serviceAccountToken,
IntegrationName: "1password-operator",
@@ -36,6 +38,7 @@ func NewClient(integrationVersion string) (Client, error) {
}
if connectHost != "" && connectToken != "" {
fmt.Printf("Using Connect")
return connect.NewClient(connect.Config{
ConnectHost: connectHost,
ConnectToken: connectToken,