Skip to content

Commit dc742a4

Browse files
Move openshift-node-config into the node image
Do not remove openshift binary from the node image quite yet.
1 parent 4fda3aa commit dc742a4

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

images/node/scripts/openshift-node

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@ config=/etc/origin/node/bootstrap-node-config.yaml
1414
if [[ -f /etc/origin/node/node-config.yaml ]]; then
1515
config=/etc/origin/node/node-config.yaml
1616
fi
17-
flags=$( /usr/bin/openshift start node --write-flags "--config=${config}" --loglevel=${DEBUG_LOGLEVEL:-2} )
17+
flags=$( /usr/bin/openshift-node-config "--config=${config}" )
1818
exec /usr/bin/hyperkube kubelet --v=${DEBUG_LOGLEVEL:-2} ${flags}

origin.spec

+2-1
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ PLATFORM="$(go env GOHOSTOS)/$(go env GOHOSTARCH)"
262262
install -d %{buildroot}%{_bindir}
263263

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

401401
%files node
402+
%{_bindir}/openshift-node-config
402403
%{_sysconfdir}/systemd/system.conf.d/origin-accounting.conf
403404
%config(noreplace) %{_sysconfdir}/sysconfig/%{name}-node
404405
%defattr(-,root,root,0700)

0 commit comments

Comments
 (0)