Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pkg/scheduler/framework/plugins/clusteraffinity/plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions pkg/scheduler/profile/profile.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ const (
defaultProfileName = "DefaultProfile"
)

// Options holds the configuration options for creating a scheduling profile.
type Options struct {
ClusterAffinityPlugin *clusteraffinity.Plugin
}
Expand All @@ -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)

Expand Down
Loading