Skip to content

istioctl get should only return resource for current namespace #5870

@gyliu513

Description

@gyliu513

When I run istioctl get <xxx>, it always return all resources under all namespaces, this is not right, we should not return resources under current namespace.

root@gyliu-icp-6:~# istioctl get virtualservices
NAME	KIND						NAMESPACE
bookinfoVirtualService.networking.istio.io.v1alpha3	bookinfo
ratings	VirtualService.networking.istio.io.v1alpha3	bookinfo
reviews	VirtualService.networking.istio.io.v1alpha3	bookinfo
root@gyliu-icp-6:~# istioctl version
Version: release-0.8-20180520-18-17
GitRevision: 6dbbacac0b478017179480778637c9d8d781ac25
User: root@2e233c7ab40f
Hub: gcr.io/istio-release
GolangVersion: go1.10.1
BuildStatus: Clean

We should follow same way as Kubernetes like kuebctl get.

kubectl get will only return resources under current namespace, but it will not return resources under other namespaces without flag --all-namespaces and specified permissions.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions