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: Provide a flag similar to -n in openshift to update/view/access/create/delete/edit resource across workspaces in kcp something like a -w/--workspace flag #2634

Open
1 task
kasturinarra opened this issue Jan 17, 2023 · 2 comments
Labels
kind/feature Categorizes issue or PR as related to a new feature.

Comments

@kasturinarra
Copy link
Contributor

kasturinarra commented Jan 17, 2023

Feature Description

Currently in kcp if a user has to update/view/access/edit/create/delete a resource in another workspace user will have to change the workspace and enter the workspace in which the resource resides to perform the above operations. It would be helpful if a flag similar to -n in openshift is available or user should be able to perform CURD operations via the absolute path of the workspace.

Proposed Solution

Provide an option similar to -n in openshift to create/view/access/edit a resource across workspaces in kcp.

Examples:

$ kubectl get ws -w my-workspace
$ kubectl get deployment -w my-kcp-workspace

Or

An absolute path to the workspace where the resource exists.

Examples:

$ kubectl get synctarget <full_path_to_locationworkspace>
$ kubectl get deployment <full_path_to_workloadworkspace>

Alternative Solutions

No response

Want to contribute?

  • I would like to work on this issue.

Additional Context

No response

@kasturinarra kasturinarra added the kind/feature Categorizes issue or PR as related to a new feature. label Jan 17, 2023
@ncdc ncdc added this to kcp Jan 17, 2023
@github-project-automation github-project-automation bot moved this to New in kcp Jan 17, 2023
@xingxingxia
Copy link
Contributor

Your examples use -n, -n is already a flag of kubectl, maybe you can suggest -w/--workspace and exemplify in your examples?

@ncdc
Copy link
Member

ncdc commented Jan 19, 2023

We can't add flags to kubectl proper, so I don't believe there is a way to achieve this directly there. We could potentially have a wrapper of some sort that adds a --ws/--workspace flag, adjusts the server, and then execs kubectl.

@kasturinarra kasturinarra changed the title feature: Provide a flag similar to -n in openshift to update/view/access/create/delete/edit resource across workspaces in kcp feature: Provide a flag similar to -n in openshift to update/view/access/create/delete/edit resource across workspaces in kcp something like a -w/--workspace flag Jan 19, 2023
@ncdc ncdc moved this from New to Backlog in kcp Jan 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature Categorizes issue or PR as related to a new feature.
Projects
Status: Backlog
Development

No branches or pull requests

3 participants