Commit f4cf45ee authored by Kris's avatar Kris

Removing indirection from proxy exec test

I removed the netexec and goproxy pods from the proxy exec test. Instead it now runs kubectl locally and the proxy is running in-process. Since Go won't proxy for localhost requests, this test cannot pass if the API server is local. However it was already disabled for local clusters.
parent 2c471bce
...@@ -1615,6 +1615,11 @@ func NewKubectlCommand(args ...string) *kubectlBuilder { ...@@ -1615,6 +1615,11 @@ func NewKubectlCommand(args ...string) *kubectlBuilder {
return b return b
} }
func (b *kubectlBuilder) WithEnv(env []string) *kubectlBuilder {
b.cmd.Env = env
return b
}
func (b *kubectlBuilder) WithTimeout(t <-chan time.Time) *kubectlBuilder { func (b *kubectlBuilder) WithTimeout(t <-chan time.Time) *kubectlBuilder {
b.timeout = t b.timeout = t
return b return b
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment