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.
When I run
istioctl get <xxx>, it always return all resources under allnamespaces, this is not right, we should not return resources under current namespace.We should follow same way as Kubernetes like
kuebctl get.kubectl getwill only return resources under current namespace, but it will not return resources under other namespaces without flag--all-namespacesand specified permissions.