@@ -451,6 +451,10 @@ func (br buildRequestImpl) toBuildahPod() *corev1.Pod {
451451			Name :  "NO_PROXY" ,
452452			Value : noProxy ,
453453		},
454+ 		{
455+ 			Name :  "BASE_OS_IMAGE_PULLSPEC" ,
456+ 			Value : br .opts .OSImageURLConfig .BaseOSContainerImage ,
457+ 		},
454458	}
455459
456460	securityContext  :=  & corev1.SecurityContext {}
@@ -560,7 +564,6 @@ func (br buildRequestImpl) toBuildahPod() *corev1.Pod {
560564			VolumeSource : corev1.VolumeSource {
561565				Secret : & corev1.SecretVolumeSource {
562566					SecretName : br .getBasePullSecretName (),
563- 					// SecretName: br.opts.MachineOSConfig.Spec.BuildInputs.BaseImagePullSecret.Name, 
564567					Items : []corev1.KeyToPath {
565568						{
566569							Key :  corev1 .DockerConfigJsonKey ,
@@ -575,7 +578,6 @@ func (br buildRequestImpl) toBuildahPod() *corev1.Pod {
575578			Name : "final-image-push-creds" ,
576579			VolumeSource : corev1.VolumeSource {
577580				Secret : & corev1.SecretVolumeSource {
578- 					// SecretName: br.opts.MachineOSConfig.Spec.BuildInputs.RenderedImagePushSecret.Name, 
579581					SecretName : br .getFinalPushSecretName (),
580582					Items : []corev1.KeyToPath {
581583						{
@@ -587,14 +589,11 @@ func (br buildRequestImpl) toBuildahPod() *corev1.Pod {
587589			},
588590		},
589591		{
590- 			// Provides a way for the "image-build" container to signal that it 
591- 			// finished so that the "wait-for-done" container can retrieve the 
592- 			// iamge SHA. 
592+ 			// Provides a way for the "image-build" container to pass the digested 
593+ 			// pullspec and oc binary to the "create-digest-configmap" container. 
593594			Name : "done" ,
594595			VolumeSource : corev1.VolumeSource {
595- 				EmptyDir : & corev1.EmptyDirVolumeSource {
596- 					Medium : corev1 .StorageMediumMemory ,
597- 				},
596+ 				EmptyDir : & corev1.EmptyDirVolumeSource {},
598597			},
599598		},
600599		{
@@ -671,7 +670,7 @@ func (br buildRequestImpl) toBuildahPod() *corev1.Pod {
671670					// us to avoid parsing log files. 
672671					Name :            "create-digest-configmap" ,
673672					Command :         append (command , digestCMScript ),
674- 					Image :           br .opts .OSImageURLConfig . BaseOSContainerImage ,
673+ 					Image :           br .opts .Images . MachineConfigOperator ,
675674					Env :             env ,
676675					ImagePullPolicy : corev1 .PullAlways ,
677676					SecurityContext : securityContext ,
0 commit comments