From 08bfe000f5458f7719a1b6e2020e930f80568315 Mon Sep 17 00:00:00 2001 From: Sergey Zhemoitel Date: Wed, 25 Aug 2021 17:47:34 +0300 Subject: [PATCH] up release, install bash completion --- kubernetes.spec | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/kubernetes.spec b/kubernetes.spec index 99b7c04..3f5f074 100644 --- a/kubernetes.spec +++ b/kubernetes.spec @@ -3,7 +3,7 @@ Name: kubernetes Version: 1.20.2 -Release: 1 +Release: 2 Summary: Production-Grade Container Scheduling and Management License: ASL 2.0 URL: https://kubernetes.io @@ -124,8 +124,11 @@ install -dm0755 %{buildroot}%{_libexecdir}/modules-load.d install -dm0755 %{buildroot}/usr/lib/sysctl.d install -dm0755 %{buildroot}%{_mandir}/man1 +install -d %{buildroot}%{_sysconfdir}/bash_completion.d + # kubeadm install -Dm0755 _output/bin/kubeadm %{buildroot}%{_bindir}/kubeadm +_output/bin/kubeadm completion bash > %{buildroot}%{_sysconfdir}/bash_completion.d/kubeadm # kubelet install -Dm0755 _output/bin/kubelet %{buildroot}%{_bindir}/kubelet @@ -135,6 +138,7 @@ install -Dm0644 %{SOURCE3} %{buildroot}%{_sysconfdir}/sysconfig/kubelet # kubectl install -Dm0755 _output/bin/kubectl %{buildroot}%{_bindir}/kubectl +_output/bin/kubectl completion bash > %{buildroot}%{_sysconfdir}/bash_completion.d/kubectl # other bins install -Dm0755 _output/bin/kube-* %{buildroot}%{_bindir}