Skip to content

clusteradm proxy kubectl does not allow multiple clusters  #366

Open
@cwen11

Description

@cwen11

clusteradm proxy kubectl takes in a generic ClusterOption which includes both the option to specify a single cluster or multiple clusters (--clusters), but the code seems to only accept a single cluster

_, err = clusterClient.ManagedClusters().Get(context.TODO(), o.ClusterOption.Cluster, metav1.GetOptions{})
. This should be explicitly stated as a limitation and not appear in the --help output of the command, should be supported, or there should be a clearer error message ("resource name may not be empty").

Activity

qiujian16

qiujian16 commented on Sep 4, 2023

@qiujian16
Member

/kind bug

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      clusteradm proxy kubectl does not allow multiple clusters · Issue #366 · open-cluster-management-io/clusteradm