Provide an environment variable or flag to prevent cilium version from contacting GitHub (or any other Internet endpoint). I suppose contacting the Kubernetes cluster in the defined kube config context is fine, since I think this is how tools like istioctl version and others also work.
General Information
I'm using the latest cilium CLI (as of this issue), but this issue exists going back a few years now looking at the git blame.
How to reproduce the issue
Don't have connectivity to GitHub
(Optional) Have strace installed.
Run strace -ff -e connect cilium version (or just cilium version, strace is only used to verify what's hanging)
Verify the command hangs. If using strace, you can see it's stuck trying to connect to GitHub IP addresses.
Proposal
Provide an environment variable or flag to prevent
cilium version
from contacting GitHub (or any other Internet endpoint). I suppose contacting the Kubernetes cluster in the defined kube config context is fine, since I think this is how tools likeistioctl version
and others also work.General Information
I'm using the latest cilium CLI (as of this issue), but this issue exists going back a few years now looking at the git blame.
How to reproduce the issue
strace
installed.strace -ff -e connect cilium version
(or justcilium version
,strace
is only used to verify what's hanging)strace
, you can see it's stuck trying toconnect
to GitHub IP addresses.