Kubectl to displace namespaces under a cluser

Hi,
i want kubectl command to display the namespaces under that cluster only.
example: i have two cluster named as CLUSTER1 CLUSTER2
kubectl config set-cluster CLUSTER2 ->set to CLUSTER2
but when i ran the below command it is displaying all the clusters under CLUSTER1 and CLUSTER2
kubectl get namespace

so i want kubectl command to display the namespaces under CLUSTER2 only.
any idea on this.

You can try with --cluster or --context flags:

kubectl get ns --cluster=<cluster-name>

Let me know if it works.