Lens: AppData\Roaming blocks kubectl binaries on corporate domains

Created on 12 Aug 2020  路  3Comments  路  Source: lensapp/lens

Storing the kubectl binaries in AppData\Roaming on Windows does not work on corporate domains whereby there is usually a group policy preventing save .exe files in that folder. The kubectl binary files in Windows should be saved in AppData\Local instead.

This manifests as an EPERM: operation not permitted error when connecting to a cluster and it attempts to download the kubectl binaries.

arewindows bug

Most helpful comment

To solve this issue we will add mechanism to detect the situation when bundled kubectl does not work on app start and add two configuration options to global preferences:

  1. Option to define path where binaries will be downloaded
  2. Option to disable "smart kubectl" feature and binary downloads. Instead, user can define path to kubectl and helm3 binaries. Then, those binaries are used despite the version of Kubernetes cluster.

All 3 comments

597

Tracking as we have the same issue. We have only specific versions of kubectl and helm available to us via App-V (Virtual Apps) and we are not able to use different versions. Currently we can live with this since in VS Code for example we can set the path to these virtualized applications. We hope soon the same will be possible with Lens, where we can set the path to the executables and not have a Roaming profile... this will also help in making Lens portable.

To solve this issue we will add mechanism to detect the situation when bundled kubectl does not work on app start and add two configuration options to global preferences:

  1. Option to define path where binaries will be downloaded
  2. Option to disable "smart kubectl" feature and binary downloads. Instead, user can define path to kubectl and helm3 binaries. Then, those binaries are used despite the version of Kubernetes cluster.
Was this page helpful?
0 / 5 - 0 ratings

Related issues

diemus picture diemus  路  3Comments

fjudith picture fjudith  路  4Comments

ocdi picture ocdi  路  4Comments

snowmoonsoftware picture snowmoonsoftware  路  4Comments

aaronsssya picture aaronsssya  路  4Comments