Skip to content

Add kubeconfig export and cluster listing commands #40

@maximiliantech

Description

@maximiliantech

After ocpctl env apply, only the platform cluster ends up in the kubeconfig. The onboarding cluster and any provisioned ControlPlane clusters are not accessible via kubectl without manual steps.

Two commands would fix this:

ocpctl env list clusters [<env>]
Interactive selector listing all clusters for an environment (platform, onboarding, and ControlPlane clusters from the operator's Cluster CRs). Selecting one triggers the kubeconfig export.

ocpctl env export kubeconfig -n <cluster-name>
Merges the kubeconfig for a specific cluster into ~/.kube/config. Also usable standalone for scripting.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions