Repository navigation
Conversation
Ready was set True after any successful reconcile, before the driver was loaded or the device plugin was running. Derive it from component status instead: - driver (when spec.driver.enable): available on all targeted nodes - device plugin: available on all targeted nodes Add DriverNotReady / DevicePluginNotReady reasons with an "a/b nodes" message, and Ready/Reason/Message printer columns. 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 driver-install and device-plugin readiness of a
NetworkConfigdirectly on the CR, so users (and CI) can watch a single object for completion instead of hunting KMM builder pods and tailing logs.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:spec.driver.enable): available on all targeted nodes;DriverNotReady/DevicePluginNotReadywith ana/b nodesmessage;OperatorReadykept for backwards compatibility. Error paths that already setReadyare unchanged.buildNetworkConfigStatus; the reconcilerOwnsthe KMM Module and DaemonSets, so it re-runs on their status changes (no separate status writer exists in this operator, unlike the gpu-operator daemonset watcher).Ready,Reason, andMessage(-o wide).Validation
internal/conditions/networkconfig_test.go(table tests per reason,LastTransitionTimekept when status doesn't change).go build,go vet,go test ./internal/conditions/ ./internal/controllers/...pass (tests/e2eexcluded; it fails to build onmainindependently of this change).Signed-off-by: Leonardo Ochoa-Aday lochoa@redhat.com