mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-25 20:53:33 +00:00
Fix breakage of serve_hostnames soak test
This commit is contained in:
parent
86d3072492
commit
fe02c1247f
@ -23,7 +23,6 @@ a serivce
|
||||
package main
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"flag"
|
||||
"fmt"
|
||||
"math/rand"
|
||||
@ -248,7 +247,7 @@ func main() {
|
||||
continue
|
||||
}
|
||||
var r api.Status
|
||||
if err := json.Unmarshal(hostname, &r); err != nil {
|
||||
if err := api.Scheme.DecodeInto(hostname, &r); err != nil {
|
||||
break
|
||||
}
|
||||
if r.Status == api.StatusFailure {
|
||||
|
Loading…
Reference in New Issue
Block a user