⚠ This page is served via a proxy. Original site: https://github.com
This service does not collect credentials or authentication data.
Skip to content

CLI shows kubectl REST flags (e.g. --disable-compression) that are not supported #25875

@nitishfy

Description

@nitishfy

Checklist:

  • I've searched in the docs and FAQ for my answer: https://bit.ly/argocd-faq.
  • I've included steps to reproduce the bug.
  • I've pasted the output of argocd version.

Describe the bug

Some argocd commands display Kubernetes REST / kubectl flags such as --disable-compression in --help, but passing these flags results in unknown flag errors at runtime. This is confusing for users and suggests functionality that is not actually supported. For eg. #25842

> argocd cluster -h
  Flags:
      --as string                      Username to impersonate for the operation
      --as-group stringArray           Group to impersonate for the operation, this flag can be repeated to specify multiple groups.
      --as-uid string                  UID to impersonate for the operation
      --certificate-authority string   Path to a cert file for the certificate authority
      --client-certificate string      Path to a client certificate file for TLS
      --client-key string              Path to a client key file for TLS
      --cluster string                 The name of the kubeconfig cluster to use
      --context string                 The name of the kubeconfig context to use
      --disable-compression            If true, opt-out of response compression for all requests to the server
❯ argocd cluster --disable-compression list
Error: unknown flag: --disable-compression

To Reproduce

Execute the following command:

❯ argocd cluster --disable-compression list
Error: unknown flag: --disable-compression

Expected behavior

Either:

  • The flag should work as advertised, or
  • The flag should not be shown in the CLI help output

Version

argocd: v3.2.0-rc4+1963030
  BuildDate: 2025-10-21T19:55:52Z
  GitCommit: 1963030721f03983137116fcff1aeb8e165453eb
  GitTreeState: clean
  GoVersion: go1.25.0  Compiler: gc
  Platform: darwin/arm64

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingcomponent:cliIssue related to the Argo CD CLItriage/pendingThis issue needs further triage to be correctly classified

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions