Skip to content

Commit 3221463

Browse files
DRA: generate deepcopy for DriverResources
Signed-off-by: Carlos Eduardo Arango Gutierrez <[email protected]>
1 parent 68f6347 commit 3221463

File tree

2 files changed

+100
-0
lines changed

2 files changed

+100
-0
lines changed

staging/src/k8s.io/dynamic-resource-allocation/resourceslice/resourceslicecontroller.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,12 +73,16 @@ type Controller struct {
7373
resources *DriverResources
7474
}
7575

76+
// +k8s:deepcopy-gen=true
77+
7678
// DriverResources is a complete description of all resources synchronized by the controller.
7779
type DriverResources struct {
7880
// Each driver may manage different resource pools.
7981
Pools map[string]Pool
8082
}
8183

84+
// +k8s:deepcopy-gen=true
85+
8286
// Pool is the collection of devices belonging to the same pool.
8387
type Pool struct {
8488
// NodeSelector may be different for each pool. Must not get set together
@@ -94,6 +98,8 @@ type Pool struct {
9498
Devices []resourceapi.Device
9599
}
96100

101+
// +k8s:deepcopy-gen=true
102+
97103
// Owner is the resource which is meant to be listed as owner of the resource slices.
98104
// For a node the UID may be left blank. The controller will look it up automatically.
99105
type Owner struct {

staging/src/k8s.io/dynamic-resource-allocation/resourceslice/zz_generated.deepcopy.go

Lines changed: 94 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)