Skip to content

[CP 1388] Create DeviceClass from operator code on OpenShift when DRA is enabled#530

Open
ci-penbot-01 wants to merge 1 commit intoROCm:mainfrom
ci-penbot-01:CP.O2O.pensando.gpu-operator.1388.rocm.gpu-operator.main
Open

[CP 1388] Create DeviceClass from operator code on OpenShift when DRA is enabled#530
ci-penbot-01 wants to merge 1 commit intoROCm:mainfrom
ci-penbot-01:CP.O2O.pensando.gpu-operator.1388.rocm.gpu-operator.main

Conversation

@ci-penbot-01
Copy link
Copy Markdown
Contributor

cp of pensando/gpu-operator#1388


Source PR Description (pensando/gpu-operator#1388):

On OpenShift, operator-sdk cannot deploy DeviceClass resources via the OLM bundle. This adds handleDeviceClass to the reconciler which creates the gpu.amd.com DeviceClass using an unstructured client when running on OpenShift with DRA driver enabled. The DeviceClass is cluster-scoped and shared, so it is created once (AlreadyExists is handled gracefully) and never deleted on DeviceConfig finalization.

Cherrypick triggered by: ACP-Automation

…d (#1388)

* Create DeviceClass from operator code on OpenShift when DRA is enabled

On OpenShift, operator-sdk cannot deploy DeviceClass resources via the
OLM bundle. This adds handleDeviceClass to the reconciler which creates
the gpu.amd.com DeviceClass using an unstructured client when running on
OpenShift with DRA driver enabled. The DeviceClass is cluster-scoped and
shared, so it is created once (AlreadyExists is handled gracefully) and
never deleted on DeviceConfig finalization.

* Use deviceClassName constant instead of hardcoded string

Address review feedback: extract "gpu.amd.com" into a const and use it
throughout handleDeviceClass.

(cherry picked from commit d8845e69298bab8e21f2c0955a4b6579bc79ea76)
@ci-penbot-01
Copy link
Copy Markdown
Contributor Author

AI-Assisted Cherry-Pick

Source PR: #1388
Target Branch: main

The cherry-pick operation encountered merge conflicts which were resolved automatically using AI assistance.

Files with conflicts (resolved by AI):

  • bundle/manifests/amd-gpu-operator.clusterserviceversion.yaml:39-43
Original conflict in bundle/manifests/amd-gpu-operator.clusterserviceversion.yaml
<<<<<<< HEAD
    createdAt: "2026-04-06T08:31:30Z"
=======
    createdAt: "2026-04-22T01:09:34Z"
>>>>>>> d8845e69... Create DeviceClass from operator code on OpenShift when DRA is enabled (#1388)

Cherry-pick triggered by: ACP-Automation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants