You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+12-3Lines changed: 12 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,14 @@ A Kubernetes controller for managing ResourceSlice resources with customizable b
6
6
7
7
The Resource Slice Classes controller is designed to manage ResourceSlice resources in a Kubernetes cluster. Each controller instance handles ResourceSlices of a specific class, allowing you to run multiple controllers with different behaviors for different classes.
8
8
9
-
The controller manages the ResourceSlice status updates and conditions, while the handler is responsible for implementing the resource allocation strategy.
9
+
The controller manages the ResourceSlice status updates, while the handler is responsible for implementing the resource allocation strategy.
10
+
In particular the handler should:
11
+
12
+
- set the list of resources allocated for that resourceslice in the status
13
+
- set a Condition of type `Resources` to indicate if the resources have been accepted or denied.
14
+
- return an error if it fails to process the ResourceSlice, thus the reconciliation should be retried.
15
+
Note: it should not return an error if the resourceslice has been correctly processed,
16
+
but the resources have been denied.
10
17
11
18
## Features
12
19
@@ -76,6 +83,7 @@ To implement a custom handler for your ResourceSlice class:
0 commit comments