Skip to content

Commit 182b510

Browse files
committed
CR comment
1 parent f632f25 commit 182b510

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/binder/common/gpu_access.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ func UpdateConfigMapEnvironmentVariable(
160160

161161
func GetFractionContainerRef(pod *v1.Pod) (*gpusharingconfigmap.PodContainerRef, error) {
162162
containers := pod.Spec.Containers
163-
containerType := getContainerType(pod)
163+
containerType := getFractionContainerType(pod)
164164
if containerType == gpusharingconfigmap.InitContainer {
165165
containers = pod.Spec.InitContainers
166166
if len(containers) == 0 {
@@ -192,7 +192,7 @@ func GetFractionContainerRef(pod *v1.Pod) (*gpusharingconfigmap.PodContainerRef,
192192
return nil, fmt.Errorf("fraction container of type %s with name %s not found", containerType, fractionContainerName)
193193
}
194194

195-
func getContainerType(pod *v1.Pod) gpusharingconfigmap.ContainerType {
195+
func getFractionContainerType(pod *v1.Pod) gpusharingconfigmap.ContainerType {
196196
typeOverride, found := pod.Annotations[constants.GpuFractionContainerType]
197197
if found {
198198
if typeOverride == string(gpusharingconfigmap.InitContainer) {

0 commit comments

Comments
 (0)