Skip to content

Commit

Permalink
catalog: handle change to single catalog binary
Browse files Browse the repository at this point in the history
apiserver and controller-manager are now all built into the new
service-catalog binary. Each component is invoked via argument
similar to how hyperkube functions.
  • Loading branch information
jpeeler committed Oct 24, 2017
1 parent 1af9822 commit de7f4c1
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 11 deletions.
6 changes: 4 additions & 2 deletions examples/service-catalog/service-catalog.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -254,8 +254,9 @@ objects:
serviceAccountName: service-catalog-apiserver
containers:
- command:
- apiserver
- service-catalog
args:
- apiserver
- --admission-control
- KubernetesNamespaceLifecycle,DefaultServicePlan,ServiceBindingsLifecycle,ServicePlanChangeValidator,BrokerAuthSarCheck
- --storage-type
Expand Down Expand Up @@ -352,8 +353,9 @@ objects:
serviceAccountName: service-catalog-controller
containers:
- command:
- controller-manager
- service-catalog
args:
- controller-manager
- -v
- "5"
- --leader-election-namespace
Expand Down
3 changes: 1 addition & 2 deletions hack/build-local-images.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,7 @@
"directory": "service-catalog",
"vendor_dir": "cmd/service-catalog/go/src/github.com/kubernetes-incubator/service-catalog",
"binaries": {
"controller-manager": "/usr/bin/controller-manager",
"apiserver": "/usr/bin/apiserver",
"service-catalog": "/usr/bin/service-catalog",
},
"files": {},
"enable_default": False,
Expand Down
2 changes: 1 addition & 1 deletion images/service-catalog/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ RUN INSTALL_PKGS="origin-service-catalog" && \
rpm -V ${INSTALL_PKGS} && \
yum clean all

CMD [ "/usr/bin/controller-manager" ]
CMD [ "/usr/bin/service-catalog" ]
6 changes: 2 additions & 4 deletions origin.spec
Original file line number Diff line number Diff line change
Expand Up @@ -304,8 +304,7 @@ install -p -m 755 cmd/cluster-capacity/go/src/github.com/kubernetes-incubator/cl
ln -s hypercc %{buildroot}%{_bindir}/cluster-capacity

# Install service-catalog
install -p -m 755 cmd/service-catalog/go/src/github.com/kubernetes-incubator/service-catalog/_output/local/bin/${PLATFORM}/apiserver %{buildroot}%{_bindir}/
install -p -m 755 cmd/service-catalog/go/src/github.com/kubernetes-incubator/service-catalog/_output/local/bin/${PLATFORM}/controller-manager %{buildroot}%{_bindir}/
install -p -m 755 cmd/service-catalog/go/src/github.com/kubernetes-incubator/service-catalog/_output/local/bin/${PLATFORM}/service-catalog %{buildroot}%{_bindir}/

# Install pod
install -p -m 755 _output/local/bin/${PLATFORM}/pod %{buildroot}%{_bindir}/
Expand Down Expand Up @@ -554,8 +553,7 @@ if [ -d %{kube_plugin_path} ]; then
fi

%files service-catalog
%{_bindir}/apiserver
%{_bindir}/controller-manager
%{_bindir}/service-catalog

%files -n tuned-profiles-%{name}-node
%license LICENSE
Expand Down
6 changes: 4 additions & 2 deletions pkg/oc/bootstrap/bindata.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit de7f4c1

Please sign in to comment.