Skip to content

Extend log-level commands to support managed clusters#365

Open
AdamSadek wants to merge 1 commit intoprojectsveltos:mainfrom
AdamSadek:feature/extend-log-command-managed-clusters-v2
Open

Extend log-level commands to support managed clusters#365
AdamSadek wants to merge 1 commit intoprojectsveltos:mainfrom
AdamSadek:feature/extend-log-command-managed-clusters-v2

Conversation

@AdamSadek
Copy link
Copy Markdown
Contributor

@AdamSadek AdamSadek commented May 31, 2025

I first built the project to get the binary with make build.

Testing logs:

sveltosctl on  feature/extend-log-command-managed-clusters-v2 via 🐹 v1.26.2
❯ ./bin/sveltosctl log-level show
┌───────────────────────┬──────────────┐
│       COMPONENT       │  VERBOSITY   │
├───────────────────────┼──────────────┤
│ AccessManager         │ LogLevelInfo │
│ AddonManager          │ LogLevelInfo │
│ Classifier            │ LogLevelInfo │
│ ConversionWebhook     │ LogLevelInfo │                                                │ DriftDetectionManager │ LogLevelInfo │
│ EventManager          │ LogLevelInfo │
│ HealthCheckManager    │ LogLevelInfo │
│ ShardController       │ LogLevelInfo │                                                │ SveltosAgent          │ LogLevelInfo │
│ SveltosClusterManager │ LogLevelInfo │                                                │ Techsupport           │ LogLevelInfo │
│ UIBackend             │ LogLevelInfo │
└───────────────────────┴──────────────┘
sveltosctl on  feature/extend-log-command-managed-clusters-v2 via 🐹 v1.26.2           ❯ ./bin/sveltosctl log-level show --help
                                                Usage:
  sveltosctl log-level show [--namespace=<namespace>] [--clusterName=<cluster-name>] [--clusterType=<cluster-type>]
Options:
  -h --help                        Show this screen.                                         --namespace=<namespace>       (Optional) Namespace of the managed cluster.              --clusterName=<cluster-name>  (Optional) Name of the managed cluster.                   --clusterType=<cluster-type>  (Optional) Type of managed cluster: Capi or Sveltos. Defaults to Capi.
                                                                       Description:                                                                              The log-level show command shows information about current log verbosity.               If --namespace and --clusterName are provided, settings are read from the
  specified managed cluster. Otherwise they are read from the management
  cluster.
sveltosctl on  feature/extend-log-command-managed-clusters-v2 via 🐹 v1.26.2           ❯

@AdamSadek AdamSadek changed the base branch from main to dev May 31, 2025 00:44
@AdamSadek AdamSadek force-pushed the feature/extend-log-command-managed-clusters-v2 branch from 0ea007d to da08016 Compare May 31, 2025 00:57
log-level set/show/unset previously operated only on the management
cluster. Add optional --namespace, --clusterName and --clusterType
flags so that DebuggingConfiguration can also be read and written in
managed clusters (both Capi and Sveltos) via
libsveltos/clusterproxy.GetKubernetesClient. Behavior without those
flags is unchanged.

Fixes projectsveltos#41
@AdamSadek AdamSadek force-pushed the feature/extend-log-command-managed-clusters-v2 branch from a2fe01f to 596c5d6 Compare April 19, 2026 16:53
@AdamSadek AdamSadek changed the base branch from dev to main April 19, 2026 16:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant