helm/pkg/cmd
Benoit Tigeot 6b5fa33633
debug log level is dynamic and set after Logger creation
So we should use dynamic handler to set the log level after. With this
patch we can clearly see the output. Before we were always stuck in log
level "info" and not seeing debug log level

```
bin/helm upgrade --install --debug --wait frontend \
--namespace test \
--set replicaCount=2 \
--set backend=http://backend-podinfo:9898/echo \
podinfo/podinfo
level=DEBUG msg="getting history for release" release=frontend
level=DEBUG msg="preparing upgrade" name=frontend
level=DEBUG msg="performing update" name=frontend
level=DEBUG msg="creating upgraded release" name=frontend
level=DEBUG msg="checking resources for changes" resources=2
level=DEBUG msg="no changes detected" kind=Service name=frontend-podinfo
level=DEBUG msg="patching resource" kind=Deployment name=frontend-podinfo namespace=test
level=DEBUG msg="waiting for resources" count=2 timeout=5m0s
level=DEBUG msg="waiting for resource" name=frontend-podinfo kind=Deployment expectedStatus=Current actualStatus=Unknown
level=DEBUG msg="updating status for upgraded release" name=frontend
Release "frontend" has been upgraded. Happy Helming!
NAME: frontend
LAST DEPLOYED: Thu Apr 10 09:56:25 2025
NAMESPACE: test
STATUS: deployed
REVISION: 6
DESCRIPTION: Upgrade complete
```

Signed-off-by: Benoit Tigeot <benoit.tigeot@lifen.fr>
2025-04-10 10:03:13 +02:00
..
require squash 2025-02-24 15:11:54 +00:00
search merge 2025-02-26 13:20:35 +00:00
testdata debug log level is dynamic and set after Logger creation 2025-04-10 10:03:13 +02:00
completion.go squash 2025-02-24 15:11:54 +00:00
completion_test.go merge 2025-02-27 13:55:49 +00:00
create.go gofmt 2025-02-26 13:21:00 +00:00
create_test.go fix: correct expected number of template files in unit-test 2025-03-11 16:47:44 +01:00
dependency.go squash 2025-02-24 15:11:54 +00:00
dependency_build.go squash 2025-02-24 15:11:54 +00:00
dependency_build_test.go merge 2025-02-26 13:20:35 +00:00
dependency_test.go squash 2025-02-24 15:11:54 +00:00
dependency_update.go squash 2025-02-24 15:11:54 +00:00
dependency_update_test.go merge 2025-02-26 13:20:35 +00:00
docs.go squash 2025-02-24 15:11:54 +00:00
docs_test.go squash 2025-02-24 15:11:54 +00:00
env.go squash 2025-02-24 15:11:54 +00:00
env_test.go squash 2025-02-24 15:11:54 +00:00
flags.go Migrate to pure slog without a custom wrapper 2025-04-07 16:46:08 +02:00
flags_test.go merge 2025-02-27 13:55:49 +00:00
get.go squash 2025-02-24 15:11:54 +00:00
get_all.go squash 2025-02-24 15:11:54 +00:00
get_all_test.go merge 2025-02-27 13:55:49 +00:00
get_hooks.go squash 2025-02-24 15:11:54 +00:00
get_hooks_test.go merge 2025-02-27 13:55:49 +00:00
get_manifest.go squash 2025-02-24 15:11:54 +00:00
get_manifest_test.go merge 2025-02-27 13:55:49 +00:00
get_metadata.go squash 2025-02-24 15:11:54 +00:00
get_metadata_test.go merge 2025-02-27 13:55:49 +00:00
get_notes.go squash 2025-02-24 15:11:54 +00:00
get_notes_test.go merge 2025-02-27 13:55:49 +00:00
get_test.go squash 2025-02-24 15:11:54 +00:00
get_values.go squash 2025-02-24 15:11:54 +00:00
get_values_test.go merge 2025-02-27 13:55:49 +00:00
helpers_test.go Migrate to pure slog without a custom wrapper 2025-04-07 16:46:08 +02:00
history.go merge 2025-02-27 13:55:49 +00:00
history_test.go merge 2025-02-27 13:55:49 +00:00
install.go Migrate to pure slog without a custom wrapper 2025-04-07 16:46:08 +02:00
install_test.go squash 2025-02-24 15:11:54 +00:00
lint.go merge 2025-02-26 13:20:35 +00:00
lint_test.go squash 2025-02-24 15:11:54 +00:00
list.go Migrate to pure slog without a custom wrapper 2025-04-07 16:46:08 +02:00
list_test.go merge 2025-02-27 13:55:49 +00:00
load_plugins.go squash 2025-02-24 15:11:54 +00:00
package.go squash 2025-02-24 15:11:54 +00:00
package_test.go merge 2025-02-26 13:20:35 +00:00
plugin.go Migrate to pure slog without a custom wrapper 2025-04-07 16:46:08 +02:00
plugin_install.go Migrate to pure slog without a custom wrapper 2025-04-07 16:46:08 +02:00
plugin_list.go Linting 2025-04-07 17:49:03 +02:00
plugin_test.go merge 2025-02-27 13:55:49 +00:00
plugin_uninstall.go Migrate to pure slog without a custom wrapper 2025-04-07 16:46:08 +02:00
plugin_update.go Migrate to pure slog without a custom wrapper 2025-04-07 16:46:08 +02:00
printer.go squash 2025-02-24 15:11:54 +00:00
profiling.go squash 2025-02-24 15:11:54 +00:00
pull.go Migrate to pure slog without a custom wrapper 2025-04-07 16:46:08 +02:00
pull_test.go squash 2025-02-24 15:11:54 +00:00
push.go squash 2025-02-24 15:11:54 +00:00
push_test.go squash 2025-02-24 15:11:54 +00:00
registry.go squash 2025-02-24 15:11:54 +00:00
registry_login.go Migrate to pure slog without a custom wrapper 2025-04-07 16:46:08 +02:00
registry_login_test.go squash 2025-02-24 15:11:54 +00:00
registry_logout.go squash 2025-02-24 15:11:54 +00:00
registry_logout_test.go squash 2025-02-24 15:11:54 +00:00
release_testing.go squash 2025-02-24 15:11:54 +00:00
release_testing_test.go squash 2025-02-24 15:11:54 +00:00
repo.go squash 2025-02-24 15:11:54 +00:00
repo_add.go squash 2025-02-24 15:11:54 +00:00
repo_add_test.go squash 2025-02-24 15:11:54 +00:00
repo_index.go squash 2025-02-24 15:11:54 +00:00
repo_index_test.go squash 2025-02-24 15:11:54 +00:00
repo_list.go squash 2025-02-24 15:11:54 +00:00
repo_list_test.go squash 2025-02-24 15:11:54 +00:00
repo_remove.go squash 2025-02-24 15:11:54 +00:00
repo_remove_test.go squash 2025-02-24 15:11:54 +00:00
repo_test.go squash 2025-02-24 15:11:54 +00:00
repo_update.go fix(concurrency): add mutex to protect repoFailList and out in updateCharts 2025-04-05 17:47:38 +03:00
repo_update_test.go fix(concurrency): add mutex to protect repoFailList and out in updateCharts 2025-04-05 17:47:38 +03:00
rollback.go update to get waiter instead of set 2025-03-25 13:55:39 +00:00
rollback_test.go merge 2025-02-27 13:55:49 +00:00
root.go debug log level is dynamic and set after Logger creation 2025-04-10 10:03:13 +02:00
root_test.go squash 2025-02-24 15:11:54 +00:00
search.go squash 2025-02-24 15:11:54 +00:00
search_hub.go Leverage slog.Any for errors 2025-04-07 18:26:48 +02:00
search_hub_test.go squash 2025-02-24 15:11:54 +00:00
search_repo.go Leverage slog.Any for errors 2025-04-07 18:26:48 +02:00
search_repo_test.go squash 2025-02-24 15:11:54 +00:00
search_test.go squash 2025-02-24 15:11:54 +00:00
show.go Migrate to pure slog without a custom wrapper 2025-04-07 16:46:08 +02:00
show_test.go squash 2025-02-24 15:11:54 +00:00
status.go merge 2025-02-27 13:55:49 +00:00
status_test.go merge 2025-02-27 13:55:49 +00:00
template.go merge 2025-02-27 13:55:49 +00:00
template_test.go squash 2025-02-24 15:11:54 +00:00
uninstall.go update to get waiter instead of set 2025-03-25 13:55:39 +00:00
uninstall_test.go merge 2025-02-27 13:55:49 +00:00
upgrade.go Migrate to pure slog without a custom wrapper 2025-04-07 16:46:08 +02:00
upgrade_test.go merge 2025-02-27 13:55:49 +00:00
verify.go squash 2025-02-24 15:11:54 +00:00
verify_test.go squash 2025-02-24 15:11:54 +00:00
version.go squash 2025-02-24 15:11:54 +00:00
version_test.go squash 2025-02-24 15:11:54 +00:00