Skip to content

Commit e69ccae

Browse files
committed
dynamic resource allocation: namespaced ResourceClass parameters
The API shouldn't dictate how drivers receive ResourceClass parameters. It might make sense to use namespaced objects, perhaps because then cleaning up a deployment is easier, or an existing object can be reused (like a ConfigMap for the test driver).
1 parent 1703065 commit e69ccae

File tree

1 file changed

+5
-3
lines changed
  • keps/sig-node/3063-dynamic-resource-allocation

1 file changed

+5
-3
lines changed

keps/sig-node/3063-dynamic-resource-allocation/README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1130,8 +1130,6 @@ type ResourceClass struct {
11301130
// will be able to distinguish between parameters stored here and and
11311131
// those stored in ResourceClaimSpec. These parameters here can only be
11321132
// set by cluster administrators.
1133-
//
1134-
// The object must be cluster-scoped.
11351133
Parameters ResourceClassParametersReference
11361134
11371135
// Only nodes matching the selector will be considered by the scheduler
@@ -1528,7 +1526,7 @@ type ResourceClaimTemplate struct {
15281526
}
15291527
15301528
// ResourceClassParametersReference contains enough information to let you locate the
1531-
// parameters for a ResourceClass. The object must be cluster-scoped.
1529+
// parameters for a ResourceClass.
15321530
type ResourceClassParametersReference struct {
15331531
// APIGroup is the group for the resource being referenced.
15341532
// If APIGroup is not specified, the specified Kind must be in the core API group.
@@ -1539,6 +1537,10 @@ type ResourceClassParametersReference struct {
15391537
Kind string
15401538
// Name is the name of resource being referenced
15411539
Name string
1540+
// Namespace that contains the referenced resource. Must be empty
1541+
// for cluster-scoped resources and non-empty for namespaced
1542+
// resources.
1543+
Namespace string
15421544
}
15431545
15441546
// ResourceClaimParametersReference contains enough information to let you locate the

0 commit comments

Comments
 (0)