Skip to content

Commit ac84cec

Browse files
Merge pull request #1226 from racheljpg/gputypevalue
OCPCLOUD-2501: Update to set GpuType annotation to remove hardcoded value
2 parents cf605b0 + b6f73b6 commit ac84cec

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

pkg/util/machineset/util.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,8 @@ func SetGpuCountAnnotation(annotations map[string]string, value string) map[stri
7777

7878
// SetGpuTypeAnnotation sets a value for gpu type in the annotations of a MachineSet.
7979
// Currently, we only support nvidia as a gpu type.
80-
func SetGpuTypeAnnotation(annotations map[string]string, _ string) map[string]string {
81-
// TODO: Once we introduce proper gpu types, this needs to be changed.
82-
annotations[GpuTypeKey] = GpuNvidiaType
80+
func SetGpuTypeAnnotation(annotations map[string]string, value string) map[string]string {
81+
annotations[GpuTypeKey] = value
8382

8483
return annotations
8584
}

0 commit comments

Comments
 (0)