Skip to content

Document ClientOptLogger for SDK registry client#2116

Open
promptless-for-oss wants to merge 2 commits into
helm:mainfrom
Promptless:promptless/document-registry-clientoptlogger
Open

Document ClientOptLogger for SDK registry client#2116
promptless-for-oss wants to merge 2 commits into
helm:mainfrom
Promptless:promptless/document-registry-clientoptlogger

Conversation

@promptless-for-oss
Copy link
Copy Markdown
Contributor

Open this suggestion in Promptless to view citations and reasoning process

Adds documentation for the new registry.ClientOptLogger option that allows SDK users to inject a custom *slog.Logger when creating a registry client, preventing Helm from mutating global process state.

Trigger Events


Tip: Use labels in the Promptless dashboard to categorize suggestions by release or team 🏷️

Document the new registry.ClientOptLogger option that allows SDK users
to inject a custom *slog.Logger when creating a registry client. This
prevents Helm from mutating global process state, which is important
when embedding Helm as a library.

Closes helm/helm#31724

Signed-off-by: promptless[bot] <promptless[bot]@users.noreply.github.com>
Comment thread sdkexamples/main.go
@@ -55,6 +56,13 @@ func newRegistryClient(settings *cli.EnvSettings, certFile, keyFile, caFile stri
opts = append(opts, registry.ClientOptPlainHTTP())
}
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added registry.ClientOptLogger documentation based on PR #31833, which introduces this new option to allow SDK users to inject custom *slog.Logger instances rather than relying on global slog state.

Source: helm/helm#31833

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant