plugin-barman-cloud icon indicating copy to clipboard operation
plugin-barman-cloud copied to clipboard

test(e2e): reduce test output verbosity with k3s logging controls

Open mnencia opened this issue 10 months ago • 0 comments

This PR uses a fork of the k3s dagger module that adds:

  1. Optional debug parameter (defaults to false) to disable k3s server debug output
  2. Optional kubeletVerbosity parameter (defaults to 1) to control kubelet logging

This significantly improves readability of e2e test output by eliminating verbose logs like:

  • K3s server: certificate generation, database initialization, control plane startup
  • Kubelet: container operations, volume cleanup, pod lifecycle events

The kubelet verbosity is controlled via kubelet configuration file placed in /var/lib/rancher/k3s/agent/etc/kubelet.conf.d/99-logging.conf. K3s merges config files alphabetically, so this overrides the default 00-k3s-defaults.conf settings before kubelet initializes, avoiding the logging configuration immutability issue.

The fork will be used until these changes are merged upstream.

mnencia avatar Jan 13 '26 09:01 mnencia