Skip to content

Instantly share code, notes, and snippets.

@stbenjam
Last active April 6, 2022 21:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stbenjam/cf2a6af598ded4014c67dfe13904affe to your computer and use it in GitHub Desktop.
Save stbenjam/cf2a6af598ded4014c67dfe13904affe to your computer and use it in GitHub Desktop.
pkg/network/ovn_kubernetes.go:97:31: host:port in url should be constructed with net.JoinHostPort and not directly with fmt.Sprintf (gosprintfhostport)
data.Data["K8S_APISERVER"] = fmt.Sprintf("https://%s:%s", apiServer.Host, apiServer.Port)
^
pkg/network/ovn_kubernetes.go:98:37: host:port in url should be constructed with net.JoinHostPort and not directly with fmt.Sprintf (gosprintfhostport)
data.Data["K8S_LOCAL_APISERVER"] = fmt.Sprintf("https://%s:%s", localAPIServer.Host, localAPIServer.Port)
test/e2e/storage/vsphere/connection.go:75:27: host:port in url should be constructed with net.JoinHostPort and not directly with fmt.Sprintf (gosprintfhostport)
url, err := neturl.Parse(fmt.Sprintf("https://%s:%s/sdk", vs.Config.Hostname, vs.Config.Port))
^
test/e2e/upgrades/apps/cassandra.go:120:21: host:port in url should be constructed with net.JoinHostPort and not directly with fmt.Sprintf (gosprintfhostport)
r, err := http.Get(fmt.Sprintf("http://%s:8080/list", t.ip))
^
test/e2e/upgrades/apps/cassandra.go:142:26: host:port in url should be constructed with net.JoinHostPort and not directly with fmt.Sprintf (gosprintfhostport)
r, err := http.PostForm(fmt.Sprintf("http://%s:8080/add", t.ip), val)
^
test/e2e/upgrades/apps/etcd.go:114:21: host:port in url should be constructed with net.JoinHostPort and not directly with fmt.Sprintf (gosprintfhostport)
r, err := http.Get(fmt.Sprintf("http://%s:8080/list", t.ip))
^
test/e2e/upgrades/apps/etcd.go:135:26: host:port in url should be constructed with net.JoinHostPort and not directly with fmt.Sprintf (gosprintfhostport)
r, err := http.PostForm(fmt.Sprintf("http://%s:8080/add", t.ip), val)
^
test/e2e/upgrades/apps/mysql.go:183:26: host:port in url should be constructed with net.JoinHostPort and not directly with fmt.Sprintf (gosprintfhostport)
r, err := http.PostForm(fmt.Sprintf("http://%s:8080/addName", t.ip), val)
^
test/e2e/upgrades/apps/mysql.go:201:21: host:port in url should be constructed with net.JoinHostPort and not directly with fmt.Sprintf (gosprintfhostport)
r, err := http.Get(fmt.Sprintf("http://%s:8080/countNames", t.ip))
^
test/e2e/windows/service.go:78:84: host:port in url should be constructed with net.JoinHostPort and not directly with fmt.Sprintf (gosprintfhostport)
assertConsistentConnectivity(f, testPod.ObjectMeta.Name, windowsOS, windowsCheck(fmt.Sprintf("http://%s:%d", nodeIP, nodePort)))
^
pkg/volume/portworx/portworx.go:67:3: host:port in url should be constructed with net.JoinHostPort and not directly with fmt.Sprintf (gosprintfhostport)
fmt.Sprintf("http://%s:%d", host.GetHostName(), osdMgmtDefaultPort),
^
pkg/volume/portworx/portworx_util.go:268:46: host:port in url should be constructed with net.JoinHostPort and not directly with fmt.Sprintf (gosprintfhostport)
client, err := volumeclient.NewDriverClient(fmt.Sprintf("http://%s:%d", hostname, port),
^
test/e2e_node/util.go:83:37: host:port in url should be constructed with net.JoinHostPort and not directly with fmt.Sprintf (gosprintfhostport)
req, err := http.NewRequest("GET", fmt.Sprintf("http://%s:%d/stats/summary", kubeletConfig.Address, kubeletConfig.ReadOnlyPort), nil)
^
test/e2e_node/gcp/gke_environment_test.go:207:17: host:port in url should be constructed with net.JoinHostPort and not directly with fmt.Sprintf (gosprintfhostport)
host = fmt.Sprintf("http://%s:%s", hostAddr, hostPort)
test/extended/util/db/postgresql.go:63:3: host:port in url should be constructed with net.JoinHostPort and not directly with fmt.Sprintf (gosprintfhostport)
fmt.Sprintf("psql postgres://%s:%s@127.0.0.1/%s -x -c \"%s\"",
^
test/extended/util/db/postgresql.go:95:3: host:port in url should be constructed with net.JoinHostPort and not directly with fmt.Sprintf (gosprintfhostport)
fmt.Sprintf("psql postgres://%s:%s@%s/%s -x -c \"SELECT 1;\"",
^
test/extended/router/certs.go:173:19: host:port in url should be constructed with net.JoinHostPort and not directly with fmt.Sprintf (gosprintfhostport)
healthzURI := fmt.Sprintf("http://%s:1936/healthz", routerIP)
^
test/extended/router/config_manager.go:80:18: host:port in url should be constructed with net.JoinHostPort and not directly with fmt.Sprintf (gosprintfhostport)
healthzURI := fmt.Sprintf("http://%s:1936/healthz", routerIP)
^
test/extended/router/config_manager.go:142:9: host:port in url should be constructed with net.JoinHostPort and not directly with fmt.Sprintf (gosprintfhostport)
uri := fmt.Sprintf("%s://%s:%d%s", proto, host, port, abspath)
^
test/extended/router/headers.go:100:18: host:port in url should be constructed with net.JoinHostPort and not directly with fmt.Sprintf (gosprintfhostport)
healthzURI := fmt.Sprintf("http://%s:1936/healthz", metricsIP)
^
test/extended/router/scoped.go:92:18: host:port in url should be constructed with net.JoinHostPort and not directly with fmt.Sprintf (gosprintfhostport)
healthzURI := fmt.Sprintf("http://%s:1936/healthz", routerIP)
^
test/extended/router/scoped.go:139:18: host:port in url should be constructed with net.JoinHostPort and not directly with fmt.Sprintf (gosprintfhostport)
healthzURI := fmt.Sprintf("http://%s:1936/healthz", routerIP)
^
test/extended/router/scoped.go:205:18: host:port in url should be constructed with net.JoinHostPort and not directly with fmt.Sprintf (gosprintfhostport)
healthzURI := fmt.Sprintf("http://%s:1936/healthz", routerIP)
^
test/extended/router/unprivileged.go:90:18: host:port in url should be constructed with net.JoinHostPort and not directly with fmt.Sprintf (gosprintfhostport)
healthzURI := fmt.Sprintf("http://%s:1936/healthz", routerIP)
^
test/extended/router/weighted.go:73:18: host:port in url should be constructed with net.JoinHostPort and not directly with fmt.Sprintf (gosprintfhostport)
healthzURI := fmt.Sprintf("http://%s:1936/healthz", routerIP)
^
test/extended/router/weighted.go:90:17: host:port in url should be constructed with net.JoinHostPort and not directly with fmt.Sprintf (gosprintfhostport)
statsURL := fmt.Sprintf("http://%s:1936/;csv", routerIP)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment