Commit Graph
13 Commits
Author SHA1 Message Date
Mohammadreza Asadollahifard c1b3a83514 refactor: clean up color output imports in list, root, and status files
Signed-off-by: Mohammadreza Asadollahifard <mazafard@gmail.com>
2025-07-11 21:19:16 +01:00
Mohammadreza Asadollahifard d28343550f feat: make color output opt-in by default
Signed-off-by: Mohammadreza Asadollahifard <mazafard@gmail.com>
2025-07-11 21:08:32 +01:00
Mohammadreza Asadollahifard b72db06c49 refactor: replace NoColor with ColorMode for improved color output control
Signed-off-by: Mohammadreza Asadollahifard <mazafard@gmail.com>
2025-07-11 20:52:40 +01:00
Matt Farina f0cf9c28f0 Move logging setup to be configurable
Signed-off-by: Matt Farina <matt.farina@suse.com>
2025-07-01 15:51:25 -04:00
Benoit Tigeot e7eedae97c Use the logger with proper handling of dynamic debug on 2 locations
Signed-off-by: Benoit Tigeot <benoit.tigeot@lifen.fr>
2025-04-10 16:02:05 +02:00
Benoit Tigeot cbaac7652d Call slog directly instead of using a wrapper
Signed-off-by: Benoit Tigeot <benoit.tigeot@lifen.fr>
2025-04-10 15:35:36 +02:00
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
Benoit Tigeot b2380720eb Migrate to pure slog without a custom wrapper
Signed-off-by: Benoit Tigeot <benoit.tigeot@lifen.fr>
2025-04-07 16:46:08 +02:00
Benoit Tigeot 83cdffe4ae Migrate to a dedicated internal package for slog adapter + migrate more
Signed-off-by: Benoit Tigeot <benoit.tigeot@lifen.fr>
2025-04-07 15:36:36 +02:00
Austin Abro 022d4db6af move logic from cmd/helm to pkg/cmd
Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
2025-03-03 18:43:03 +00:00
Austin Abro 20c75f0c10 fix namespace assignment not passing through
Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
2025-03-03 17:26:21 +00:00
Rongrong Liu 12b8eb8b61 fix:add proxy support when mTLS configured
Signed-off-by: Rongrong Liu <lori.rongrong.liu@gmail.com>
2025-03-01 07:41:06 -08:00
Austin Abro 297f7b9acb squash
Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
2025-02-24 15:11:54 +00:00