Uploaded image for project: 'Couchbase Kubernetes'
  1. Couchbase Kubernetes
  2. K8S-572

Cbopinfo should respect $KUBECONFIG

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.1.0
    • operator, supportability
    • None

    Description

      From running cbopinfo with KUBECONFIG set to a custom kube config file, it seems that this is ignored and it uses ~/.kube/config.

      There is a --kubeconfig flag, but I expect that any kubernetes-related tool that I use should use $KUBECONFIG like kubectl does.
      To be a good citizen, we should follow the Kubernetes standards.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          For reference as to why this is necessary - the official Kubernetes docs recommends using KUBECONFIG as a way to manage multiple clusters - https://kubernetes.io/docs/tasks/access-application-cluster/configure-access-multiple-clusters/#set-the-kubeconfig-environment-variable.

          matt.carabine Matt Carabine added a comment - For reference as to why this is necessary - the official Kubernetes docs recommends using KUBECONFIG as a way to manage multiple clusters - https://kubernetes.io/docs/tasks/access-application-cluster/configure-access-multiple-clusters/#set-the-kubeconfig-environment-variable .

          There should be an example of how we can handle this in the cbopctl code.

          mikew Mike Wiederhold [X] (Inactive) added a comment - There should be an example of how we can handle this in the cbopctl code.

          People

            simon.murray Simon Murray
            matt.carabine Matt Carabine
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty