Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DRA: update allocator unit tests #49

Open
wants to merge 20 commits into
base: dra-1.31
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
11 changes: 4 additions & 7 deletions api/api-rules/violation_exceptions.list
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,10 @@ API rule violation: names_match,k8s.io/api/core/v1,VolumeSource,CephFS
API rule violation: names_match,k8s.io/api/core/v1,VolumeSource,StorageOS
API rule violation: names_match,k8s.io/api/networking/v1alpha1,ServiceCIDRSpec,CIDRs
API rule violation: names_match,k8s.io/api/networking/v1beta1,ServiceCIDRSpec,CIDRs
API rule violation: names_match,k8s.io/api/resource/v1alpha2,NamedResourcesAttributeValue,BoolValue
API rule violation: names_match,k8s.io/api/resource/v1alpha2,NamedResourcesAttributeValue,IntSliceValue
API rule violation: names_match,k8s.io/api/resource/v1alpha2,NamedResourcesAttributeValue,IntValue
API rule violation: names_match,k8s.io/api/resource/v1alpha2,NamedResourcesAttributeValue,QuantityValue
API rule violation: names_match,k8s.io/api/resource/v1alpha2,NamedResourcesAttributeValue,StringSliceValue
API rule violation: names_match,k8s.io/api/resource/v1alpha2,NamedResourcesAttributeValue,StringValue
API rule violation: names_match,k8s.io/api/resource/v1alpha2,NamedResourcesAttributeValue,VersionValue
API rule violation: names_match,k8s.io/api/resource/v1alpha3,DeviceAttribute,BoolValue
API rule violation: names_match,k8s.io/api/resource/v1alpha3,DeviceAttribute,IntValue
API rule violation: names_match,k8s.io/api/resource/v1alpha3,DeviceAttribute,StringValue
API rule violation: names_match,k8s.io/api/resource/v1alpha3,DeviceAttribute,VersionValue
API rule violation: names_match,k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1,JSONSchemaProps,Ref
API rule violation: names_match,k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1,JSONSchemaProps,Schema
API rule violation: names_match,k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1,JSONSchemaProps,XEmbeddedResource
Expand Down
82 changes: 21 additions & 61 deletions api/discovery/aggregated_v2.json
Original file line number Diff line number Diff line change
Expand Up @@ -1891,6 +1891,26 @@
{
"freshness": "Current",
"resources": [
{
"resource": "deviceclasses",
"responseKind": {
"group": "",
"kind": "DeviceClass",
"version": ""
},
"scope": "Cluster",
"singularResource": "deviceclass",
"verbs": [
"create",
"delete",
"deletecollection",
"get",
"list",
"patch",
"update",
"watch"
]
},
{
"resource": "podschedulingcontexts",
"responseKind": {
Expand Down Expand Up @@ -1926,26 +1946,6 @@
"watch"
]
},
{
"resource": "resourceclaimparameters",
"responseKind": {
"group": "",
"kind": "ResourceClaimParameters",
"version": ""
},
"scope": "Namespaced",
"singularResource": "resourceclaimparameters",
"verbs": [
"create",
"delete",
"deletecollection",
"get",
"list",
"patch",
"update",
"watch"
]
},
{
"resource": "resourceclaims",
"responseKind": {
Expand Down Expand Up @@ -2001,46 +2001,6 @@
"watch"
]
},
{
"resource": "resourceclasses",
"responseKind": {
"group": "",
"kind": "ResourceClass",
"version": ""
},
"scope": "Cluster",
"singularResource": "resourceclass",
"verbs": [
"create",
"delete",
"deletecollection",
"get",
"list",
"patch",
"update",
"watch"
]
},
{
"resource": "resourceclassparameters",
"responseKind": {
"group": "",
"kind": "ResourceClassParameters",
"version": ""
},
"scope": "Namespaced",
"singularResource": "resourceclassparameters",
"verbs": [
"create",
"delete",
"deletecollection",
"get",
"list",
"patch",
"update",
"watch"
]
},
{
"resource": "resourceslices",
"responseKind": {
Expand All @@ -2062,7 +2022,7 @@
]
}
],
"version": "v1alpha2"
"version": "v1alpha3"
}
]
},
Expand Down
82 changes: 21 additions & 61 deletions api/discovery/aggregated_v2beta1.json
Original file line number Diff line number Diff line change
Expand Up @@ -1891,6 +1891,26 @@
{
"freshness": "Current",
"resources": [
{
"resource": "deviceclasses",
"responseKind": {
"group": "",
"kind": "DeviceClass",
"version": ""
},
"scope": "Cluster",
"singularResource": "deviceclass",
"verbs": [
"create",
"delete",
"deletecollection",
"get",
"list",
"patch",
"update",
"watch"
]
},
{
"resource": "podschedulingcontexts",
"responseKind": {
Expand Down Expand Up @@ -1926,26 +1946,6 @@
"watch"
]
},
{
"resource": "resourceclaimparameters",
"responseKind": {
"group": "",
"kind": "ResourceClaimParameters",
"version": ""
},
"scope": "Namespaced",
"singularResource": "resourceclaimparameters",
"verbs": [
"create",
"delete",
"deletecollection",
"get",
"list",
"patch",
"update",
"watch"
]
},
{
"resource": "resourceclaims",
"responseKind": {
Expand Down Expand Up @@ -2001,46 +2001,6 @@
"watch"
]
},
{
"resource": "resourceclasses",
"responseKind": {
"group": "",
"kind": "ResourceClass",
"version": ""
},
"scope": "Cluster",
"singularResource": "resourceclass",
"verbs": [
"create",
"delete",
"deletecollection",
"get",
"list",
"patch",
"update",
"watch"
]
},
{
"resource": "resourceclassparameters",
"responseKind": {
"group": "",
"kind": "ResourceClassParameters",
"version": ""
},
"scope": "Namespaced",
"singularResource": "resourceclassparameters",
"verbs": [
"create",
"delete",
"deletecollection",
"get",
"list",
"patch",
"update",
"watch"
]
},
{
"resource": "resourceslices",
"responseKind": {
Expand All @@ -2062,7 +2022,7 @@
]
}
],
"version": "v1alpha2"
"version": "v1alpha3"
}
]
},
Expand Down
8 changes: 4 additions & 4 deletions api/discovery/apis.json
Original file line number Diff line number Diff line change
Expand Up @@ -300,13 +300,13 @@
{
"name": "resource.k8s.io",
"preferredVersion": {
"groupVersion": "resource.k8s.io/v1alpha2",
"version": "v1alpha2"
"groupVersion": "resource.k8s.io/v1alpha3",
"version": "v1alpha3"
},
"versions": [
{
"groupVersion": "resource.k8s.io/v1alpha2",
"version": "v1alpha2"
"groupVersion": "resource.k8s.io/v1alpha3",
"version": "v1alpha3"
}
]
},
Expand Down
8 changes: 4 additions & 4 deletions api/discovery/apis__resource.k8s.io.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
"kind": "APIGroup",
"name": "resource.k8s.io",
"preferredVersion": {
"groupVersion": "resource.k8s.io/v1alpha2",
"version": "v1alpha2"
"groupVersion": "resource.k8s.io/v1alpha3",
"version": "v1alpha3"
},
"versions": [
{
"groupVersion": "resource.k8s.io/v1alpha2",
"version": "v1alpha2"
"groupVersion": "resource.k8s.io/v1alpha3",
"version": "v1alpha3"
}
]
}
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"apiVersion": "v1",
"groupVersion": "resource.k8s.io/v1alpha2",
"groupVersion": "resource.k8s.io/v1alpha3",
"kind": "APIResourceList",
"resources": [
{
"kind": "PodSchedulingContext",
"name": "podschedulingcontexts",
"namespaced": true,
"singularName": "podschedulingcontext",
"storageVersionHash": "qtdNX2rnDEA=",
"kind": "DeviceClass",
"name": "deviceclasses",
"namespaced": false,
"singularName": "deviceclass",
"storageVersionHash": "12soGlw2WzE=",
"verbs": [
"create",
"delete",
Expand All @@ -22,38 +22,38 @@
},
{
"kind": "PodSchedulingContext",
"name": "podschedulingcontexts/status",
"name": "podschedulingcontexts",
"namespaced": true,
"singularName": "",
"singularName": "podschedulingcontext",
"storageVersionHash": "SkSsa067T7g=",
"verbs": [
"create",
"delete",
"deletecollection",
"get",
"list",
"patch",
"update"
"update",
"watch"
]
},
{
"kind": "ResourceClaimParameters",
"name": "resourceclaimparameters",
"kind": "PodSchedulingContext",
"name": "podschedulingcontexts/status",
"namespaced": true,
"singularName": "resourceclaimparameters",
"storageVersionHash": "DWM408h+ZHE=",
"singularName": "",
"verbs": [
"create",
"delete",
"deletecollection",
"get",
"list",
"patch",
"update",
"watch"
"update"
]
},
{
"kind": "ResourceClaim",
"name": "resourceclaims",
"namespaced": true,
"singularName": "resourceclaim",
"storageVersionHash": "sMQbgChfibk=",
"storageVersionHash": "ozQSw6/HyJ4=",
"verbs": [
"create",
"delete",
Expand Down Expand Up @@ -81,41 +81,7 @@
"name": "resourceclaimtemplates",
"namespaced": true,
"singularName": "resourceclaimtemplate",
"storageVersionHash": "1o2b66bFoGM=",
"verbs": [
"create",
"delete",
"deletecollection",
"get",
"list",
"patch",
"update",
"watch"
]
},
{
"kind": "ResourceClass",
"name": "resourceclasses",
"namespaced": false,
"singularName": "resourceclass",
"storageVersionHash": "wkt0Tpte++U=",
"verbs": [
"create",
"delete",
"deletecollection",
"get",
"list",
"patch",
"update",
"watch"
]
},
{
"kind": "ResourceClassParameters",
"name": "resourceclassparameters",
"namespaced": true,
"singularName": "resourceclassparameters",
"storageVersionHash": "MDq5XoTnXWQ=",
"storageVersionHash": "lbw3G0J+kqQ=",
"verbs": [
"create",
"delete",
Expand All @@ -132,7 +98,7 @@
"name": "resourceslices",
"namespaced": false,
"singularName": "resourceslice",
"storageVersionHash": "IECvOcO76kw=",
"storageVersionHash": "8Uqm6frD4H0=",
"verbs": [
"create",
"delete",
Expand Down
Loading