mlycore commented on issue #166:
URL: 
https://github.com/apache/shardingsphere-on-cloud/issues/166#issuecomment-1566055658

   Update ComputeNodeConditions
   
   ```go
   type ComputeNodePhaseStatus string
   
   const (
        ComputeNodeStatusReady    ComputeNodePhaseStatus = "Ready"
        ComputeNodeStatusNotReady ComputeNodePhaseStatus = "NotReady"
        ComputeNodeStatusUnknown  ComputeNodePhaseStatus = "Unknown"
   )
   
   type ComputeNodeConditionType string
   
   // ComputeNodeConditionType shows some states during the startup process of 
ShardingSphere-Proxy
   const (
        ComputeNodeConditionInitialized ComputeNodeConditionType = "Initialized"
        ComputeNodeConditionStarted     ComputeNodeConditionType = "Started"
        ComputeNodeConditionReady       ComputeNodeConditionType = "Ready"
        ComputeNodeConditionUnknown     ComputeNodeConditionType = "Unknown"
        ComputeNodeConditionDeployed    ComputeNodeConditionType = "Deployed"
        ComputeNodeConditionFailed      ComputeNodeConditionType = "Failed"
        ComputeNodeConditionPending     ComputeNodeConditionType = "Pending"
   
        ComputeNodeConditionSucceed ComputeNodeConditionType = "Succeed"
   )
   
   type ConditionStatus string
   
   const (
        ConditionStatusTrue    = "True"
        ConditionStatusFalse   = "False"
        ConditionStatusUnknown = "Unknown"
   )
   
   type ComputeNodeCondition struct {
        Type               ComputeNodeConditionType `json:"type"`
        Status             ConditionStatus          `json:"status"`
        LastTransitionTime metav1.Time              
`json:"lastTransitionTime,omitempty"`
        LastUpdateTime     metav1.Time              
`json:"lastUpdateTime,omitempty"`
        Reason             string                   `json:"reason"`
        Message            string                   `json:"message"`
   }
   
   ```


-- 
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]

Reply via email to