Skip to content

Commit

Permalink
Fix EnvironmentFile path for kubeadm deb package
Browse files Browse the repository at this point in the history
Signed-off-by: Marko Mudrinić <[email protected]>
  • Loading branch information
xmudrii committed Sep 18, 2023
1 parent 95b47fa commit 7dbe599
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cmd/krel/templates/latest/kubeadm/kubeadm.spec
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ Requires: {{ $dep.Name }} {{ $dep.VersionConstraint }}

%if "%{_vendor}" == "debbuild"
BuildRequires: systemd-deb-macros
BuildRequires: sed
%else
BuildRequires: systemd-rpm-macros
%endif
Expand All @@ -41,6 +42,10 @@ KUBE_ARCH="$(uname -m)"
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_unitdir}/kubelet.service.d/

%if "%{_vendor}" == "debbuild"
sed -i 's;/etc/sysconfig/kubelet;/etc/default/kubelet;g' 10-kubeadm.conf
%endif

install -p -m 755 ${KUBE_ARCH}/kubeadm %{buildroot}%{_bindir}/kubeadm
install -p -m 644 10-kubeadm.conf %{buildroot}%{_unitdir}/kubelet.service.d/10-kubeadm.conf

Expand Down

0 comments on commit 7dbe599

Please sign in to comment.