1
0
Fork 0
mirror of https://github.com/arangodb/kube-arangodb.git synced 2024-12-15 17:51:03 +00:00

Fix GetJobTemplateSpec (#1547)

This commit is contained in:
jwierzbo 2023-12-20 10:17:14 +01:00 committed by GitHub
parent f53311670e
commit df65970319
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -82,6 +82,10 @@ type ArangoMLJobTemplates struct {
} }
func (a *ArangoMLJobTemplates) GetJobTemplateSpec(scheduleType JobScheduleType) *ArangoMLExtensionTemplate { func (a *ArangoMLJobTemplates) GetJobTemplateSpec(scheduleType JobScheduleType) *ArangoMLExtensionTemplate {
if a == nil {
return nil
}
switch scheduleType { switch scheduleType {
case MLJobScheduleCPU: case MLJobScheduleCPU:
return a.CPU return a.CPU