Documentation
¶
Index ¶
Constants ¶
View Source
const ControllerName = "Scheduler"
Variables ¶
This section is empty.
Functions ¶
func GenerateClusterName ¶ added in v0.18.0
func GenerateClusterName(prefix string, cr *clustersv1alpha1.ClusterRequest) (string, error)
GenerateClusterName generates a deterministic name for a new Cluster based on a prefix and the corresponding ClusterRequest. The name will always contain the prefix, followed by a hash of the ClusterRequest's namespace and name.
Types ¶
type ClusterScheduler ¶
type ClusterScheduler struct {
PlatformCluster *clusters.Cluster
Config *config.SchedulerConfig
}
func NewClusterScheduler ¶
func NewClusterScheduler(setupLog *logging.Logger, platformCluster *clusters.Cluster, config *config.SchedulerConfig) (*ClusterScheduler, error)
func (*ClusterScheduler) SetupWithManager ¶
func (r *ClusterScheduler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type ReconcileResult ¶
type ReconcileResult = ctrlutils.ReconcileResult[*clustersv1alpha1.ClusterRequest]
Click to show internal directories.
Click to hide internal directories.