Skip to content

Commit

Permalink
Move openshift-node-config into the node image
Browse files Browse the repository at this point in the history
Do not remove openshift binary from the node image quite yet.
  • Loading branch information
smarterclayton committed Apr 27, 2018
1 parent 0505657 commit 0f58c4e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion images/node/scripts/openshift-node
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ config=/etc/origin/node/bootstrap-node-config.yaml
if [[ -f /etc/origin/node/node-config.yaml ]]; then
config=/etc/origin/node/node-config.yaml
fi
flags=$( /usr/bin/openshift start node --write-flags "--config=${config}" --loglevel=${DEBUG_LOGLEVEL:-2} )
flags=$( /usr/bin/openshift-node-config "--config=${config}" )
exec /usr/bin/hyperkube kubelet --v=${DEBUG_LOGLEVEL:-2} ${flags}
3 changes: 2 additions & 1 deletion origin.spec
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ PLATFORM="$(go env GOHOSTOS)/$(go env GOHOSTARCH)"
install -d %{buildroot}%{_bindir}

# Install linux components
for bin in oc oadm openshift hypershift hyperkube template-service-broker
for bin in oc oadm openshift hypershift hyperkube template-service-broker openshift-node-config
do
echo "+++ INSTALLING ${bin}"
install -p -m 755 _output/local/bin/${PLATFORM}/${bin} %{buildroot}%{_bindir}/${bin}
Expand Down Expand Up @@ -399,6 +399,7 @@ chmod 0744 $RPM_BUILD_ROOT/usr/sbin/%{name}-docker-excluder
%config(noreplace) %{_sysconfdir}/origin/master

%files node
%{_bindir}/openshift-node-config
%{_sysconfdir}/systemd/system.conf.d/origin-accounting.conf
%config(noreplace) %{_sysconfdir}/sysconfig/%{name}-node
%defattr(-,root,root,0700)
Expand Down

0 comments on commit 0f58c4e

Please sign in to comment.