Skip to content

Commit

Permalink
Merge pull request #1226 from racheljpg/gputypevalue
Browse files Browse the repository at this point in the history
OCPCLOUD-2501: Update to set GpuType annotation to remove hardcoded value
  • Loading branch information
openshift-merge-bot[bot] committed Apr 26, 2024
2 parents cf605b0 + b6f73b6 commit ac84cec
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pkg/util/machineset/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,8 @@ func SetGpuCountAnnotation(annotations map[string]string, value string) map[stri

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

return annotations
}
Expand Down

0 comments on commit ac84cec

Please sign in to comment.