Skip to content

Commit 96cf3f6

Browse files
committed
Fix missing utils.DefaultModelStorePath
Signed-off-by: Shiva Krishna, Merla <smerla@nvidia.com>
1 parent dbb69ea commit 96cf3f6

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

internal/controller/nimcache_controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1158,7 +1158,7 @@ func (r *NIMCacheReconciler) constructJob(ctx context.Context, nimCache *appsv1a
11581158
Name: hfDataSource.GetPullSecret(),
11591159
},
11601160
}
1161-
} else if nimCache.Spec.Source.NGC != nil {
1161+
case nimCache.Spec.Source.NGC != nil:
11621162
job.Spec.Template.Spec.Containers = []corev1.Container{
11631163
{
11641164
Name: NIMCacheContainerName,

internal/utils/utils.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ const (
4444

4545
// NvidiaAnnotationParentSpecHashKey indicates annotation name for applied hash by the operator.
4646
NvidiaAnnotationParentSpecHashKey = "nvidia.com/parent-spec-hash"
47+
48+
// DefaultModelStorePath is the default path for model store.
49+
DefaultModelStorePath = "/model-store"
4750
)
4851

4952
// GetFilesWithSuffix returns all files under a given base directory that have a specific suffix

0 commit comments

Comments
 (0)