yikuaibro commented on code in PR #345:
URL:
https://github.com/apache/shardingsphere-on-cloud/pull/345#discussion_r1188222396
##########
shardingsphere-operator/pkg/controllers/storage_node_controller.go:
##########
@@ -197,21 +218,29 @@ func computeDesiredState(status
v1alpha1.StorageNodeStatus) v1alpha1.StorageNode
desiredState.Phase = v1alpha1.StorageNodePhaseNotReady
}
+ if status.Phase == v1alpha1.StorageNodePhaseDeleting {
+ desiredState.Phase = v1alpha1.StorageNodePhaseDeleting
+ } else if status.Phase == v1alpha1.StorageNodePhaseDeleteComplete {
+ desiredState.Phase = v1alpha1.StorageNodePhaseDeleteComplete
+ }
+
Review Comment:
PTAL
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]