Uploaded image for project: 'Red Hat OpenShift Dev Spaces (formerly CodeReady Workspaces) '
  1. Red Hat OpenShift Dev Spaces (formerly CodeReady Workspaces)
  2. CRW-7877

KubeConfig file is getting malformed when workspace started with persistent $HOME directory

XMLWordPrintable

    • False
    • None
    • False

      Description of problem:

      Users have some kind of annoying issue on Dev Spaces. When using empty workspace with persistent user directory. On subsequent restarts of workspace, the kubeconfig file (/home/user/.kube/config), gets malformed to the point oc cli is unable to read config:

      $ oc get pods
      error: error loading config file "/home/user/.kube/config": yaml: mapping values are not allowed in this context
      

      When we opened file, It's structure is lacking line breaks, making config a one liner. Deleting file and logging to the cluster using "Copy logging command" works, but file gets corrupted on next restart.
       

      Additional Information :

      Upstream bug found similar to this issue: https://github.com/eclipse-che/che/issues/23238

              ivinokur-1 Igor Vinokur
              rhn-support-dkarde Dipak Karde
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: