-
Notifications
You must be signed in to change notification settings - Fork 505
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1375 from justaugustus/fix-kubernetes-cni
packages: Reintroduce kubernetes-cni package at v0.8.6
- Loading branch information
Showing
13 changed files
with
125 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
usr/bin/kubelet usr/bin/ | ||
lib/systemd/system/kubelet.service lib/systemd/system/ | ||
bin/ opt/cni |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
bin/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
kubernetes-cni ({{ .Version }}-{{ .Revision }}) {{ .DistroName }} {{ .Arch }}; urgency=optional | ||
|
||
* https://github.com/kubernetes/kubernetes/blob/master/CHANGELOG.md | ||
|
||
-- Kubernetes Authors <[email protected]> {{ date }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
9 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
Source: kubernetes-cni | ||
Section: misc | ||
Priority: optional | ||
Maintainer: Kubernetes Authors <[email protected]> | ||
Build-Depends: curl, ca-certificates, debhelper (>= 8.0.0) | ||
Standards-Version: 3.9.4 | ||
Homepage: https://kubernetes.io | ||
Vcs-Git: https://github.com/kubernetes/kubernetes.git | ||
Vcs-Browser: https://github.com/kubernetes/kubernetes | ||
|
||
Package: kubernetes-cni | ||
Architecture: {{ .DebArch }} | ||
Depends: ${shlibs:Depends}, ${misc:Depends} | ||
Description: Kubernetes CNI | ||
The binaries required to provision container networking |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ | ||
Upstream-Name: kubernetes-cni | ||
Source: https://github.com/kubernetes/kubernetes | ||
|
||
Files: * | ||
Copyright: 2016 The Linux Foundation and its contributors | ||
License: Apache-2.0 | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
. | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
. | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. |
1 change: 1 addition & 0 deletions
1
packages/deb/bionic/kubernetes-cni/debian/kubernetes-cni.install
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
bin/ opt/cni |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/usr/bin/make -f | ||
# -*- makefile -*- | ||
|
||
#export DH_VERBOSE=1 | ||
|
||
build: | ||
echo noop | ||
|
||
binary: | ||
mkdir -p ./bin | ||
curl -sSL --fail --retry 5 \ | ||
"https://storage.googleapis.com/k8s-artifacts-cni/release/v{{ .CNIVersion }}/cni-plugins-linux-{{ .Arch }}-v{{ .CNIVersion }}.tgz" \ | ||
| tar -C ./bin -xz | ||
dh_testroot | ||
dh_auto_install | ||
dh_shlibdeps | ||
dh_install | ||
dh_installdeb | ||
dh_gencontrol | ||
dh_md5sums | ||
dh_builddeb | ||
|
||
%: | ||
dh $@ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,19 +33,28 @@ Source7: https://storage.googleapis.com/k8s-artifacts-cri-tools/release/v%{CRI_T | |
BuildRequires: systemd | ||
BuildRequires: curl | ||
Requires: iptables >= 1.4.21 | ||
Requires: kubernetes-cni >= %{CNI_VERSION} | ||
Requires: socat | ||
Requires: util-linux | ||
Requires: ethtool | ||
Requires: iproute | ||
Requires: ebtables | ||
Requires: conntrack | ||
Obsoletes: kubernetes-cni | ||
Conflicts: kubernetes-cni | ||
|
||
|
||
%description | ||
The node agent of Kubernetes, the container cluster manager. | ||
|
||
%package -n kubernetes-cni | ||
|
||
Version: %{CNI_VERSION} | ||
Release: %{RPM_RELEASE} | ||
Summary: Binaries required to provision kubernetes container networking | ||
Requires: kubelet | ||
|
||
%description -n kubernetes-cni | ||
Binaries required to provision container networking. | ||
|
||
%package -n kubectl | ||
|
||
Version: %{KUBE_VERSION} | ||
|
@@ -62,6 +71,7 @@ Release: %{RPM_RELEASE} | |
Summary: Command-line utility for administering a Kubernetes cluster. | ||
Requires: kubelet >= 1.13.0 | ||
Requires: kubectl >= 1.13.0 | ||
Requires: kubernetes-cni >= 0.8.6 | ||
Requires: cri-tools >= 1.13.0 | ||
|
||
%description -n kubeadm | ||
|
@@ -127,10 +137,12 @@ mv cni-plugins/* %{buildroot}/opt/cni/bin/ | |
%{_bindir}/kubelet | ||
%{_unitdir}/kubelet.service | ||
%{_sysconfdir}/kubernetes/manifests/ | ||
/opt/cni | ||
|
||
%config(noreplace) %{_sysconfdir}/sysconfig/kubelet | ||
|
||
%files -n kubernetes-cni | ||
/opt/cni | ||
|
||
%files -n kubectl | ||
%{_bindir}/kubectl | ||
|
||
|
@@ -145,6 +157,9 @@ mv cni-plugins/* %{buildroot}/opt/cni/bin/ | |
|
||
|
||
%changelog | ||
* Mon Jun 22 2020 Stephen Augustus <[email protected]> - 1.18.4 | ||
- Unbundle CNI plugins (v0.8.6) from kubelet package and release as kubernetes-cni | ||
|
||
* Fri May 29 2020 Stephen Augustus <[email protected]> - 1.18.4 | ||
- Source cri-tools from https://storage.googleapis.com/k8s-artifacts-cri-tools/release | ||
instead of https://github.com/kubernetes-sigs/cri-tools | ||
|