You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by "mlycore (via GitHub)" <gi...@apache.org> on 2023/05/28 09:56:04 UTC
[GitHub] [shardingsphere-on-cloud] mlycore commented on issue #166: [Feat] Introduce new CRD as ComputeNode for better usability
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: notifications-unsubscribe@shardingsphere.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org