Skip to content

Commit fc92202

Browse files
committed
Fix lint error
Signed-off-by: Shiva Krishna, Merla <[email protected]>
1 parent 3bd0f2f commit fc92202

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

api/apps/v1alpha1/nemo_customizer_types.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -909,9 +909,11 @@ func (n *NemoCustomizer) GetRoleParams() *rendertypes.RoleParams {
909909
},
910910
}
911911

912-
if n.Spec.Scheduler.Type == SchedulerTypeVolcano {
912+
// Add scheduler specific rules
913+
switch n.Spec.Scheduler.Type {
914+
case SchedulerTypeVolcano:
913915
params.Rules = append(params.Rules, volcanoRules...)
914-
} else if n.Spec.Scheduler.Type == SchedulerTypeRunAI {
916+
case SchedulerTypeRunAI:
915917
params.Rules = append(params.Rules, runAIRules...)
916918
}
917919

0 commit comments

Comments
 (0)