Repository navigation
Conversation
Ready was set True after any successful reconcile, before the driver was built or the device plugin was running. Derive it from driver and device plugin availability so oc wait --for=condition=Ready is meaningful, with DriverNotReady/DevicePluginNotReady reasons. Add Ready/Reason/Message printer columns, use optimistic locking on status patches, and keep watcher-owned status from being overwritten. Refs: ROCm#688 Signed-off-by: Leonardo Ochoa-Aday <lochoa@redhat.com>
Contributor
Author
|
/cc @yansun1996 |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Surfaces build/driver-install progress and overall readiness of a
DeviceConfigdirectly on the CR, so users (and CI) can watch a single object for completion instead of hunting KMM builder pods and tailing logs.Resolves the request in #688.
Previously the
Readycondition was setTrueafter any successful reconcile pass — before the out-of-tree driver was built/loaded or the device plugin was running — sooc wait --for=condition=Readyreturned too early.Approach
Readyfrom component status the operator already collects:DriverNotReady/DevicePluginNotReadywith aa/b nodesmessage;OperatorReadykept for backwards compatibility.Readyis left untouched whileError=True(validation / no matching nodes own that path).Ready,Reason, andMessage(-o wide).Validation
internal/conditions/deviceconfig_test.go;go build,go vet,go test ./internal/...pass.DeviceConfig:oc wait deviceconfig/amdgpu-driver-install --for=condition=Readyreturns only once the driver and device plugin are actually available.Signed-off-by: Leonardo Ochoa-Aday lochoa@redhat.com