K8s: for tests to use kubectl access, port-forwarding requires 0.0.0.0 (#94836)

This commit is contained in:
Charandas 2024-10-17 11:15:57 -07:00 committed by GitHub
parent c12a662f9f
commit 2fd4fe40f0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -26,7 +26,7 @@ func applyGrafanaConfig(cfg *setting.Cfg, features featuremgmt.FeatureToggles, o
if cfg.Env == setting.Dev {
defaultLogLevel = 10
port = 6443
ip = net.ParseIP("127.0.0.1")
ip = net.ParseIP("0.0.0.0")
apiURL = fmt.Sprintf("https://%s:%d", ip, port)
}