Skip to content

kubectl cp does not support resource/name format #1325

Open
@sanmai-NL

Description

@sanmai-NL

What would you like to be added?

kubectl cp file.txt default/pod/mypod-0365fce5-b565b9fd9-zjw8h:/tmp/

should work, but it doesn't because of the pod/ resource type in the name.

Why is this needed?

Feature parity, principle of least surprise, consistency, flexibility, suitability for scripting with kubectl get pods -o name. Other subcommands do support this syntax.

Metadata

Metadata

Assignees

Labels

kind/featureCategorizes issue or PR as related to a new feature.lifecycle/staleDenotes an issue or PR has remained open with no activity and has become stale.needs-triageIndicates an issue or PR lacks a `triage/foo` label and requires one.priority/backlogHigher priority than priority/awaiting-more-evidence.sig/cliCategorizes an issue or PR as relevant to SIG CLI.

Type

No type

Projects

Status

Backlog

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions