Skip to content

Commit 39f6617

Browse files
committed
Don't create nrtd container when Inferentia is not used
1 parent 610747c commit 39f6617

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/operator/operator/k8s.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ func TaskContainers(api *spec.API) ([]kcore.Container, []kcore.Volume) {
140140
if api.Compute.GPU > 0 {
141141
apiPodResourceList["nvidia.com/gpu"] = *kresource.NewQuantity(api.Compute.GPU, kresource.DecimalSI)
142142
apiPodResourceLimitsList["nvidia.com/gpu"] = *kresource.NewQuantity(api.Compute.GPU, kresource.DecimalSI)
143-
} else {
143+
} else if api.Compute.Inf > 0 {
144144
volumes = append(volumes, kcore.Volume{
145145
Name: "neuron-sock",
146146
})

0 commit comments

Comments
 (0)