Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature enabling verbose for werf kubectl get cli command #6319

Open
1 task done
smilingDima opened this issue Aug 22, 2024 · 0 comments
Open
1 task done

Feature enabling verbose for werf kubectl get cli command #6319

smilingDima opened this issue Aug 22, 2024 · 0 comments

Comments

@smilingDima
Copy link

Before proceeding

  • I didn't find a similar issue

Problem

I have problem connecting gitlab to k8s:
werf coverage

Error: release deploy: construct kube client factory: Kubernetes cluster unreachable: error getting kubernetes server version: Get "http://localhost:8080/version": dial tcp [::1]:8080: connect: connection refused

I'm trying to view more information and enable verbose output.
But $ werf kubectl get nodes -v=10 returns:

Error: unknown shorthand flag: 'v' in -v=10
See 'werf kubectl get --help' for usage.

Solution (if you have one)

Adding permission to pass -v flag.

Additional information

No response

drey added a commit to drey/werf that referenced this issue Nov 14, 2024
`cmd.NewDefaultKubectlCommandWithArgs()` does not inject log arbitrary flags required by args like "-v=10".

I had a look on  how `kubectl` is originally run and found `logs.AddFlags(kubectlCmd.PersistentFlags())` call here -
in the https://github.com/kubernetes/component-base/blob/55c45bc78189d14353588befc15715b156914ce7/cli/run.go#L85C1-L118C1

Fix bug werf#6319
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants