Pass logger to print what what type of client is used Connect or Service Account

This commit is contained in:
Volodymyr Zotov
2025-06-16 21:04:22 -05:00
parent 1aa27fdba0
commit 55b5781d7a
2 changed files with 15 additions and 6 deletions

View File

@@ -152,7 +152,10 @@ func main() {
}
// Setup One Password Client
opClient, err := opclient.NewFromEnvironment(version.OperatorVersion)
opClient, err := opclient.NewFromEnvironment(opclient.Config{
Logger: setupLog,
Version: version.OperatorVersion,
})
if err != nil {
setupLog.Error(err, "unable to create 1Password client")
os.Exit(1)