Skip to content

Commit

Permalink
chore: naming nit preset-inferences.go
Browse files Browse the repository at this point in the history
Signed-off-by: Ishaan Sehgal <ishaanforthewin@gmail.com>
  • Loading branch information
ishaansehgal99 authored Apr 17, 2024
1 parent e2f5e25 commit 65a99da
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions pkg/inference/preset-inferences.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,12 +120,12 @@ func CreatePresetInference(ctx context.Context, workspaceObj *kaitov1alpha1.Work

var volumes []corev1.Volume
var volumeMounts []corev1.VolumeMount
volume, volumeMount := utils.ConfigSHMVolume(*workspaceObj.Resource.Count)
if volume.Name != "" {
volumes = append(volumes, volume)
}
if volumeMount.Name != "" {
volumeMounts = append(volumeMounts, volumeMount)
shmVolume, shmVolumeMount := utils.ConfigSHMVolume(*workspaceObj.Resource.Count)
if shmVolume.Name != "" {
volumes = append(volumes, shmVolume)
}
if shmVolumeMount.Name != "" {
volumeMounts = append(volumeMounts, shmVolumeMount)
}
commands, resourceReq := prepareInferenceParameters(ctx, inferenceObj)
image, imagePullSecrets := GetInferenceImageInfo(ctx, workspaceObj, inferenceObj)
Expand Down

0 comments on commit 65a99da

Please sign in to comment.