-
Notifications
You must be signed in to change notification settings - Fork 446
feature: --workspace flag for kubectl plugins #3911
Copy link
Copy link
Open
Labels
area/cliIssues or PRs related to CLI changesIssues or PRs related to CLI changesgood first issueDenotes an issue ready for a new contributor, according to the "help wanted" guidelines.Denotes an issue ready for a new contributor, according to the "help wanted" guidelines.kind/featureCategorizes issue or PR as related to a new feature.Categorizes issue or PR as related to a new feature.
Metadata
Metadata
Assignees
Labels
area/cliIssues or PRs related to CLI changesIssues or PRs related to CLI changesgood first issueDenotes an issue ready for a new contributor, according to the "help wanted" guidelines.Denotes an issue ready for a new contributor, according to the "help wanted" guidelines.kind/featureCategorizes issue or PR as related to a new feature.Categorizes issue or PR as related to a new feature.
Type
Projects
Status
New
Feature Description
Add a
-w/--workspaceflag 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?
Additional Context
No response