Skip to content

feature: --workspace flag for kubectl plugins #3911

@ntnn

Description

@ntnn

Feature Description

Add a -w / --workspace flag for kubectl plugins to override the targeted workspace.
#2634

Proposed Solution

The kubecltl plugins share a common Options: https://github.com/kcp-dev/kcp/blob/main/staging/src/github.com/kcp-dev/cli/pkg/base/options.go

This could be modified to accept a workspace path as a flag and the modify the read kubeconfig to point to the workspace indicated in --workspace.

Alternative Solutions

No response

Want to contribute?

  • I would like to work on this issue.

Additional Context

No response

Metadata

Metadata

Labels

area/cliIssues or PRs related to CLI changesgood first issueDenotes an issue ready for a new contributor, according to the "help wanted" guidelines.kind/featureCategorizes issue or PR as related to a new feature.

Type

No type

Projects

Status

New

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions