@@ -356,19 +356,12 @@ func (s *Scheduler) scheduleRequest(worker *types.Worker, request *types.Contain
356356// attachImageCredentials fetches and attaches OCI credentials to a container request
357357func (s * Scheduler ) attachImageCredentials (request * types.ContainerRequest ) error {
358358 if request .ImageId == "" {
359- log .Debug ().
360- Str ("container_id" , request .ContainerId ).
361- Msg ("no image ID, skipping credential attachment" )
362359 return nil
363360 }
364361
365362 // Skip credential attachment for build containers - they already have credentials
366363 // in BuildOptions.SourceImageCreds for pulling the base image during the build
367364 if strings .HasPrefix (request .ContainerId , types .BuildContainerPrefix ) {
368- log .Debug ().
369- Str ("container_id" , request .ContainerId ).
370- Str ("image_id" , request .ImageId ).
371- Msg ("build container, skipping credential attachment" )
372365 return nil
373366 }
374367
@@ -425,10 +418,6 @@ func (s *Scheduler) attachBuildRegistryCredentials(request *types.ContainerReque
425418 // Check if we have credentials configured for the build registry
426419 buildRegistryCredentials := s .config .ImageService .BuildRegistryCredentials
427420 if buildRegistryCredentials .Type == "" || len (buildRegistryCredentials .Credentials ) == 0 {
428- log .Debug ().
429- Str ("container_id" , request .ContainerId ).
430- Str ("build_registry" , buildRegistry ).
431- Msg ("no build registry credentials in config, will use ambient auth" )
432421 return nil
433422 }
434423
0 commit comments