mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-20 01:23:48 +00:00
Don't print reason or message if they are empty on pods
For running pods they are typically empty and convey no value. Don't print images twice.
This commit is contained in:
@@ -567,14 +567,15 @@ var _ = Describe("Kubectl client", func() {
|
||||
requiredStrings := [][]string{
|
||||
{"Name:", "redis-master-"},
|
||||
{"Namespace:", ns},
|
||||
{"Image(s):", "redis"},
|
||||
{"Node:"},
|
||||
{"Labels:", "app=redis", "role=master"},
|
||||
{"Status:", "Running"},
|
||||
{"Reason:"},
|
||||
{"Message:"},
|
||||
{"IP:"},
|
||||
{"Controllers:", "ReplicationController/redis-master"}}
|
||||
{"Controllers:", "ReplicationController/redis-master"},
|
||||
{"Image:", "redis"},
|
||||
{"cpu:", "BestEffort"},
|
||||
{"State:", "Running"},
|
||||
}
|
||||
checkOutput(output, requiredStrings)
|
||||
})
|
||||
|
||||
|
Reference in New Issue
Block a user