File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
framework/plugins/clusteraffinity Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ import (
2424 "github.com/kubefleet-dev/kubefleet/pkg/scheduler/framework"
2525)
2626
27- // Plugin is the scheduler plugin that enforces the cluster affinity (if any) defined on a R /CRP.
27+ // Plugin is the scheduler plugin that enforces the cluster affinity (if any) defined on a RP /CRP.
2828type Plugin struct {
2929 // The name of the plugin.
3030 name string
Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ const (
3131 defaultProfileName = "DefaultProfile"
3232)
3333
34+ // Options holds the configuration options for creating a scheduling profile.
3435type Options struct {
3536 ClusterAffinityPlugin * clusteraffinity.Plugin
3637}
@@ -40,6 +41,7 @@ func NewDefaultProfile() *framework.Profile {
4041 return NewProfile (Options {})
4142}
4243
44+ // NewProfile creates a scheduling profile with the given options.
4345func NewProfile (opts Options ) * framework.Profile {
4446 p := framework .NewProfile (defaultProfileName )
4547
You can’t perform that action at this time.
0 commit comments