Created
May 1, 2024 12:49
-
-
Save hexfusion/9de8f5f5c6a3ef1c466b31f3ed1b5807 to your computer and use it in GitHub Desktop.
This file contains 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
type PoolSynchronizerStatus struct { | |
// poolSynchronizerType describes the type of the pool synchronizer. | |
// +kubebuilder:validation:Required | |
PoolSynchronizerType PoolSynchronizerType `json:"poolSynchronizerType"` | |
// machineCount is the number of machines that are managed by the node synchronizer. | |
// +kubebuilder:validation:Required | |
// +kubebuilder:validation:Minimum=0 | |
MachineCount int64 `json:"machineCount"` | |
// updatedMachineCount is the number of machines that have been updated by the node synchronizer. | |
// +kubebuilder:validation:Required | |
// +kubebuilder:validation:Minimum=0 | |
UpdatedMachineCount int64 `json:"updatedMachineCount"` | |
// readyMachineCount is the number of machines managed by the node synchronizer that are in a ready state. | |
// +kubebuilder:validation:Required | |
// +kubebuilder:validation:Minimum=0 | |
ReadyMachineCount int64 `json:"readyMachineCount"` | |
// availableMachineCount is the number of machines managed by the node synchronizer which are available. | |
// +kubebuilder:validation:Required | |
// +kubebuilder:validation:Minimum=0 | |
AvailableMachineCount int64 `json:"availableMachineCount"` | |
// unavailableMachineCount is the number of machines managed by the node synchronizer but are unavailable. | |
// +kubebuilder:validation:Required | |
// +kubebuilder:validation:Minimum=0 | |
UnavailableMachineCount int64 `json:"unavailableMachineCount"` | |
// +kubebuilder:validation:XValidation:rule="self >= oldSelf || (self == 0 && oldSelf > 0)", message="observedGeneration must not move backwards except to zero" | |
// observedGeneration is the last generation change that has been applied. | |
// +kubebuilder:validation:Minimum=0 | |
// +optional | |
ObservedGeneration int64 `json:"observedGeneration,omitempty"` | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment