VSCode extension tries to download kubectl and tkn
When deploying this extension into Eclipse Che / OpenShift Dev Spaces, it would seem it tries to download kubectl (and I believe tkn) CLIs, even though they are already present in the UDI image.
This is causing a problem in semi-restricted networks where the workspace pod can't connect to most external sources to download these CLIs.
Ideally, the plugin should check for a compatible version of these tools before attempting to download them.
Hi @pittar we've got also another issue related to this ( #679 ).
Currently we rely on downloading a particular tkn CLI version to avoid compatibility issues. On theother hand, we don't want to package the CLI in the extension to avoid fat extensions. So, your feature request is something that can be developed to be able to use the local tkn client over downloding it. the steps can be something like :
- check if there is a setting probiding a path for a tekton cli in the system ( from #679 )
- if not, check the current PATH for a local tkn ( like try running
tkn version) and get the version installed if any - if still no client locally installed, ask for download
- if a client is installed , check that the version match with the one the current running extension supports.
- if not supported, tell user it's not supported, and ask to download the supported version
- otherwise, use the local version
WDYT ?