Skip to content

Commit

Permalink
Cleanup no longer fit comments
Browse files Browse the repository at this point in the history
Signed-off-by: kerthcet <kerthcet@gmail.com>
  • Loading branch information
kerthcet committed Jul 29, 2022
1 parent 02f77a1 commit b3b6e0d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
3 changes: 0 additions & 3 deletions pkg/scheduler/apis/config/v1beta2/defaults.go
Expand Up @@ -180,9 +180,6 @@ func SetDefaults_DefaultPreemptionArgs(obj *v1beta2.DefaultPreemptionArgs) {
}

func SetDefaults_InterPodAffinityArgs(obj *v1beta2.InterPodAffinityArgs) {
// Note that an object is created manually in cmd/kube-scheduler/app/options/deprecated.go
// DeprecatedOptions#ApplyTo.
// Update that object if a new default field is added here.
if obj.HardPodAffinityWeight == nil {
obj.HardPodAffinityWeight = pointer.Int32Ptr(1)
}
Expand Down
3 changes: 0 additions & 3 deletions pkg/scheduler/apis/config/v1beta3/defaults.go
Expand Up @@ -181,9 +181,6 @@ func SetDefaults_DefaultPreemptionArgs(obj *v1beta3.DefaultPreemptionArgs) {
}

func SetDefaults_InterPodAffinityArgs(obj *v1beta3.InterPodAffinityArgs) {
// Note that an object is created manually in cmd/kube-scheduler/app/options/deprecated.go
// DeprecatedOptions#ApplyTo.
// Update that object if a new default field is added here.
if obj.HardPodAffinityWeight == nil {
obj.HardPodAffinityWeight = pointer.Int32Ptr(1)
}
Expand Down

0 comments on commit b3b6e0d

Please sign in to comment.