forked from kubernetes/kubernetes
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
git clean -xdf go mod download go mod vendor git checkout HEAD -- vendor tar zcvf ../kubernetes_1.29.5.orig.tar.gz --exclude=.git . debuild -uc -us cp kubernetes.spec ../kubernetes_1.29.5-1.spec cp ../kubernetes*1.29.5*.{gz,xz,spec,dsc} /osc/home\:alvistack/kubernetes-kubernetes-1.29.5/ rm -rf ../kubernetes*1.29.5*.* See kubernetes#124933 See kubernetes#124908 Signed-off-by: Wong Hoi Sing Edison <hswong3i@pantarei-design.com>
- Loading branch information
Showing
24 changed files
with
360 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
1.21.9 | ||
1.22.5 |
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,8 @@ | ||
*.substvars | ||
*debhelper* | ||
.debhelper | ||
files | ||
kubernetes-kubeadm | ||
kubernetes-kubectl | ||
kubernetes-kubelet | ||
tmp |
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,5 @@ | ||
kubernetes (100:1.29.5-1) UNRELEASED; urgency=medium | ||
|
||
* https://github.com/kubernetes/kubernetes/releases/tag/v1.29.5 | ||
|
||
-- Wong Hoi Sing Edison <hswong3i@pantarei-design.com> Wed, 15 May 2024 08:56:26 +0800 |
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,45 @@ | ||
Source: kubernetes | ||
Section: misc | ||
Priority: optional | ||
Standards-Version: 4.5.0 | ||
Maintainer: Wong Hoi Sing Edison <hswong3i@pantarei-design.com> | ||
Homepage: https://github.com/kubernetes/kubernetes/tags | ||
Vcs-Browser: https://github.com/alvistack/kubernetes-kubernetes | ||
Vcs-Git: https://github.com/alvistack/kubernetes-kubernetes.git | ||
Build-Depends: | ||
debhelper, | ||
debhelper-compat (= 10), | ||
golang-1.22, | ||
rsync, | ||
|
||
Package: kubernetes-kubectl | ||
Architecture: amd64 | ||
Description: Kubernetes Command Line Tool | ||
The Kubernetes command line tool for interacting with the Kubernetes API. | ||
Depends: | ||
${shlibs:Depends}, | ||
${misc:Depends}, | ||
|
||
Package: kubernetes-kubelet | ||
Architecture: amd64 | ||
Description: Kubernetes Node Agent | ||
The node agent of Kubernetes, the container cluster manager. | ||
Depends: | ||
${shlibs:Depends}, | ||
${misc:Depends}, | ||
conntrack, | ||
containernetworking-plugins, | ||
ebtables, | ||
ethtool, | ||
iproute2, | ||
iptables (>= 1.4.21), | ||
socat, | ||
util-linux (>= 2.23.1), | ||
|
||
Package: kubernetes-kubeadm | ||
Architecture: amd64 | ||
Description: Kubernetes Cluster Bootstrapping Tool | ||
The Kubernetes command line tool for bootstrapping a Kubernetes cluster. | ||
Depends: | ||
${shlibs:Depends}, | ||
${misc:Depends}, |
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,21 @@ | ||
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ | ||
|
||
Files: debian/* | ||
Copyright: 2024 Wong Hoi Sing Edison <hswong3i@pantarei-design.com> | ||
License: Apache-2.0 | ||
|
||
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. | ||
. | ||
The complete text of the Apache version 2.0 license | ||
can be found in "/usr/share/common-licenses/Apache-2.0". |
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 @@ | ||
lib/systemd/system/kubelet.service.d |
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,3 @@ | ||
lib/systemd/system/kubelet.service.d/10-kubeadm.conf | ||
usr/bin/kubeadm | ||
usr/share/bash-completion/completions/kubeadm |
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,5 @@ | ||
kubernetes-kubeadm: copyright-without-copyright-notice | ||
kubernetes-kubeadm: initial-upload-closes-no-bugs | ||
kubernetes-kubeadm: no-manual-page | ||
kubernetes-kubeadm: statically-linked-binary | ||
kubernetes-kubeadm: zero-byte-file-in-doc-directory |
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,2 @@ | ||
usr/bin/kubectl | ||
usr/share/bash-completion/completions/kubectl |
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,5 @@ | ||
kubernetes-kubectl: copyright-without-copyright-notice | ||
kubernetes-kubectl: initial-upload-closes-no-bugs | ||
kubernetes-kubectl: no-manual-page | ||
kubernetes-kubectl: statically-linked-binary | ||
kubernetes-kubectl: zero-byte-file-in-doc-directory |
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,2 @@ | ||
etc/kubernetes | ||
etc/kubernetes/manifests |
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,2 @@ | ||
lib/systemd/system/kubelet.service | ||
usr/bin/kubelet |
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,5 @@ | ||
kubernetes-kubelet: copyright-without-copyright-notice | ||
kubernetes-kubelet: hardening-no-pie | ||
kubernetes-kubelet: initial-upload-closes-no-bugs | ||
kubernetes-kubelet: no-manual-page | ||
kubernetes-kubelet: zero-byte-file-in-doc-directory |
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,33 @@ | ||
#!/usr/bin/make -f | ||
|
||
SHELL := /bin/bash | ||
|
||
override_dh_auto_build: | ||
set -ex && \ | ||
export KUBE_GIT_TREE_STATE="clean" && \ | ||
export KUBE_GIT_COMMIT="a2068b2a6eb2ada695a2455bf2f18afead572989" && \ | ||
export KUBE_GIT_VERSION="v1.29.5" && \ | ||
make WHAT="cmd/kubelet" && \ | ||
make WHAT="cmd/kubeadm" && \ | ||
make WHAT="cmd/kubectl" | ||
|
||
override_dh_auto_install: | ||
install -Dpm755 -d debian/tmp/etc/kubernetes/manifests | ||
install -Dpm755 -d debian/tmp/usr/bin | ||
install -Dpm755 -d debian/tmp/usr/share/bash-completion/completions | ||
install -Dpm755 -d debian/tmp/lib/systemd/system | ||
install -Dpm755 -d debian/tmp/lib/systemd/system/kubelet.service.d | ||
install -Dpm755 -t debian/tmp/usr/bin _output/local/go/bin/kubeadm | ||
install -Dpm755 -t debian/tmp/usr/bin _output/local/go/bin/kubectl | ||
install -Dpm755 -t debian/tmp/usr/bin _output/local/go/bin/kubelet | ||
install -Dpm644 -t debian/tmp/lib/systemd/system lib/systemd/system/kubelet.service | ||
install -Dpm644 -t debian/tmp/lib/systemd/system/kubelet.service.d lib/systemd/system/kubelet.service.d/10-kubeadm.conf | ||
./_output/local/go/bin/kubectl completion bash > debian/tmp/usr/share/bash-completion/completions/kubectl | ||
./_output/local/go/bin/kubeadm completion bash > debian/tmp/usr/share/bash-completion/completions/kubeadm | ||
|
||
override_dh_auto_test: | ||
|
||
override_dh_auto_clean: | ||
|
||
%: | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
3.0 (quilt) |
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,2 @@ | ||
kubernetes source: file-without-copyright-information | ||
kubernetes source: no-debian-changes |
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,108 @@ | ||
# Copyright 2024 Wong Hoi Sing Edison <hswong3i@pantarei-design.com> | ||
# | ||
# 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. | ||
|
||
%global debug_package %{nil} | ||
|
||
%global source_date_epoch_from_changelog 0 | ||
|
||
Name: kubernetes | ||
Epoch: 100 | ||
Version: 1.29.5 | ||
Release: 1%{?dist} | ||
Summary: Container Scheduling and Management | ||
License: Apache-2.0 | ||
URL: https://github.com/kubernetes/kubernetes/tags | ||
Source0: %{name}_%{version}.orig.tar.gz | ||
BuildRequires: golang-1.22 | ||
BuildRequires: glibc-static | ||
BuildRequires: rsync | ||
|
||
%description | ||
Kubernetes is a system for automating deployment, scaling, and | ||
management of containerized applications. It groups containers that make | ||
up an application into logical units for management and discovery. | ||
|
||
%package kubectl | ||
Summary: Kubernetes Command Line Tool | ||
|
||
%description kubectl | ||
The Kubernetes command line tool for interacting with the Kubernetes API. | ||
|
||
%package kubelet | ||
Summary: Kubernetes Node Agent | ||
Requires: conntrack-tools | ||
Requires: containernetworking-plugins | ||
Requires: ebtables | ||
Requires: ethtool | ||
Requires: iproute | ||
Requires: iptables >= 1.4.21 | ||
Requires: socat | ||
Requires: util-linux >= 2.23.1 | ||
|
||
%description kubelet | ||
The node agent of Kubernetes, the container cluster manager. | ||
|
||
%package kubeadm | ||
Summary: Kubernetes Cluster Bootstrapping Tool | ||
|
||
%description kubeadm | ||
The Kubernetes command line tool for bootstrapping a Kubernetes cluster. | ||
|
||
%prep | ||
%autosetup -T -c -n %{name}_%{version}-%{release} | ||
tar -zx -f %{S:0} --strip-components=1 -C . | ||
|
||
%build | ||
set -ex && \ | ||
export KUBE_GIT_TREE_STATE="clean" && \ | ||
export KUBE_GIT_COMMIT="a2068b2a6eb2ada695a2455bf2f18afead572989" && \ | ||
export KUBE_GIT_VERSION="v1.29.5" && \ | ||
make WHAT="cmd/kubelet" && \ | ||
make WHAT="cmd/kubeadm" && \ | ||
make WHAT="cmd/kubectl" | ||
|
||
%install | ||
install -Dpm755 -d %{buildroot}%{_sysconfdir}/kubernetes/manifests | ||
install -Dpm755 -d %{buildroot}%{_bindir} | ||
install -Dpm755 -d %{buildroot}%{_unitdir} | ||
install -Dpm755 -d %{buildroot}%{_unitdir}/kubelet.service.d | ||
install -Dpm755 -d %{buildroot}%{_prefix}/share/bash-completion/completions | ||
install -Dpm755 -t %{buildroot}%{_bindir}/ _output/local/go/bin/kubeadm | ||
install -Dpm755 -t %{buildroot}%{_bindir}/ _output/local/go/bin/kubectl | ||
install -Dpm755 -t %{buildroot}%{_bindir}/ _output/local/go/bin/kubelet | ||
install -Dpm644 -t %{buildroot}%{_unitdir}/ lib/systemd/system/kubelet.service | ||
install -Dpm644 -t %{buildroot}%{_unitdir}/kubelet.service.d/ lib/systemd/system/kubelet.service.d/10-kubeadm.conf | ||
./_output/local/go/bin/kubectl completion bash > %{buildroot}%{_prefix}/share/bash-completion/completions/kubectl | ||
./_output/local/go/bin/kubeadm completion bash > %{buildroot}%{_prefix}/share/bash-completion/completions/kubeadm | ||
|
||
%files kubectl | ||
%license LICENSE | ||
%{_bindir}/kubectl | ||
%{_prefix}/share/bash-completion/completions/kubectl | ||
|
||
%files kubelet | ||
%license LICENSE | ||
%dir %{_sysconfdir}/kubernetes | ||
%dir %{_sysconfdir}/kubernetes/manifests | ||
%{_bindir}/kubelet | ||
%{_unitdir}/kubelet.service | ||
|
||
%files kubeadm | ||
%license LICENSE | ||
%dir %{_unitdir}/kubelet.service.d | ||
%{_bindir}/kubeadm | ||
%{_unitdir}/kubelet.service.d/10-kubeadm.conf | ||
%{_prefix}/share/bash-completion/completions/kubeadm | ||
|
||
%changelog |
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,14 @@ | ||
[Unit] | ||
Description=kubelet: The Kubernetes Node Agent | ||
Documentation=https://kubernetes.io/docs/home/ | ||
After=network-online.target local-fs.target remote-fs.target time-sync.target | ||
Wants=network-online.target local-fs.target remote-fs.target time-sync.target | ||
|
||
[Service] | ||
ExecStart=/usr/bin/kubelet | ||
Restart=always | ||
StartLimitInterval=0 | ||
RestartSec=10 | ||
|
||
[Install] | ||
WantedBy=multi-user.target |
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,11 @@ | ||
# Note: This dropin only works with kubeadm and kubelet v1.11+ | ||
[Service] | ||
Environment="KUBELET_KUBECONFIG_ARGS=--bootstrap-kubeconfig=/etc/kubernetes/bootstrap-kubelet.conf --kubeconfig=/etc/kubernetes/kubelet.conf" | ||
Environment="KUBELET_CONFIG_ARGS=--config=/var/lib/kubelet/config.yaml" | ||
# This is a file that "kubeadm init" and "kubeadm join" generates at runtime, populating the KUBELET_KUBEADM_ARGS variable dynamically | ||
EnvironmentFile=-/var/lib/kubelet/kubeadm-flags.env | ||
# This is a file that the user can use for overrides of the kubelet args as a last resort. Preferably, the user should use | ||
# the .NodeRegistration.KubeletExtraArgs object in the configuration files instead. KUBELET_EXTRA_ARGS should be sourced from this file. | ||
EnvironmentFile=-/etc/default/kubelet | ||
ExecStart= | ||
ExecStart=/usr/bin/kubelet $KUBELET_KUBECONFIG_ARGS $KUBELET_CONFIG_ARGS $KUBELET_KUBEADM_ARGS $KUBELET_EXTRA_ARGS |
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
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
Oops, something went wrong.