question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Get command failed: error: there is no need to specify a resource type as a separate argument

See original GitHub issue

When expanding any pod on a node I get the following error:

Get command failed: error: there is no need to specify a resource type as a separate argument when passing arguments in resource/name form (e.g. 'kubectl get resource/<resource_name>' instead of 'kubectl get resource resource/<resource_name>'
Error loading document: Error: cannot open k8smsx://loadkubernetescore/pod-kube-system%20%20%20%20%20%20%20%20%20%20%20%20coredns-9bc57ddff-vnrft.yaml?ns%3Dall%26value%3Dpod%2Fkube-system%20%20%20%20%20%20%20%20%20%20%20%20coredns-9bc57ddff-vnrft%26_%3D1611860122528. Detail: Unable to read file 'k8smsx://loadkubernetescore/pod-kube-system            coredns-9bc57ddff-vnrft.yaml?ns=all&value=pod/kube-system            coredns-9bc57ddff-vnrft&_=1611860122528' (Get command failed: error: there is no need to specify a resource type as a separate argument when passing arguments in resource/name form (e.g. 'kubectl get resource/<resource_name>' instead of 'kubectl get resource resource/<resource_name>'
)

Repro:

  • Expand cluster
  • Expand Nodes
  • Expand a node
  • Expand a pod (Ex : coredns)

Expected: Not sure, first time using this extension

Actual: UX spins for a while, then creates a sub-node under the pod with the text ‘Error’ and VSCode pops the above error messages.

Tested with these kubectl/AKS versions:

kubectl version
Client Version: version.Info{Major:"1", Minor:"20", GitVersion:"v1.20.2", GitCommit:"faecb196815e248d3ecfb03c680a4507229c2a56", GitTreeState:"clean", BuildDate:"2021-01-13T13:28:09Z", GoVersion:"go1.15.5", Compiler:"gc", Platform:"windows/amd64"}
Server Version: version.Info{Major:"1", Minor:"18", GitVersion:"v1.18.8", GitCommit:"c86ad89b8715ed17fd55b87cbb2888ccc6fa9878", GitTreeState:"clean", BuildDate:"2020-09-25T01:53:27Z", GoVersion:"go1.13.15", Compiler:"gc", Platform:"linux/amd64"}

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5

github_iconTop GitHub Comments

7reactions
itowlsoncommented, Jan 28, 2021

Fix is out for review and should be in the next release. Thanks for the precise and methodical bug report and repro instructions - this really helped to nail it quickly.

1reaction
itowlsoncommented, Jan 28, 2021

Okay #797 introduced a bug in outputUtils.ts > findPositionHeaders (line 31) where it would get the wrong position for any column whose header was a substring of an earlier header. This kubectl output has NAMESPACE followed by NAME so we incorrectly start the NAME column at the position of the NAMESPACE column and this truncates the NAMESPACE column. This should be an easy fix - fingers crossed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error there is no need to specify a resource type as a separate ...
Error there is no need to specify a resource type as a separate argument when passing arguments in resource name form.
Read more >
kubectl set image error: arguments in resource/name form ...
I want to deploy my project to the Kubernetes ...
Read more >
7.6 - kubectl get deployments, rs, pods -o yaml
error : there is no need to specify a resource type as a separate argument when passing arguments in resource/name f orm (e.g....
Read more >
CLI not properly handling -o jsontemplate #13784 - GitHub
I have loaded a template with: oc create -f ... .objects[] } error: there is no need to specify a resource type as...
Read more >
Resource type FAQ - CloudFormation Command Line Interface
A: For non-AWS API calls which require authentication and authorization, you should create properties in your resource type which contain the credentials.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found