Skip to content

Commit 8beaff2

Browse files
authored
Merge pull request #14 from RBLN-SW/feat/add-rebel-npu-product-card-support
feat(config): add support for new REBEL NPU product card
2 parents 6488216 + 7585e3b commit 8beaff2

File tree

5 files changed

+32
-2
lines changed

5 files changed

+32
-2
lines changed

config/samples/v1beta1_rblnclusterpolicy.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ spec:
2121
productCardNames:
2222
- RBLN-CA22
2323
- RBLN-CA25
24+
- resourceName: REBEL
25+
resourcePrefix: rebellions.ai
26+
productCardNames:
27+
- RBLN-CR03
2428
metricsExporter:
2529
enabled: true
2630
registry: docker.io

deployments/rbln-npu-operator/sample-values-ContainerWorkload.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,10 @@ devicePlugin:
169169
- RBLN-CA25
170170
resourceName: ATOM
171171
resourcePrefix: rebellions.ai
172+
- productCardNames:
173+
- RBLN-CR03
174+
resourceName: REBEL
175+
resourcePrefix: rebellions.ai
172176

173177
# NPU Metrics Exporter configuration
174178
metricsExporter:
@@ -240,6 +244,10 @@ sandboxDevicePlugin:
240244
- RBLN-CA25
241245
resourceName: ATOM_MAX_PT
242246
resourcePrefix: rebellions.ai
247+
- productCardNames:
248+
- RBLN-CR03
249+
resourceName: REBEL_PT
250+
resourcePrefix: rebellions.ai
243251

244252
# VFIO Manager for VM workloads
245253
vfioManager:

deployments/rbln-npu-operator/sample-values-SandboxWorkload.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,10 @@ devicePlugin:
169169
- RBLN-CA25
170170
resourceName: ATOM
171171
resourcePrefix: rebellions.ai
172+
- productCardNames:
173+
- RBLN-CR03
174+
resourceName: REBEL
175+
resourcePrefix: rebellions.ai
172176

173177
# NPU Metrics Exporter configuration
174178
metricsExporter:
@@ -240,6 +244,10 @@ sandboxDevicePlugin:
240244
- RBLN-CA25
241245
resourceName: ATOM_MAX_PT
242246
resourcePrefix: rebellions.ai
247+
- productCardNames:
248+
- RBLN-CR03
249+
resourceName: REBEL_PT
250+
resourcePrefix: rebellions.ai
243251

244252
# VFIO Manager for VM workloads
245253
vfioManager:

deployments/rbln-npu-operator/values.yaml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ driver:
9191
# imagePullSecrets: []
9292
# Example:
9393
# nodeSelector:
94-
# rebellions.ai/npu.present: "true"
94+
# rebellions.ai/old: "true"
9595
nodeSelector: {}
9696
# Example:
9797
# nodeAffinity:
@@ -168,6 +168,10 @@ devicePlugin:
168168
- RBLN-CA25
169169
resourceName: ATOM
170170
resourcePrefix: rebellions.ai
171+
- productCardNames:
172+
- RBLN-CR03
173+
resourceName: REBEL
174+
resourcePrefix: rebellions.ai
171175

172176
# NPU Metrics Exporter configuration
173177
metricsExporter:
@@ -187,7 +191,7 @@ rblnDaemon:
187191
tag: 3.0.0
188192
pullPolicy: IfNotPresent
189193
# imagePullSecrets:
190-
# - rblnDeamonSecret
194+
# - daemoncred
191195
hostPort: 50051
192196
resources: {}
193197
args: []
@@ -240,6 +244,10 @@ sandboxDevicePlugin:
240244
- RBLN-CA25
241245
resourceName: ATOM_MAX_PT
242246
resourcePrefix: rebellions.ai
247+
- productCardNames:
248+
- RBLN-CR03
249+
resourceName: REBEL_PT
250+
resourcePrefix: rebellions.ai
243251

244252
# VFIO Manager for VM workloads
245253
vfioManager:

internal/consts/consts.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ const (
4040
RBLNCardCA12 = "RBLN-CA12"
4141
RBLNCardCA22 = "RBLN-CA22"
4242
RBLNCardCA25 = "RBLN-CA25"
43+
RBLNCardCR03 = "RBLN-CR03"
4344
)
4445

4546
// Sandbox device plugin constants
@@ -83,4 +84,5 @@ var DeviceMapping = map[string][]string{
8384
RBLNCardCA12: {"1120", "1121"},
8485
RBLNCardCA22: {"1220", "1221"},
8586
RBLNCardCA25: {"1250", "1251"},
87+
RBLNCardCR03: {"2030", "2031"},
8688
}

0 commit comments

Comments
 (0)