@@ -16,7 +16,6 @@ import (
16
16
"github.com/openshift/origin/pkg/api/apihelpers"
17
17
buildapi "github.com/openshift/origin/pkg/build/apis/build"
18
18
buildapiv1 "github.com/openshift/origin/pkg/build/apis/build/v1"
19
- "github.com/openshift/origin/pkg/build/builder/cmd/dockercfg"
20
19
imageapi "github.com/openshift/origin/pkg/image/apis/image"
21
20
"github.com/openshift/origin/pkg/version"
22
21
)
@@ -159,15 +158,15 @@ func setupDockerSecrets(pod *v1.Pod, container *v1.Container, pushSecret, pullSe
159
158
if pushSecret != nil {
160
159
mountSecretVolume (pod , container , pushSecret .Name , DockerPushSecretMountPath , "push" )
161
160
container .Env = append (container .Env , []v1.EnvVar {
162
- {Name : dockercfg . PushAuthType , Value : DockerPushSecretMountPath },
161
+ {Name : "PUSH_DOCKERCFG_PATH" , Value : DockerPushSecretMountPath },
163
162
}... )
164
163
glog .V (3 ).Infof ("%s will be used for docker push in %s" , DockerPushSecretMountPath , pod .Name )
165
164
}
166
165
167
166
if pullSecret != nil {
168
167
mountSecretVolume (pod , container , pullSecret .Name , DockerPullSecretMountPath , "pull" )
169
168
container .Env = append (container .Env , []v1.EnvVar {
170
- {Name : dockercfg . PullAuthType , Value : DockerPullSecretMountPath },
169
+ {Name : "PULL_DOCKERCFG_PATH" , Value : DockerPullSecretMountPath },
171
170
}... )
172
171
glog .V (3 ).Infof ("%s will be used for docker pull in %s" , DockerPullSecretMountPath , pod .Name )
173
172
}
@@ -179,7 +178,7 @@ func setupDockerSecrets(pod *v1.Pod, container *v1.Container, pushSecret, pullSe
179
178
mountPath := filepath .Join (SourceImagePullSecretMountPath , strconv .Itoa (i ))
180
179
mountSecretVolume (pod , container , imageSource .PullSecret .Name , mountPath , fmt .Sprintf ("%s%d" , "source-image" , i ))
181
180
container .Env = append (container .Env , []v1.EnvVar {
182
- {Name : fmt .Sprintf ("%s%d" , dockercfg . PullSourceAuthType , i ), Value : mountPath },
181
+ {Name : fmt .Sprintf ("%s%d" , "PULL_SOURCE_DOCKERCFG_PATH_" , i ), Value : mountPath },
183
182
}... )
184
183
glog .V (3 ).Infof ("%s will be used for docker pull in %s" , mountPath , pod .Name )
185
184
}
0 commit comments