Documentation ¶
Index ¶
- func IsNebulaClusterHA(nc *v1alpha1.NebulaCluster) bool
- func ValidateMinLessThanMax(fldPath *field.Path, minReplicas, maxReplicas int) *field.Error
- func ValidateMinMaxReplica(fldPath *field.Path, minReplicas, maxReplicas int) (allErrs field.ErrorList)
- func ValidateMinReplicas(fldPath *field.Path, actualValue, minValue int, bHaMode bool) *field.Error
- func ValidateMinReplicasGraphd(fldPath *field.Path, replicas int, bHaMode bool) (allErrs field.ErrorList)
- func ValidateMinReplicasMetad(fldPath *field.Path, replicas int, bHaMode bool) (allErrs field.ErrorList)
- func ValidateMinReplicasStoraged(fldPath *field.Path, replicas int, bHaMode bool) (allErrs field.ErrorList)
- func ValidateOddNumber(fldPath *field.Path, value int) *field.Error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsNebulaClusterHA ¶ added in v1.7.0
func IsNebulaClusterHA(nc *v1alpha1.NebulaCluster) bool
func ValidateMinLessThanMax ¶ added in v1.8.1
ValidateMinLessThanMax validates that the minimum replicas is less then or equal to the maximum replicas
func ValidateMinMaxReplica ¶ added in v1.8.1
func ValidateMinMaxReplica(fldPath *field.Path, minReplicas, maxReplicas int) (allErrs field.ErrorList)
ValidateMinReplicasGraphd validates replicas min value for Graphd
func ValidateMinReplicas ¶
ValidateMinReplicas validates replicas min value
func ValidateMinReplicasGraphd ¶
func ValidateMinReplicasGraphd(fldPath *field.Path, replicas int, bHaMode bool) (allErrs field.ErrorList)
ValidateMinReplicasGraphd validates replicas min value for Graphd
func ValidateMinReplicasMetad ¶
func ValidateMinReplicasMetad(fldPath *field.Path, replicas int, bHaMode bool) (allErrs field.ErrorList)
ValidateMinReplicasMetad validates replicas min value for Metad
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.