mirror of
https://github.com/optim-enterprises-bv/kubernetes.git
synced 2025-11-01 18:58:18 +00:00
selector: make sure value of GT and LT is integer
This commit is contained in:
@@ -719,7 +719,7 @@ func TestPodFitsSelector(t *testing.T) {
|
||||
"matchExpressions": [{
|
||||
"key": "kernel-version",
|
||||
"operator": "Gt",
|
||||
"values": ["2.4"]
|
||||
"values": ["0204"]
|
||||
}]
|
||||
}]
|
||||
}}}`,
|
||||
@@ -727,7 +727,8 @@ func TestPodFitsSelector(t *testing.T) {
|
||||
},
|
||||
},
|
||||
labels: map[string]string{
|
||||
"kernel-version": "2.6",
|
||||
// We use two digit to denote major version and two digit for minior version.
|
||||
"kernel-version": "0206",
|
||||
},
|
||||
fits: true,
|
||||
test: "Pod with matchExpressions using Gt operator that matches the existing node",
|
||||
|
||||
Reference in New Issue
Block a user