Skip to content

Commit 844f310

Browse files
committed
chore: update NIC conf operator CRDs
Signed-off-by: Fred Rolland <[email protected]>
1 parent e0857d8 commit 844f310

File tree

1 file changed

+42
-13
lines changed

1 file changed

+42
-13
lines changed

manifests/state-nic-configuration-operator/001-configuration.net.nvidia.com_nicconfigurationtemplates.yaml

Lines changed: 42 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,3 @@
1-
# 2025 NVIDIA CORPORATION & AFFILIATES
2-
#
3-
# Licensed under the Apache License, Version 2.0 (the "License");
4-
# you may not use this file except in compliance with the License.
5-
# You may obtain a copy of the License at
6-
#
7-
# http://www.apache.org/licenses/LICENSE-2.0
8-
#
9-
# Unless required by applicable law or agreed to in writing, software
10-
# distributed under the License is distributed on an "AS IS" BASIS,
11-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12-
# See the License for the specific language governing permissions and
13-
# limitations under the License.
141
---
152
apiVersion: apiextensions.k8s.io/v1
163
kind: CustomResourceDefinition
@@ -190,6 +177,25 @@ spec:
190177
enabled:
191178
description: Optimize Spectrum X
192179
type: boolean
180+
multiplaneMode:
181+
default: none
182+
description: |-
183+
Multiplane mode to be configured
184+
Can be "none", "swplb", "hwplb", or "uniplane"
185+
enum:
186+
- none
187+
- swplb
188+
- hwplb
189+
- uniplane
190+
type: string
191+
numberOfPlanes:
192+
default: 1
193+
description: Number of planes to be configured
194+
enum:
195+
- 1
196+
- 2
197+
- 4
198+
type: integer
193199
overlay:
194200
default: none
195201
description: |-
@@ -205,11 +211,29 @@ spec:
205211
enum:
206212
- RA1.3
207213
- RA2.0
214+
- RA2.1
208215
type: string
209216
required:
210217
- enabled
211218
- version
212219
type: object
220+
x-kubernetes-validations:
221+
- message: when MultiplaneMode is none, numberOfPlanes must be
222+
1
223+
rule: '!has(self.multiplaneMode) || !has(self.numberOfPlanes)
224+
|| self.multiplaneMode != ''none'' || self.numberOfPlanes
225+
== 1'
226+
- message: when MultiplaneMode is not none, numberOfPlanes must
227+
not be 1
228+
rule: '!has(self.multiplaneMode) || !has(self.numberOfPlanes)
229+
|| self.multiplaneMode == ''none'' || self.numberOfPlanes
230+
!= 1'
231+
- message: when Version is RA1.3 or RA2.0, MultiplaneMode must
232+
be none and numberOfPlanes must be 1
233+
rule: '!has(self.version) || !has(self.multiplaneMode) || !has(self.numberOfPlanes)
234+
|| !(self.version == ''RA1.3'' || self.version == ''RA2.0'')
235+
|| (self.multiplaneMode == ''none'' && self.numberOfPlanes
236+
== 1)'
213237
required:
214238
- linkType
215239
- numVfs
@@ -237,6 +261,11 @@ spec:
237261
rule: '!(has(self.template.spectrumXOptimized) && self.template.spectrumXOptimized.enabled)
238262
|| (self.nicSelector.nicType == ''1023'' || self.nicSelector.nicType
239263
== ''a2dc'')'
264+
- message: hwplb MultiplaneMode can only be enabled for ConnectX-8 (NicType
265+
1023)
266+
rule: '!has(self.template.spectrumXOptimized) || !has(self.template.spectrumXOptimized.multiplaneMode)
267+
|| self.template.spectrumXOptimized.multiplaneMode != ''hwplb'' ||
268+
self.nicSelector.nicType == ''1023'''
240269
status:
241270
description: Defines the observed state of NicConfigurationTemplate
242271
properties:

0 commit comments

Comments
 (0)