Skip to content

Commit 4ce199e

Browse files
authored
fix: add function comments to functions within scheduler (#332)
address minor comments from previous PR Signed-off-by: Britania Rodriguez Reyes <[email protected]>
1 parent 8848071 commit 4ce199e

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

pkg/scheduler/framework/plugins/clusteraffinity/plugin.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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.
2828
type Plugin struct {
2929
// The name of the plugin.
3030
name string

pkg/scheduler/profile/profile.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ const (
3131
defaultProfileName = "DefaultProfile"
3232
)
3333

34+
// Options holds the configuration options for creating a scheduling profile.
3435
type 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.
4345
func NewProfile(opts Options) *framework.Profile {
4446
p := framework.NewProfile(defaultProfileName)
4547

0 commit comments

Comments
 (0)