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: artefacts/intents_crds_v1alpha1.yaml
+16-3Lines changed: 16 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,7 @@ spec:
20
20
type: object
21
21
properties:
22
22
kind:
23
-
description: 'Kind of the owner.'
23
+
description: 'Kind of the owner (defaults to Deployment kind).'
24
24
type: string
25
25
enum:
26
26
- Deployment
@@ -33,11 +33,15 @@ spec:
33
33
- name
34
34
priority:
35
35
type: number
36
-
description: "Priority for a set of PODs"
36
+
description: "Priority for a set of PODs (defaults to 0.01)."
37
37
format: float
38
38
minimum: 0.01# prevents any div 0!
39
39
maximum: 1.0
40
40
default: 0.01
41
+
active:
42
+
type: boolean
43
+
description: "Indicates if the planner should actively managed this intent (defaults to true)."
44
+
default: true
41
45
objectives:
42
46
type: array
43
47
description: "Objectives for a set of PODs."
@@ -54,6 +58,12 @@ spec:
54
58
measuredBy:
55
59
type: string
56
60
description: "Defines what kind of an objective this is. Also defines if the objective is an upper or lower bound objective."
61
+
tolerance:
62
+
type: number
63
+
description: "Indicates a tolerance as percentage in context of the specified target value for the objective (defaults to 0.0) - e.g. 0.1 & target 10ms ==> 11ms."
64
+
format: float
65
+
minimum: 0.0
66
+
default: 0.0
57
67
required:
58
68
- name
59
69
- value
@@ -108,13 +118,16 @@ spec:
108
118
spec:
109
119
type: object
110
120
properties:
111
-
# TODO: add weight.
112
121
query:
113
122
type: string
114
123
description: "This is an optional parameter - if defined, the user needs to provide a query string defining how to capture the objective's KPI. Optional parameters - in accordance with the provide documentation - can be detailed under props."
115
124
description:
116
125
type: string
117
126
description: "Ideally includes a description on what is measured by the query - including e.g. information on units etc."
127
+
minimize:
128
+
type: boolean
129
+
description: "Indicates whether the planner should try to minimize this or not (defaults to true)."
0 commit comments