Documentation
¶
Index ¶
Constants ¶
View Source
const ( //ComponentStatusRunning running ComponentStatusRunning = "Running" // ComponentStatusIniting initing ComponentStatusIniting = "Initing" //ComponentStatusCreating creating ComponentStatusCreating = "Creating" // ComponentStatusTerminating terminal ComponentStatusTerminating = "Terminating" // TODO fanyangyang have not found this case // ComponentStatusFailed failed ComponentStatusFailed = "Failed" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PodContainerStatus ¶
type PodStatus ¶
type PodStatus struct {
Name string `json:"name"`
Phase string `json:"phase"`
HostIP string `json:"hostIP"`
Reason string `json:"reason"`
Message string `json:"message"`
ContainerStatuses []PodContainerStatus `json:"container_statuses"`
}
PodStatus represents information about the status of a pod, which belongs to RbdComponent.
type RbdComponentStatus ¶
type RbdComponentStatus struct {
Name string `json:"name"`
// Total number of non-terminated pods targeted by this deployment (their labels match the selector).
// +optional
Replicas int32 `json:"replicas"`
// Total number of ready pods targeted by this deployment.
// +optional
ReadyReplicas int32 `json:"readyReplicas"`
Status ComponentStatus `json:"status"` //translate pod status to component status
Message string `json:"message"`
Reason string `json:"reason"`
ISInitComponent bool `json:"isInitComponent"`
PodStatuses []PodStatus `json:"podStatus"`
}
RbdComponentStatus rainbond component status
Click to show internal directories.
Click to hide internal directories.