Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save hexfusion/9de8f5f5c6a3ef1c466b31f3ed1b5807 to your computer and use it in GitHub Desktop.
Save hexfusion/9de8f5f5c6a3ef1c466b31f3ed1b5807 to your computer and use it in GitHub Desktop.
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