Uploaded image for project: 'MicroShift'
  1. MicroShift
  2. USHIFT-5746

User mode: If non-root, use user's KUBECONFIG to query API server

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Done
    • Icon: Undefined Undefined
    • None
    • None
    • None
    • None
    • None
    • None
    • uShift Sprint 275

      Let's say use wants to run the command to check something random:

      $ microshift healthcheck --namespace openshift-dns --deployments dns-default
      ??? E0516 09:21:15.253262   57996 run.go:72] "command failed" err="command must be run with root privileges"
      
      $ sudo microshift healthcheck --namespace openshift-dns --deployments dns-default
      ??? I0516 09:21:17.923228   58110 service.go:26] microshift.service is not enabled 

       

      I think these checks could be avoided in "user mode":

      • Use $KUBECONFIG to access API Server
      • Don't check state of MicroShift service

              pmatusza@redhat.com Patryk Matuszak
              pmatusza@redhat.com Patryk Matuszak
              None
              None
              None
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: