diff --git a/pkg/scheduler/framework/plugins/clusteraffinity/plugin.go b/pkg/scheduler/framework/plugins/clusteraffinity/plugin.go index b0ede644b..26f543614 100644 --- a/pkg/scheduler/framework/plugins/clusteraffinity/plugin.go +++ b/pkg/scheduler/framework/plugins/clusteraffinity/plugin.go @@ -24,7 +24,7 @@ import ( "github.com/kubefleet-dev/kubefleet/pkg/scheduler/framework" ) -// Plugin is the scheduler plugin that enforces the cluster affinity (if any) defined on a R/CRP. +// Plugin is the scheduler plugin that enforces the cluster affinity (if any) defined on a RP/CRP. type Plugin struct { // The name of the plugin. name string diff --git a/pkg/scheduler/profile/profile.go b/pkg/scheduler/profile/profile.go index c05b89cc8..494aaa5ed 100644 --- a/pkg/scheduler/profile/profile.go +++ b/pkg/scheduler/profile/profile.go @@ -31,6 +31,7 @@ const ( defaultProfileName = "DefaultProfile" ) +// Options holds the configuration options for creating a scheduling profile. type Options struct { ClusterAffinityPlugin *clusteraffinity.Plugin } @@ -40,6 +41,7 @@ func NewDefaultProfile() *framework.Profile { return NewProfile(Options{}) } +// NewProfile creates a scheduling profile with the given options. func NewProfile(opts Options) *framework.Profile { p := framework.NewProfile(defaultProfileName)