Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccurateSchedulerEstimatorServer ¶
type AccurateSchedulerEstimatorServer struct {
// contains filtered or unexported fields
}
AccurateSchedulerEstimatorServer is the gRPC server of a cluster accurate scheduler estimator. Please see https://github.com/karmada-io/karmada/pull/580 (#580).
func NewEstimatorServer ¶
func NewEstimatorServer(kubeClient kubernetes.Interface, opts *options.Options) *AccurateSchedulerEstimatorServer
NewEstimatorServer creates an instance of AccurateSchedulerEstimatorServer.
func (*AccurateSchedulerEstimatorServer) MaxAvailableReplicas ¶
func (es *AccurateSchedulerEstimatorServer) MaxAvailableReplicas(ctx context.Context, request *pb.MaxAvailableReplicasRequest) (response *pb.MaxAvailableReplicasResponse, rerr error)
MaxAvailableReplicas is the implementation of gRPC interface. It will return the max available replicas that a cluster could accommodate based on its requirements.
Click to show internal directories.
Click to hide internal directories.