mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-30 23:15:14 +00:00
Correct compatibility test to include kind/apiVersion for scheduler json
This commit is contained in:
parent
3902f76512
commit
6762978470
@ -34,6 +34,8 @@ func TestCompatibility_v1_Scheduler(t *testing.T) {
|
||||
// Do not change this JSON. A failure indicates backwards compatibility with 1.0 was broken.
|
||||
"1.0": {
|
||||
JSON: `{
|
||||
"kind": "Policy",
|
||||
"apiVersion": "v1",
|
||||
"predicates": [
|
||||
{"name": "MatchNodeSelector"},
|
||||
{"name": "PodFitsResources"},
|
||||
@ -69,6 +71,8 @@ func TestCompatibility_v1_Scheduler(t *testing.T) {
|
||||
// Do not change this JSON after 1.1 is tagged. A failure indicates backwards compatibility with 1.1 was broken.
|
||||
"1.1": {
|
||||
JSON: `{
|
||||
"kind": "Policy",
|
||||
"apiVersion": "v1",
|
||||
"predicates": [
|
||||
{"name": "PodFitsHostPorts"}
|
||||
],"priorities": [
|
||||
|
Loading…
Reference in New Issue
Block a user