Commit 86e7bf2c authored by Vineet Reddy Rajula's avatar Vineet Reddy Rajula
Browse files

Hotfix For drush job use ImageStream internal repo to reference images

parent e5a5bd40
Pipeline #2413952 passed with stages
in 3 minutes and 35 seconds
......@@ -597,7 +597,7 @@ func deploymentForDrupalSite(currentobject *appsv1.Deployment, d *webservicesv1a
currentobject.Spec.Template.Spec = corev1.PodSpec{
Containers: []corev1.Container{{
Image: "image-registry.openshift-image-registry.svc:5000/" + d.Namespace + "/drupal-nginx-" + d.Name + ":" + d.Spec.DrupalVersion,
Image: "image-registry.openshift-image-registry.svc:5000/" + d.Namespace + "/drupal-nginx-" + d.Name + ":" + d.Spec.DrupalVersion,
Name: "nginx",
ImagePullPolicy: "IfNotPresent",
Ports: []corev1.ContainerPort{{
......@@ -637,7 +637,7 @@ func deploymentForDrupalSite(currentobject *appsv1.Deployment, d *webservicesv1a
},
},
{
Image: "image-registry.openshift-image-registry.svc:5000/" + d.Namespace + "/drupal-php-" + d.Name + ":" + d.Spec.DrupalVersion,
Image: "image-registry.openshift-image-registry.svc:5000/" + d.Namespace + "/drupal-php-" + d.Name + ":" + d.Spec.DrupalVersion,
Name: "php-fpm",
ImagePullPolicy: "IfNotPresent",
Ports: []corev1.ContainerPort{{
......@@ -896,7 +896,7 @@ func jobForDrupalSiteDrush(currentobject *batchv1.Job, d *webservicesv1a1.Drupal
}},
RestartPolicy: "Never",
Containers: []corev1.Container{{
Image: "drupal-php-" + d.Name + ":" + d.Spec.DrupalVersion,
Image: "image-registry.openshift-image-registry.svc:5000/" + d.Namespace + "/drupal-php-" + d.Name + ":" + d.Spec.DrupalVersion,
Name: "drush",
ImagePullPolicy: "Always",
Command: siteInstallJobForDrupalSite(),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment