-
Notifications
You must be signed in to change notification settings - Fork 519
kubepkg: Bundle CNI plugins (v0.8.6) in kubelet deb/rpm packages #1330
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
1 change: 1 addition & 0 deletions
1
cmd/kubepkg/templates/latest/deb/kubelet/debian/kubelet.install
This file contains hidden or 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,2 +1,3 @@ | ||
usr/bin/kubelet usr/bin/ | ||
lib/systemd/system/kubelet.service lib/systemd/system/ | ||
bin/ opt/cni |
This file contains hidden or 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 was deleted.
Oops, something went wrong.
6 changes: 0 additions & 6 deletions
6
cmd/kubepkg/templates/latest/deb/kubernetes-cni/debian/changelog
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
15 changes: 0 additions & 15 deletions
15
cmd/kubepkg/templates/latest/deb/kubernetes-cni/debian/control
This file was deleted.
Oops, something went wrong.
18 changes: 0 additions & 18 deletions
18
cmd/kubepkg/templates/latest/deb/kubernetes-cni/debian/copyright
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
cmd/kubepkg/templates/latest/deb/kubernetes-cni/debian/kubernetes-cni.install
This file was deleted.
Oops, something went wrong.
24 changes: 0 additions & 24 deletions
24
cmd/kubepkg/templates/latest/deb/kubernetes-cni/debian/rules
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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 |
---|---|---|
|
@@ -6,23 +6,26 @@ Summary: Container cluster management | |
License: ASL 2.0 | ||
URL: https://kubernetes.io | ||
Source0: {{ .DownloadLinkBase }}/bin/linux/{{ .GoArch }}/kubelet | ||
Source1: {{ .CNIDownloadLink }} | ||
|
||
BuildRequires: systemd | ||
BuildRequires: curl | ||
Requires: iptables >= 1.4.21 | ||
Requires: kubernetes-cni >= {{ index .Dependencies "kubernetes-cni" }} | ||
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. | ||
|
||
%prep | ||
cp -p %SOURCE0 %{_builddir}/ | ||
%setup -c -D -T -a 5 -n cni-plugins | ||
|
||
# TODO: Do we need these? | ||
#%autosetup | ||
|
@@ -43,13 +46,18 @@ install -p -m 755 -t %{buildroot}%{_bindir}/ kubelet | |
install -p -m 644 -t %{buildroot}%{_unitdir}/ kubelet.service | ||
install -m 755 -d %{buildroot}%{_sysconfdir}/sysconfig/ | ||
install -p -m 644 -T kubelet.env %{buildroot}%{_sysconfdir}/sysconfig/kubelet | ||
install -m 755 -d %{buildroot}%{_sysconfdir}/cni/net.d/ | ||
install -m 755 -d %{buildroot}/opt/cni/bin | ||
mv cni-plugins/* %{buildroot}/opt/cni/bin/ | ||
|
||
# TODO: Do we need this? | ||
#%make_install | ||
|
||
%files | ||
%{_bindir}/kubelet | ||
%{_unitdir}/kubelet.service | ||
%{_sysconfdir}/kubernetes/manifests/ | ||
/opt/cni | ||
|
||
%config(noreplace) %{_sysconfdir}/sysconfig/kubelet | ||
|
||
|
@@ -59,6 +67,9 @@ install -p -m 644 -T kubelet.env %{buildroot}%{_sysconfdir}/sysconfig/kubelet | |
|
||
|
||
%changelog | ||
* Fri May 22 2020 Stephen Augustus <[email protected]> - 1.18.4 | ||
- Bundle CNI plugins (v0.8.6) in kubelet package | ||
|
||
* Sat Jan 4 2020 Stephen Augustus <[email protected]> - 1.18.0 | ||
- Move kubeadm into separate spec file | ||
- Move kubectl into separate spec file | ||
|
48 changes: 0 additions & 48 deletions
48
cmd/kubepkg/templates/latest/rpm/kubernetes-cni/kubernetes-cni.spec
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As mentioned in #1309 (comment), I think we could discuss a better location than
/opt