8000 Add GPU Enabled flags · arangodb/kube-arangodb@4be36ba · GitHub
[go: up one dir, main page]

Skip to content

Commit 4be36ba

Browse files
committed
Add GPU Enabled flags
1 parent 5a9c96f commit 4be36ba

File tree

4 files changed

+11
-3
lines changed

4 files changed

+11
-3
lines changed

docs/api/ArangoMLExtension.V1Alpha1.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ Links:
100100

101101
Type: `boolean` <sup>[\[ref\]](https://github.com/arangodb/kube-arangodb/blob/1.2.40/pkg/apis/ml/v1alpha1/extension_spec_deployment.go#L52)</sup>
102102

103-
GPU defined if GPU Jobs are enabledt.
103+
GPU defined if GPU Jobs are enabled.
104104

105105
Default Value: `false`
106106

pkg/apis/ml/v1alpha1/extension_spec_deployment.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ type ArangoMLExtensionSpecDeployment struct {
4747
// Container Keeps the information about Container configuration
4848
*schedulerContainerApi.Container `json:",inline"`
4949

50-
// GPU defined if GPU Jobs are enabledt.
50+
// GPU defined if GPU Jobs are enabled.
5151
// +doc/default: false
5252
GPU *bool `json:"gpu,omitempty"`
5353

pkg/apis/ml/v1alpha1/extension_spec_job.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,14 @@ const (
3636
MLJobFeaturizationType JobType = "featurization"
3737
)
3838

39+
func MLJobTypes() []JobType {
40+
return []JobType{
41+
MLJobTrainingType,
42+
MLJobPredictionType,
43+
MLJobFeaturizationType,
44+
}
45+
}
46+
3947
type ArangoMLJobsTemplates struct {
4048
// Prediction defines template for the prediction job
4149
Prediction *ArangoMLJobTemplates `json:"prediction,omitempty"`

pkg/crd/crds/ml-extension.schema.generated.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ v1alpha1:
419419
type: object
420420
type: array
421421
gpu:
422-
description: GPU defined if GPU Jobs are enabledt.
422+
description: GPU defined if GPU Jobs are enabled.
423423
type: boolean
424424
hostIPC:
425425
type: boolean

0 commit comments

Comments
 (0)
0