Compare commits
10 Commits
da0d197b21
...
26bfd1cbda
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
26bfd1cbda | ||
|
|
f2280776cf | ||
|
|
97885d892d | ||
|
|
c5869fb845 | ||
|
|
c296abc3c5 | ||
|
|
f2256bb8f5 | ||
|
|
ee4f85074a | ||
|
|
e89a0af450 | ||
|
|
acf8a7c071 | ||
|
|
5c8cee2639 |
134
0001-Bump-kubeos-version-to-1.0.6.patch
Normal file
134
0001-Bump-kubeos-version-to-1.0.6.patch
Normal file
@ -0,0 +1,134 @@
|
|||||||
|
From dbabd83278e84e21a4e3493150add216012ba230 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Yuhang Wei <weiyuhang3@huawei.com>
|
||||||
|
Date: Mon, 17 Jun 2024 10:30:52 +0800
|
||||||
|
Subject: [PATCH 1/2] Bump kubeos version to 1.0.6
|
||||||
|
|
||||||
|
Signed-off-by: Yuhang Wei <weiyuhang3@huawei.com>
|
||||||
|
---
|
||||||
|
KubeOS-Rust/Cargo.lock | 8 ++++----
|
||||||
|
KubeOS-Rust/agent/Cargo.toml | 2 +-
|
||||||
|
KubeOS-Rust/cli/Cargo.toml | 2 +-
|
||||||
|
KubeOS-Rust/manager/Cargo.toml | 2 +-
|
||||||
|
KubeOS-Rust/proxy/Cargo.toml | 6 +++---
|
||||||
|
VERSION | 2 +-
|
||||||
|
6 files changed, 11 insertions(+), 11 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/KubeOS-Rust/Cargo.lock b/KubeOS-Rust/Cargo.lock
|
||||||
|
index 4e1619aa..93e3d07d 100644
|
||||||
|
--- a/KubeOS-Rust/Cargo.lock
|
||||||
|
+++ b/KubeOS-Rust/Cargo.lock
|
||||||
|
@@ -189,7 +189,7 @@ dependencies = [
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "cli"
|
||||||
|
-version = "1.0.5"
|
||||||
|
+version = "1.0.6"
|
||||||
|
dependencies = [
|
||||||
|
"anyhow",
|
||||||
|
"jsonrpc",
|
||||||
|
@@ -1226,7 +1226,7 @@ dependencies = [
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "manager"
|
||||||
|
-version = "1.0.5"
|
||||||
|
+version = "1.0.6"
|
||||||
|
dependencies = [
|
||||||
|
"anyhow",
|
||||||
|
"env_logger",
|
||||||
|
@@ -1438,7 +1438,7 @@ dependencies = [
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "os-agent"
|
||||||
|
-version = "1.0.5"
|
||||||
|
+version = "1.0.6"
|
||||||
|
dependencies = [
|
||||||
|
"anyhow",
|
||||||
|
"env_logger",
|
||||||
|
@@ -1601,7 +1601,7 @@ dependencies = [
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "proxy"
|
||||||
|
-version = "1.0.5"
|
||||||
|
+version = "1.0.6"
|
||||||
|
dependencies = [
|
||||||
|
"anyhow",
|
||||||
|
"assert-json-diff",
|
||||||
|
diff --git a/KubeOS-Rust/agent/Cargo.toml b/KubeOS-Rust/agent/Cargo.toml
|
||||||
|
index 739bbbc7..83e1b7c0 100644
|
||||||
|
--- a/KubeOS-Rust/agent/Cargo.toml
|
||||||
|
+++ b/KubeOS-Rust/agent/Cargo.toml
|
||||||
|
@@ -3,7 +3,7 @@ description = "KubeOS os-agent"
|
||||||
|
edition = "2021"
|
||||||
|
license = "MulanPSL-2.0"
|
||||||
|
name = "os-agent"
|
||||||
|
-version = "1.0.5"
|
||||||
|
+version = "1.0.6"
|
||||||
|
|
||||||
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||||
|
[dependencies]
|
||||||
|
diff --git a/KubeOS-Rust/cli/Cargo.toml b/KubeOS-Rust/cli/Cargo.toml
|
||||||
|
index c3c14c6f..78d5fd51 100644
|
||||||
|
--- a/KubeOS-Rust/cli/Cargo.toml
|
||||||
|
+++ b/KubeOS-Rust/cli/Cargo.toml
|
||||||
|
@@ -3,7 +3,7 @@ description = "KubeOS os-agent client"
|
||||||
|
edition = "2021"
|
||||||
|
license = "MulanPSL-2.0"
|
||||||
|
name = "cli"
|
||||||
|
-version = "1.0.5"
|
||||||
|
+version = "1.0.6"
|
||||||
|
|
||||||
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||||
|
[dependencies]
|
||||||
|
diff --git a/KubeOS-Rust/manager/Cargo.toml b/KubeOS-Rust/manager/Cargo.toml
|
||||||
|
index e694090c..f60a7c08 100644
|
||||||
|
--- a/KubeOS-Rust/manager/Cargo.toml
|
||||||
|
+++ b/KubeOS-Rust/manager/Cargo.toml
|
||||||
|
@@ -3,7 +3,7 @@ description = "KubeOS os-agent manager"
|
||||||
|
edition = "2021"
|
||||||
|
license = "MulanPSL-2.0"
|
||||||
|
name = "manager"
|
||||||
|
-version = "1.0.5"
|
||||||
|
+version = "1.0.6"
|
||||||
|
|
||||||
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||||
|
[dev-dependencies]
|
||||||
|
diff --git a/KubeOS-Rust/proxy/Cargo.toml b/KubeOS-Rust/proxy/Cargo.toml
|
||||||
|
index 3b5d96d1..d804ac77 100644
|
||||||
|
--- a/KubeOS-Rust/proxy/Cargo.toml
|
||||||
|
+++ b/KubeOS-Rust/proxy/Cargo.toml
|
||||||
|
@@ -3,7 +3,7 @@ description = "KubeOS os-proxy"
|
||||||
|
edition = "2021"
|
||||||
|
license = "MulanPSL-2.0"
|
||||||
|
name = "proxy"
|
||||||
|
-version = "1.0.5"
|
||||||
|
+version = "1.0.6"
|
||||||
|
|
||||||
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||||
|
[lib]
|
||||||
|
@@ -17,14 +17,14 @@ path = "src/main.rs"
|
||||||
|
[dependencies]
|
||||||
|
anyhow = "1.0.44"
|
||||||
|
async-trait = "0.1"
|
||||||
|
-cli = { version = "1.0.5", path = "../cli" }
|
||||||
|
+cli = { version = "1.0.6", path = "../cli" }
|
||||||
|
env_logger = "0.9.0"
|
||||||
|
futures = "0.3.17"
|
||||||
|
h2 = "=0.3.16"
|
||||||
|
k8s-openapi = { version = "0.13.1", features = ["v1_22"] }
|
||||||
|
kube = { version = "0.66.0", features = ["derive", "runtime"] }
|
||||||
|
log = "=0.4.15"
|
||||||
|
-manager = { version = "1.0.5", path = "../manager" }
|
||||||
|
+manager = { version = "1.0.6", path = "../manager" }
|
||||||
|
regex = "=1.7.3"
|
||||||
|
reqwest = { version = "=0.12.2", default-features = false, features = [
|
||||||
|
"json",
|
||||||
|
diff --git a/VERSION b/VERSION
|
||||||
|
index 90a27f9c..af0b7ddb 100644
|
||||||
|
--- a/VERSION
|
||||||
|
+++ b/VERSION
|
||||||
|
@@ -1 +1 @@
|
||||||
|
-1.0.5
|
||||||
|
+1.0.6
|
||||||
|
--
|
||||||
|
2.39.3 (Apple Git-146)
|
||||||
|
|
||||||
35
0002-fix-update-bootloader.sh-paths-for-EFI-boot.patch
Normal file
35
0002-fix-update-bootloader.sh-paths-for-EFI-boot.patch
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
From e77d86d37c9320547b98b5639dfa328f1b0542fb Mon Sep 17 00:00:00 2001
|
||||||
|
From: Yuhang Wei <weiyuhang3@huawei.com>
|
||||||
|
Date: Mon, 17 Jun 2024 10:34:37 +0800
|
||||||
|
Subject: [PATCH 2/2] fix: update bootloader.sh paths for EFI boot
|
||||||
|
|
||||||
|
Signed-off-by: Yuhang Wei <weiyuhang3@huawei.com>
|
||||||
|
---
|
||||||
|
scripts/bootloader.sh | 4 ++--
|
||||||
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/scripts/bootloader.sh b/scripts/bootloader.sh
|
||||||
|
index 75096a38..df4be329 100644
|
||||||
|
--- a/scripts/bootloader.sh
|
||||||
|
+++ b/scripts/bootloader.sh
|
||||||
|
@@ -19,7 +19,7 @@ function install_grub2_x86 ()
|
||||||
|
cp -r /usr/lib/grub/x86_64-efi boot/efi/EFI/openEuler
|
||||||
|
eval "grub2-mkimage -d /usr/lib/grub/x86_64-efi -O x86_64-efi --output=/boot/efi/EFI/openEuler/grubx64.efi '--prefix=(,gpt1)/EFI/openEuler' fat part_gpt part_msdos linux"
|
||||||
|
|
||||||
|
- mkdir -p /boot/EFI/BOOT/
|
||||||
|
+ mkdir -p /boot/efi/EFI/BOOT/
|
||||||
|
cp -f /boot/efi/EFI/openEuler/grubx64.efi /boot/efi/EFI/BOOT/BOOTX64.EFI
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
@@ -29,7 +29,7 @@ function install_grub2_efi ()
|
||||||
|
cp -r /usr/lib/grub/arm64-efi /boot/efi/EFI/openEuler/
|
||||||
|
eval "grub2-mkimage -d /usr/lib/grub/arm64-efi -O arm64-efi --output=/boot/efi/EFI/openEuler/grubaa64.efi '--prefix=(,gpt1)/EFI/openEuler' fat part_gpt part_msdos linux"
|
||||||
|
|
||||||
|
- mkdir -p /boot/EFI/BOOT/
|
||||||
|
+ mkdir -p /boot/efi/EFI/BOOT/
|
||||||
|
cp -f /boot/efi/EFI/openEuler/grubaa64.efi /boot/efi/EFI/BOOT/BOOTAA64.EFI
|
||||||
|
}
|
||||||
|
|
||||||
|
--
|
||||||
|
2.39.3 (Apple Git-146)
|
||||||
|
|
||||||
99
KubeOS.spec
99
KubeOS.spec
@ -1,14 +1,18 @@
|
|||||||
# Copyright (c) Huawei Technologies Co., Ltd. 2021. All rights reserved.
|
# Copyright (c) Huawei Technologies Co., Ltd. 2021. All rights reserved.
|
||||||
|
|
||||||
Name: KubeOS
|
Name: KubeOS
|
||||||
Version: 1.0.3
|
Version: 1.0.6
|
||||||
Release: 1
|
Release: 2
|
||||||
Summary: O&M platform used to update the whole OS as an entirety
|
Summary: O&M platform used to update the whole OS as an entirety
|
||||||
License: Mulan PSL v2
|
License: Mulan PSL v2
|
||||||
Source0: https://gitee.com/openeuler/KubeOS/repository/archive/v%{version}.tar.gz
|
Source0: https://gitee.com/openeuler/KubeOS/repository/archive/v%{version}.tar.gz
|
||||||
|
Patch1: 0001-Bump-kubeos-version-to-1.0.6.patch
|
||||||
|
Patch2: 0002-fix-update-bootloader.sh-paths-for-EFI-boot.patch
|
||||||
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
BuildRequires: make
|
BuildRequires: make rust cargo openssl-devel
|
||||||
BuildRequires: golang >= 1.13
|
BuildRequires: golang >= 1.13
|
||||||
|
|
||||||
%description
|
%description
|
||||||
This is an O&M platform used to update the whole OS as an entirety,
|
This is an O&M platform used to update the whole OS as an entirety,
|
||||||
it should be running in kubernetes environment.
|
it should be running in kubernetes environment.
|
||||||
@ -28,14 +32,24 @@ The scripts package includes scripts which could build the os image and binaries
|
|||||||
%{nil}
|
%{nil}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
mkdir ./KubeOS-Rust/.cargo
|
||||||
|
cat << EOF >> ./KubeOS-Rust/.cargo/config
|
||||||
|
|
||||||
|
[source.crates-io]
|
||||||
|
replace-with = "vendored-sources"
|
||||||
|
|
||||||
|
[source.vendored-sources]
|
||||||
|
directory = "vendor"
|
||||||
|
EOF
|
||||||
|
|
||||||
make
|
make
|
||||||
|
|
||||||
%install
|
%install
|
||||||
install -d %{buildroot}%{_bindir}
|
install -d %{buildroot}%{_bindir}
|
||||||
#install binary
|
#install binary
|
||||||
install -d -m 0740 %{buildroot}/opt/kubeOS/bin
|
install -d -m 0740 %{buildroot}/opt/kubeOS/bin
|
||||||
install -p -m 0500 ./bin/os-agent %{buildroot}/opt/kubeOS/bin
|
install -p -m 0500 ./bin/rust/release/os-agent %{buildroot}/opt/kubeOS/bin
|
||||||
install -p -m 0500 ./bin/proxy %{buildroot}/opt/kubeOS/bin
|
install -p -m 0500 ./bin/rust/release/proxy %{buildroot}/opt/kubeOS/bin
|
||||||
install -p -m 0500 ./bin/operator %{buildroot}/opt/kubeOS/bin
|
install -p -m 0500 ./bin/operator %{buildroot}/opt/kubeOS/bin
|
||||||
|
|
||||||
#install artifacts
|
#install artifacts
|
||||||
@ -70,8 +84,8 @@ install -p -m 0600 ./files/os-agent.service %{buildroot}/opt/kubeOS/files
|
|||||||
install -p -m 0600 ./files/os-release %{buildroot}/opt/kubeOS/files
|
install -p -m 0600 ./files/os-release %{buildroot}/opt/kubeOS/files
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%attr(0500,root,root) /opt/kubeOS/bin/os-agent
|
|
||||||
%defattr(-,root,root,0500)
|
%defattr(-,root,root,0500)
|
||||||
|
%attr(0500,root,root) /opt/kubeOS/bin/os-agent
|
||||||
%attr(0600,root,root) /opt/kubeOS/files/boot-efi.mount
|
%attr(0600,root,root) /opt/kubeOS/files/boot-efi.mount
|
||||||
%attr(0600,root,root) /opt/kubeOS/files/etc.mount
|
%attr(0600,root,root) /opt/kubeOS/files/etc.mount
|
||||||
%attr(0600,root,root) /opt/kubeOS/files/persist.mount
|
%attr(0600,root,root) /opt/kubeOS/files/persist.mount
|
||||||
@ -101,16 +115,75 @@ install -p -m 0600 ./files/os-release %{buildroot}/opt/kubeOS/files
|
|||||||
%attr(0500,root,root) /opt/kubeOS/scripts/00bootup/module-setup.sh
|
%attr(0500,root,root) /opt/kubeOS/scripts/00bootup/module-setup.sh
|
||||||
%attr(0500,root,root) /opt/kubeOS/scripts/00bootup/mount.sh
|
%attr(0500,root,root) /opt/kubeOS/scripts/00bootup/mount.sh
|
||||||
|
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
rm -rfv %{buildroot}
|
rm -rfv %{buildroot}
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Tue May 16 2023 liyuanrong<liyuanrong1@huawei.com> - 1.0.3-1
|
* Tue Jun 18 2024 Yuhang Wei<weiyuhang3@huawei.com> - 1.0.6-2
|
||||||
- Type:requirement
|
- Type:requirement
|
||||||
- CVE:NA
|
- CVE:NA
|
||||||
- SUG:restart
|
- SUG:restart
|
||||||
- DESC:update to 1.0.3-1
|
- DESC:modify version display and fix the path for EFI boot in bootloader.sh
|
||||||
|
|
||||||
|
* Mon Apr 01 2024 Yuhang Wei<weiyuhang3@huawei.com> - 1.0.6-1
|
||||||
|
- Type:requirement
|
||||||
|
- CVE:NA
|
||||||
|
- SUG:restart
|
||||||
|
- DESC:update version to 1.0.6-1
|
||||||
|
|
||||||
|
* Fri Feb 23 2024 Yuhang Wei<weiyuhang3@huawei.com> - 1.0.5-4
|
||||||
|
- Type:requirement
|
||||||
|
- CVE:NA
|
||||||
|
- SUG:restart
|
||||||
|
- DESC:fix code check
|
||||||
|
|
||||||
|
* Mon Feb 05 2024 Yuhang Wei<weiyuhang3@huawei.com> - 1.0.5-3
|
||||||
|
- Type:requirement
|
||||||
|
- CVE:NA
|
||||||
|
- SUG:restart
|
||||||
|
- DESC:bump tokio to 1.28.0
|
||||||
|
|
||||||
|
* Mon Jan 29 2024 Yuhang Wei<weiyuhang3@huawei.com> - 1.0.5-2
|
||||||
|
- Type:requirement
|
||||||
|
- CVE:NA
|
||||||
|
- SUG:restart
|
||||||
|
- DESC:sync code from source master branch
|
||||||
|
|
||||||
|
* Wed Jan 10 2024 Yuhang Wei<weiyuhang3@huawei.com> - 1.0.5-1
|
||||||
|
- Type:requirement
|
||||||
|
- CVE:NA
|
||||||
|
- SUG:restart
|
||||||
|
- DESC:update version to 1.0.5.1
|
||||||
|
|
||||||
|
* Tue Sep 05 2023 Yuhang Wei<weiyuhang3@huawei.com> - 1.0.4-4
|
||||||
|
- Type:requirement
|
||||||
|
- CVE:NA
|
||||||
|
- SUG:restart
|
||||||
|
- DESC:fix proxy requeue and update image label
|
||||||
|
|
||||||
|
* Thu Aug 24 2023 Yuhang Wei<weiyuhang3@huawei.com> - 1.0.4-3
|
||||||
|
- Type:requirement
|
||||||
|
- CVE:NA
|
||||||
|
- SUG:restart
|
||||||
|
- DESC:sync code from source master branch
|
||||||
|
|
||||||
|
* Mon Aug 07 2023 liyuanrong<liyuanrong1@huawei.com> - 1.0.4-2
|
||||||
|
- Type:requirement
|
||||||
|
- CVE:NA
|
||||||
|
- SUG:restart
|
||||||
|
- DESC:fix the hostshell cannot obtain the lib
|
||||||
|
|
||||||
|
* Wed Aug 02 2023 liyuanrong<liyuanrong1@huawei.com> - 1.0.4-1
|
||||||
|
- Type:requirement
|
||||||
|
- CVE:NA
|
||||||
|
- SUG:restart
|
||||||
|
- DESC:update version to 1.0.4.1
|
||||||
|
|
||||||
|
* Thu Dec 08 2022 liyuanrong<liyuanrong1@huawei.com> - 1.0.2-9
|
||||||
|
- Type:requirement
|
||||||
|
- CVE:NA
|
||||||
|
- SUG:restart
|
||||||
|
- DESC:sync code from source, support containerd upgrade,settings and admin-container
|
||||||
|
|
||||||
* Thu Dec 08 2022 liyuanrong<liyuanrong1@huawei.com> - 1.0.2-8
|
* Thu Dec 08 2022 liyuanrong<liyuanrong1@huawei.com> - 1.0.2-8
|
||||||
- Type:requirement
|
- Type:requirement
|
||||||
@ -160,12 +233,6 @@ rm -rfv %{buildroot}
|
|||||||
- SUG:restart
|
- SUG:restart
|
||||||
- DESC:update to 1.0.1-8
|
- DESC:update to 1.0.1-8
|
||||||
|
|
||||||
* Fri Dec 09 2022 liyuanrong<liyuanrong1@huawei.com> - 1.0.1-6
|
|
||||||
- Type:requirement
|
|
||||||
- CVE:NA
|
|
||||||
- SUG:restart
|
|
||||||
- DESC:add yaml
|
|
||||||
|
|
||||||
* Fri Dec 17 2021 liyuanrong<liyuanrong1@huawei.com> - 1.0.1-5
|
* Fri Dec 17 2021 liyuanrong<liyuanrong1@huawei.com> - 1.0.1-5
|
||||||
- Type:requirement
|
- Type:requirement
|
||||||
- CVE:NA
|
- CVE:NA
|
||||||
@ -184,7 +251,7 @@ rm -rfv %{buildroot}
|
|||||||
- SUG:restart
|
- SUG:restart
|
||||||
- DESC:fix bugs of checks in generate.sh and change module path
|
- DESC:fix bugs of checks in generate.sh and change module path
|
||||||
|
|
||||||
* Fri Oct 30 2021 liyuanrong<liyuanrong1@huawei.com> - 1.0.1-2
|
* Sat Oct 30 2021 liyuanrong<liyuanrong1@huawei.com> - 1.0.1-2
|
||||||
- Type:requirement
|
- Type:requirement
|
||||||
- CVE:NA
|
- CVE:NA
|
||||||
- SUG:restart
|
- SUG:restart
|
||||||
|
|||||||
BIN
v1.0.3.tar.gz
BIN
v1.0.3.tar.gz
Binary file not shown.
BIN
v1.0.6.tar.gz
Normal file
BIN
v1.0.6.tar.gz
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user