Commit 34e9478c authored by Clayton Coleman's avatar Clayton Coleman

Use pod logs subresource from e2e

Means that e2e code doesn't need to access the proxy
parent 56093b77
...@@ -1144,10 +1144,11 @@ func testContainerOutputMatcher(scenarioName string, ...@@ -1144,10 +1144,11 @@ func testContainerOutputMatcher(scenarioName string,
for time.Now().Sub(start) < (60 * time.Second) { for time.Now().Sub(start) < (60 * time.Second) {
err = nil err = nil
logs, err = c.Get(). logs, err = c.Get().
Prefix("proxy"). Resource("pods").
Resource("nodes"). Namespace(ns).
Name(podStatus.Spec.NodeName). Name(pod.Name).
Suffix("containerLogs", ns, podStatus.Name, containerName). SubResource("log").
Param("container", containerName).
Do(). Do().
Raw() Raw()
if err == nil && strings.Contains(string(logs), "Internal Error") { if err == nil && strings.Contains(string(logs), "Internal Error") {
......
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