mirror of
https://github.com/arangodb/kube-arangodb.git
synced 2024-12-14 11:57:37 +00:00
Fix GetJobTemplateSpec (#1547)
This commit is contained in:
parent
f53311670e
commit
df65970319
1 changed files with 4 additions and 0 deletions
|
@ -82,6 +82,10 @@ type ArangoMLJobTemplates struct {
|
|||
}
|
||||
|
||||
func (a *ArangoMLJobTemplates) GetJobTemplateSpec(scheduleType JobScheduleType) *ArangoMLExtensionTemplate {
|
||||
if a == nil {
|
||||
return nil
|
||||
}
|
||||
|
||||
switch scheduleType {
|
||||
case MLJobScheduleCPU:
|
||||
return a.CPU
|
||||
|
|
Loading…
Reference in a new issue