Skip to content

Commit 5183150

Browse files
authored
Merge pull request #15366 from bparees/sc_cluster_backport
use openshift service catalog in cluster up (backport to 3.6)
2 parents 6593c57 + fc278e0 commit 5183150

File tree

4 files changed

+23
-14
lines changed

4 files changed

+23
-14
lines changed

examples/service-catalog/service-catalog.yaml

+9-5
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,9 @@ objects:
195195
spec:
196196
serviceAccountName: service-catalog-apiserver
197197
containers:
198-
- args:
198+
- command:
199+
- apiserver
200+
args:
199201
- --admission-control
200202
- KubernetesNamespaceLifecycle
201203
- --storage-type
@@ -212,7 +214,7 @@ objects:
212214
- "10"
213215
- --cors-allowed-origins
214216
- ${CORS_ALLOWED_ORIGIN}
215-
image: quay.io/kubernetes-service-catalog/apiserver:${SERVICE_CATALOG_TAG}
217+
image: openshift/origin-service-catalog:${SERVICE_CATALOG_TAG}
216218
imagePullPolicy: IfNotPresent
217219
name: apiserver
218220
ports:
@@ -299,7 +301,9 @@ objects:
299301
spec:
300302
serviceAccountName: service-catalog-controller
301303
containers:
302-
- args:
304+
- command:
305+
- controller-manager
306+
args:
303307
- -v
304308
- "5"
305309
- --service-catalog-api-server-url
@@ -308,7 +312,7 @@ objects:
308312
- service-catalog
309313
- --broker-relist-interval
310314
- "5m"
311-
image: quay.io/kubernetes-service-catalog/controller-manager:${SERVICE_CATALOG_TAG}
315+
image: openshift/origin-service-catalog:${SERVICE_CATALOG_TAG}
312316
imagePullPolicy: IfNotPresent
313317
name: controller-manager
314318
ports:
@@ -356,7 +360,7 @@ parameters:
356360
displayName: Service catalog image tag
357361
name: SERVICE_CATALOG_TAG
358362
required: true
359-
value: canary
363+
value: latest
360364
- description: Cluster ip address for the service catalog service
361365
displayName: Service Catalog Service IP
362366
name: SERVICE_CATALOG_SERVICE_IP

pkg/bootstrap/bindata.go

+9-5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/bootstrap/docker/openshift/servicecatalog.go

+3-2
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const (
2929
)
3030

3131
// InstallServiceCatalog checks whether the service catalog is installed and installs it if not already installed
32-
func (h *Helper) InstallServiceCatalog(f *clientcmd.Factory, publicMaster, catalogHost string) error {
32+
func (h *Helper) InstallServiceCatalog(f *clientcmd.Factory, publicMaster, catalogHost string, tag string) error {
3333
osClient, kubeClient, err := f.Clients()
3434
if err != nil {
3535
return errors.NewError("cannot obtain API clients").WithCause(err).WithDetails(h.OriginLog())
@@ -81,8 +81,9 @@ func (h *Helper) InstallServiceCatalog(f *clientcmd.Factory, publicMaster, catal
8181
params := map[string]string{
8282
"SERVICE_CATALOG_SERVICE_IP": ServiceCatalogServiceIP,
8383
"CORS_ALLOWED_ORIGIN": publicMaster,
84+
"SERVICE_CATALOG_TAG": tag,
8485
}
85-
glog.V(2).Infof("instantiating service catalog template")
86+
glog.V(2).Infof("instantiating service catalog template with parameters %v", params)
8687

8788
// Stands up the service catalog apiserver, etcd, and controller manager
8889
err = instantiateTemplate(osClient, clientcmd.ResourceMapper(f), OpenshiftInfraNamespace, catalogTemplate, catalogNamespace, params)

pkg/bootstrap/docker/up.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -1033,8 +1033,8 @@ func (c *ClientStartConfig) InstallServiceCatalog(out io.Writer) error {
10331033
if len(publicMaster) == 0 {
10341034
publicMaster = c.ServerIP
10351035
}
1036-
1037-
return c.OpenShiftHelper().InstallServiceCatalog(f, publicMaster, openshift.CatalogHost(c.RoutingSuffix, c.ServerIP))
1036+
tag := c.ImageVersion
1037+
return c.OpenShiftHelper().InstallServiceCatalog(f, publicMaster, openshift.CatalogHost(c.RoutingSuffix, c.ServerIP), tag)
10381038
}
10391039

10401040
// Login logs into the new server and sets up a default user and project

0 commit comments

Comments
 (0)