-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathcrdify.yaml
More file actions
176 lines (176 loc) · 8.61 KB
/
crdify.yaml
File metadata and controls
176 lines (176 loc) · 8.61 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
unhandledEnforcement: None
validations:
- name: default
enforcement: Warn
- name: description
enforcement: Warn # changing to warning is important for the deprecation feature
- name: minLength
enforcement: Warn
- name: enum
enforcement: Error
configuration:
additionPolicy: Allow
- name: required
enforcement: Error
configuration:
# Allow list for known required field changes that were bugs in previous versions
allowList:
- apiVersion: "provisioning.dpu.nvidia.com/v1alpha1"
kind: "DPUSet"
field: ".spec"
error: "new required fields: [dpuTemplate]"
- apiVersion: "provisioning.dpu.nvidia.com/v1alpha1"
kind: "DPUSet"
field: ".spec.dpuTemplate.spec"
error: "new required fields: [dpuFlavor]"
- apiVersion: "provisioning.dpu.nvidia.com/v1alpha1"
kind: "DPU"
field: ".spec"
error: "new required fields: [dpuFlavor nodeEffect]"
- apiVersion: "provisioning.dpu.nvidia.com/v1alpha1"
kind: "DPU"
field: ".spec"
error: "new required fields: [nodeEffect dpuFlavor]"
# Allow DPUSet required field changes for disruptive fields
- apiVersion: "provisioning.dpu.nvidia.com/v1alpha1"
kind: "DPUSet"
field: ".spec"
error: "new required fields: [strategy]"
- apiVersion: "provisioning.dpu.nvidia.com/v1alpha1"
kind: "DPUSet"
field: ".spec.strategy"
error: "new required fields: [type]"
- apiVersion: "provisioning.dpu.nvidia.com/v1alpha1"
kind: "DPUSet"
field: ".spec.dpuTemplate.spec"
error: "new required fields: [nodeEffect]"
# Allow DPUDeployment required field changes for disruptive fields
- apiVersion: "svc.dpu.nvidia.com/v1alpha1"
kind: "DPUDeployment"
field: ".spec.dpus"
error: "new required fields: [dpuSetStrategy nodeEffect]"
- apiVersion: "svc.dpu.nvidia.com/v1alpha1"
kind: "DPUDeployment"
field: ".spec.dpus"
error: "new required fields: [nodeEffect dpuSetStrategy]"
- name: minimum
enforcement: Error
configuration:
allowList:
# Allow list for known minimum and maximum mtu value changes
- apiVersion: "svc.dpu.nvidia.com/v1alpha1"
kind: "DPUServiceChain"
field: ".spec.template.spec.template.spec.switches[*].serviceMTU"
error: "minimum increased : 1000 -> 1280"
- apiVersion: "svc.dpu.nvidia.com/v1alpha1"
kind: "DPUDeployment"
field: ".spec.serviceChains.switches[*].serviceMTU"
error: "minimum increased : 1000 -> 1280"
- apiVersion: "svc.dpu.nvidia.com/v1alpha1"
kind: "ServiceChain"
field: ".spec.switches[*].serviceMTU"
error: "minimum increased : 1000 -> 1280"
- apiVersion: "svc.dpu.nvidia.com/v1alpha1"
kind: "ServiceChainSet"
field: ".spec.template.spec.switches[*].serviceMTU"
error: "minimum increased : 1000 -> 1280"
- apiVersion: "operator.dpu.nvidia.com/v1alpha1"
kind: "DPFOperatorConfig"
field: ".spec.networking.controlPlaneMTU"
error: "minimum increased : 1000 -> 1280"
- apiVersion: "operator.dpu.nvidia.com/v1alpha1"
kind: "DPFOperatorConfig"
field: ".spec.networking.highSpeedMTU"
error: "minimum increased : 1000 -> 1280"
- apiVersion: "operator.dpu.nvidia.com/v1alpha1"
kind: "DPUFlavor"
field: ".spec.hostNetworkInterfaceConfigs.mtu"
error: "minimum increased : 1000 -> 1280"
- apiVersion: "svc.dpu.nvidia.com/v1alpha1"
kind: "DPUServiceNAD"
field: ".spec.serviceMTU"
error: "minimum constraint added when there was none previously : 1280"
- apiVersion: "svc.dpu.nvidia.com/v1alpha1"
kind: "DPUServiceNAD"
field: ".spec.serviceMTU"
error: "maximum constraint added when there was none previously : 9216"
# Allow the DPUDeployment.spec.revisionHistoryLimit minimum constraint
- apiVersion: "svc.dpu.nvidia.com/v1alpha1"
kind: "DPUDeployment"
field: ".spec.revisionHistoryLimit"
error: "minimum constraint added when there was none previously : 1"
# Allow the DPUDeployment.spec.services validation to include at least one service and up to 50
- apiVersion: "svc.dpu.nvidia.com/v1alpha1"
kind: "DPUDeployment"
field: ".spec.services"
error: "minimum constraint added when there was none previously : 1"
- apiVersion: "svc.dpu.nvidia.com/v1alpha1"
kind: "DPUDeployment"
field: ".spec.services"
error: "maximum constraint added when there was none previously : 50"
# Allow the enforcement of min and maximum length of network interface name in DPUDeployment, DPUServiceConfiguration, DPUServiceInterface, ServiceInterfaceSet, ServiceInterface
- apiVersion: "svc.dpu.nvidia.com/v1alpha1"
kind: "DPUDeployment"
field: ".spec.serviceChains.switches[*].ports[*].service.interface"
error: "maximum decreased : 28 -> 15"
- apiVersion: "svc.dpu.nvidia.com/v1alpha1"
kind: "DPUServiceConfiguration"
field: ".spec.interfaces[*].name"
error: "maximum decreased : 28 -> 15"
- apiVersion: "svc.dpu.nvidia.com/v1alpha1"
kind: "DPUServiceInterface"
field: ".spec.template.spec.template.spec.service.interfaceName"
error: "maximum constraint added when there was none previously : 15"
- apiVersion: "svc.dpu.nvidia.com/v1alpha1"
kind: "ServiceInterfaceSet"
field: ".spec.template.spec.service.interfaceName"
error: "maximum constraint added when there was none previously : 15"
- apiVersion: "svc.dpu.nvidia.com/v1alpha1"
kind: "ServiceInterfaceSet"
field: ".spec.template.spec.service.interfaceName"
error: "minimum constraint added when there was none previously : 1"
- apiVersion: "svc.dpu.nvidia.com/v1alpha1"
kind: "ServiceInterface"
field: ".spec.service.interfaceName"
error: "maximum constraint added when there was none previously : 15"
- apiVersion: "svc.dpu.nvidia.com/v1alpha1"
kind: "ServiceInterface"
field: ".spec.service.interfaceName"
error: "minimum constraint added when there was none previously : 1"
# Allow NVConfig validation constraints (device enum refactoring + parameter validation)
- apiVersion: "provisioning.dpu.nvidia.com/v1alpha1"
kind: "DPUFlavor"
field: ".spec.nvconfig"
error: "maximum constraint added when there was none previously : 3"
- apiVersion: "provisioning.dpu.nvidia.com/v1alpha1"
kind: "DPUFlavor"
field: ".spec.nvconfig[*].device"
error: "enum constraint added when there was none previously : [\"*\" \"P0\" \"P1\" \"p0\" \"p1\"]"
- apiVersion: "provisioning.dpu.nvidia.com/v1alpha1"
kind: "DPUFlavor"
field: ".spec.nvconfig[*].parameters"
error: "minimum constraint added when there was none previously : 1"
- apiVersion: "provisioning.dpu.nvidia.com/v1alpha1"
kind: "DPUFlavor"
field: ".spec.nvconfig[*].parameters"
error: "maximum constraint added when there was none previously : 32"
- apiVersion: "provisioning.dpu.nvidia.com/v1alpha1"
kind: "DPUFlavor"
field: ".spec.nvconfig[*].parameters[*]"
error: "maximum constraint added when there was none previously : 200"
- apiVersion: "provisioning.dpu.nvidia.com/v1alpha1"
kind: "DPUFlavor"
field: ".spec.hostNetworkInterfaceConfigs[*].nvconfig.device"
error: "enum constraint added when there was none previously : [\"*\" \"P0\" \"P1\" \"p0\" \"p1\"]"
- apiVersion: "provisioning.dpu.nvidia.com/v1alpha1"
kind: "DPUFlavor"
field: ".spec.hostNetworkInterfaceConfigs[*].nvconfig.parameters"
error: "minimum constraint added when there was none previously : 1"
- apiVersion: "provisioning.dpu.nvidia.com/v1alpha1"
kind: "DPUFlavor"
field: ".spec.hostNetworkInterfaceConfigs[*].nvconfig.parameters"
error: "maximum constraint added when there was none previously : 32"
- apiVersion: "provisioning.dpu.nvidia.com/v1alpha1"
kind: "DPUFlavor"
field: ".spec.hostNetworkInterfaceConfigs[*].nvconfig.parameters[*]"
error: "maximum constraint added when there was none previously : 200"