mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-15 06:43:54 +00:00
fixes upgrade tests for kubectl skew from 1.3 to master
Signed-off-by: Jess Frazelle <me@jessfraz.com>
This commit is contained in:
parent
1d0f168158
commit
7ca6673e01
@ -541,24 +541,48 @@ var _ = framework.KubeDescribe("Kubectl client", func() {
|
||||
|
||||
By("Waiting for Redis master to start.")
|
||||
waitForOrFailWithDebug(1)
|
||||
|
||||
// Pod
|
||||
forEachPod(func(pod api.Pod) {
|
||||
output := framework.RunKubectlOrDie("describe", "pod", pod.Name, nsFlag)
|
||||
requiredStrings := [][]string{
|
||||
{"Name:", "redis-master-"},
|
||||
{"Namespace:", ns},
|
||||
{"Node:"},
|
||||
{"Labels:", "app=redis"},
|
||||
{"role=master"},
|
||||
{"Status:", "Running"},
|
||||
{"IP:"},
|
||||
{"Controllers:", "ReplicationController/redis-master"},
|
||||
{"Image:", redisImage},
|
||||
{"State:", "Running"},
|
||||
{"QoS Class:", "BestEffort"},
|
||||
}
|
||||
checkOutput(output, requiredStrings)
|
||||
})
|
||||
// this is terrible but we want 1.4.0 alpha to count as well
|
||||
classVersion, err := framework.KubectlVersionGTE(version.MustParse("v1.4.0-alpha"))
|
||||
Expect(err).NotTo(HaveOccurred())
|
||||
if classVersion {
|
||||
forEachPod(func(pod api.Pod) {
|
||||
output := framework.RunKubectlOrDie("describe", "pod", pod.Name, nsFlag)
|
||||
requiredStrings := [][]string{
|
||||
{"Name:", "redis-master-"},
|
||||
{"Namespace:", ns},
|
||||
{"Node:"},
|
||||
{"Labels:", "app=redis"},
|
||||
{"role=master"},
|
||||
{"Status:", "Running"},
|
||||
{"IP:"},
|
||||
{"Controllers:", "ReplicationController/redis-master"},
|
||||
{"Image:", redisImage},
|
||||
{"State:", "Running"},
|
||||
{"QoS Class:", "BestEffort"},
|
||||
}
|
||||
checkOutput(output, requiredStrings)
|
||||
})
|
||||
} else {
|
||||
forEachPod(func(pod api.Pod) {
|
||||
output := framework.RunKubectlOrDie("describe", "pod", pod.Name, nsFlag)
|
||||
requiredStrings := [][]string{
|
||||
{"Name:", "redis-master-"},
|
||||
{"Namespace:", ns},
|
||||
{"Node:"},
|
||||
{"Labels:", "app=redis"},
|
||||
{"role=master"},
|
||||
{"Status:", "Running"},
|
||||
{"IP:"},
|
||||
{"Controllers:", "ReplicationController/redis-master"},
|
||||
{"Image:", redisImage},
|
||||
{"State:", "Running"},
|
||||
{"QoS Tier:", "BestEffort"},
|
||||
}
|
||||
checkOutput(output, requiredStrings)
|
||||
})
|
||||
}
|
||||
|
||||
// Rc
|
||||
output := framework.RunKubectlOrDie("describe", "rc", "redis-master", nsFlag)
|
||||
|
Loading…
Reference in New Issue
Block a user