Skip to content

Feature: stackablectl support for kubectl contexts #222

Open

Description

@NickLarsenNZ

I would like to use stackablectl against multiple clusters without having to change the default kubectl context.

For example, I can do:

kubectl --context cluster-a get pods -A
kubectl --context clister-b get pods -A

I would like to be able to do:

stackablectl --context cluster-a list stacklets
stackablectl --context cluster-b list stacklets

An alternative argument could be --kube-context in case --context is misleading, or it could mean something for stackablectl itself.

Activity

  1. NickLarsenNZ commented on Jul 25, 2024

    @NickLarsenNZ
    MemberAuthor

    Shell completion is a must, so you can do:

    stackablectl --context clus<TAB>
    stackablectl --context cluster-<TAB>
    cluster-a
    cluster-b
    

    same as kubectl

  2. NickLarsenNZ commented on Jul 25, 2024

    @NickLarsenNZ
    MemberAuthor

    This would come in handy for spinning up multiple Replicated clusters, and running tests against each in parallel.

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions