lima-vm / lima-vm/lima

can not get the pod logs forr the k3s when set http_proxy

Open
#1,113 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
21.9k
Forks
957
Avg merge
2d 6h
Merged PRs (30d)
53

Description

### Description
Can not get the pod logs because of the env `http_proxy=192.168.5.2:8080`

The install script from `https://get.k3s.io/` will create an env file.

I try to set the env in lima.yaml

```yaml
env:
no_proxy: 192.168.5.2,192.168.5.15,127.0.0.1,localhost
```
But, it's overridden by the env from the host.

Why override the env define from lima.yaml? I think it's should have high-level priority

```go
if *y.PropagateProxyEnv {
for _, name := range append(lowerVars, upperVars...) {
if value, ok := os.LookupEnv(name); ok {
if _, ok := env[name]; ok && value != env[name] {
logrus.Infof("Overriding %q value %q with %q from limactl process environment",
name, env[name], value)
}
env[name] = value
}
}
}

```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.