func checkReadyReplicas() int32 {
	// Get a FleetInterface for this namespace
	fleetInterface := agonesClient.AgonesV1().Fleets(namespace)
	// Get our fleet
	fleet, err := fleetInterface.Get(fleetname, metav1.GetOptions{})
	if err != nil {
		logger.WithError(err).Info("Get fleet failed")
	}

	return fleet.Status.ReadyReplicas
}
// Return the number of ready game servers available to this fleet for allocation
Return the number of ready game servers available to this fleet for allocation
// Return the number of ready game servers available to this fleet for allocation
func checkReadyReplicas() int32 {
	fleetInterface := agonesClient.AgonesV1().Fleets(namespace)
	fleet, err := fleetInterface.Get(fleetname, metav1.GetOptions{})
	if err != nil {
		logger.WithError(err).Info("Get fleet failed")
	}
	return fleet.Status.ReadyReplicas
}
func checkReadyReplicas ( ) int32 { fleetInterface := agonesClient . AgonesV1 ( ) . Fleets ( namespace ) fleet , err := fleetInterface . Get ( fleetname , metav1 . GetOptions { } ) if err != nil { logger . WithError ( err ) . Info ( " " ) } return fleet . Status . ReadyReplicas }
Return the number of ready game servers available to this fleet for allocation
Return the number of ready game servers available to this fleet for allocation
// Get a FleetInterface for this namespace // Get our fleet