-
Notifications
You must be signed in to change notification settings - Fork 601
Kata: Release v3.2.0.azl0 for both vanilla and CC based on aligned sources #6942
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
Show all changes
5 commits
Select commit
Hold shift + click to select a range
9130f64
kata-containers: adapt for msft-main sources
sprt b939771
kata-containers-cc: generate configuration-clh-snp-debug.toml
sprt 54e36c1
kata-containers-cc: set DEFSNPGUEST=true make flag
sprt 03fa2d0
specs: upgrade both packages to v3.2.0azl0
sprt 18defa9
kata-containers: quick spec fixes
sprt 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,7 @@ | ||
| { | ||
| "Signatures": { | ||
| "mariner-coco-build-uvm.sh": "4f2be6965d8c4d7919fd201a68160fc8ab02a1be50a336abbfea13f16a6ffb89", | ||
| "kata-containers-cc-0.6.3-cargo.tar.gz": "7ff6c5f7f7aa31a99ea5d837876291d886b16c32f21b6d65d044fd398abff1e6", | ||
| "kata-containers-cc-0.6.3.tar.gz": "1f366ce70bf83a239a7ec99334506adb28c3199157b4370840c3685378a34268" | ||
| "kata-containers-cc-3.2.0.azl0-cargo.tar.gz": "7ff6c5f7f7aa31a99ea5d837876291d886b16c32f21b6d65d044fd398abff1e6", | ||
| "kata-containers-cc-3.2.0.azl0.tar.gz": "78f3749c848c77f0d54aa16a4f29209a07f3d4af30664c0d9212300ac364aaec" | ||
| } | ||
| } |
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,6 +1,6 @@ | ||
| %global runtime_make_vars DEFMEMSZ=256 \\\ | ||
| DEFSHAREDFS_CLH_SNP_VIRTIOFS=none \\\ | ||
| DEFSTATICSANDBOXWORKLOADMEM=1792 \\\ | ||
| DEFSNPGUEST=true \\\ | ||
| SKIP_GO_VERSION_CHECK=1 | ||
|
|
||
| %global agent_make_vars LIBC=gnu \\\ | ||
|
|
@@ -9,16 +9,15 @@ | |
| %global debug_package %{nil} | ||
|
|
||
| Name: kata-containers-cc | ||
| Version: 0.6.3 | ||
| Release: 4%{?dist} | ||
| Version: 3.2.0.azl0 | ||
| Release: 1%{?dist} | ||
| Summary: Kata Confidential Containers package developed for Confidential Containers on AKS | ||
| License: ASL 2.0 | ||
| Vendor: Microsoft Corporation | ||
| URL: https://github.com/microsoft/kata-containers | ||
| Source0: https://github.com/microsoft/kata-containers/archive/refs/tags/cc-%{version}.tar.gz#/%{name}-%{version}.tar.gz | ||
| Source1: https://github.com/microsoft/kata-containers/archive/refs/tags/%{name}-%{version}.tar.gz | ||
| Source2: %{name}-%{version}-cargo.tar.gz | ||
| Source3: mariner-coco-build-uvm.sh | ||
| Source0: https://github.com/microsoft/kata-containers/archive/refs/tags/%{version}.tar.gz#/%{name}-%{version}.tar.gz | ||
| Source1: %{name}-%{version}-cargo.tar.gz | ||
| Source2: mariner-coco-build-uvm.sh | ||
|
|
||
| ExclusiveArch: x86_64 | ||
|
|
||
|
|
@@ -70,7 +69,7 @@ This package contains the the tooling and files required to build the UVM | |
| %prep | ||
| %autosetup -p1 -n %{name}-%{version} | ||
| pushd %{_builddir}/%{name}-%{version} | ||
| tar -xf %{SOURCE2} | ||
| tar -xf %{SOURCE1} | ||
| popd | ||
|
|
||
| %build | ||
|
|
@@ -138,7 +137,7 @@ pushd %{_builddir}/%{name}-%{version} | |
| rm tools/osbuilder/.gitignore | ||
| rm tools/osbuilder/rootfs-builder/.gitignore | ||
|
|
||
| install -D -m 0755 %{SOURCE3} %{buildroot}%{osbuilder}/mariner-coco-build-uvm.sh | ||
| install -D -m 0755 %{SOURCE2} %{buildroot}%{osbuilder}/mariner-coco-build-uvm.sh | ||
| install -D -m 0644 VERSION %{buildroot}%{osbuilder}/VERSION | ||
| install -D -m 0644 ci/install_yq.sh %{buildroot}%{osbuilder}/ci/install_yq.sh | ||
| install -D -m 0644 versions.yaml %{buildroot}%{osbuilder}/versions.yaml | ||
|
|
@@ -185,14 +184,27 @@ install -D -m 0755 kata-monitor %{buildroot}%{coco_bin}/kata-monitor | |
| install -D -m 0755 kata-runtime %{buildroot}%{coco_bin}/kata-runtime | ||
| install -D -m 0755 data/kata-collect-data.sh %{buildroot}%{coco_bin}/kata-collect-data.sh | ||
|
|
||
| # Note: we deploy two configurations - the additional one is for policy/snapshotter testing w/o SEV SNP or IGVM | ||
| install -D -m 0644 config/configuration-clh.toml %{buildroot}/%{defaults_kata}/configuration-clh.toml | ||
| # We deploy 3 configurations: | ||
| # configuration-clh-snp: production Kata-CC - IGVM & image, confidential_guest=true, sev_snp_guest=true | ||
| # configuration-clh-snp-debug: debug Kata-CC - kernel & image, confidential_guest=true, sev_snp_guest=false | ||
| # configuration-clh (symlinked to by configuration.toml): vanilla Kata - kernel & initrd, confidential_guest=false, sev_snp_guest=false | ||
sprt marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| install -D -m 0644 config/configuration-clh-snp.toml %{buildroot}/%{defaults_kata}/configuration-clh-snp.toml | ||
| install -D -m 0644 config/configuration-clh.toml %{buildroot}/%{defaults_kata}/configuration-clh-snp-debug.toml | ||
| install -D -m 0644 config/configuration-clh.toml %{buildroot}/%{defaults_kata}/configuration-clh.toml | ||
|
|
||
| # adapt upstream config files | ||
| # change paths with locations specific to our distribution | ||
| sed -i 's|/usr|/opt/confidential-containers|g' %{buildroot}/%{defaults_kata}/configuration-clh.toml | ||
| sed -i 's|/usr|/opt/confidential-containers|g' %{buildroot}/%{defaults_kata}/configuration-clh-snp.toml | ||
| # Adapt configuration files: | ||
| # - Change paths with locations specific to our distribution. | ||
| sed --follow-symlinks -i 's|/usr|/opt/confidential-containers|g' %{buildroot}/%{defaults_kata}/configuration-clh*.toml | ||
sprt marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| # - Set up configuration-clh-snp-debug. Note that kernel and image are already | ||
| # set through configuration-clh.toml.in. | ||
| sed -i 's|-igvm.img|-igvm-debug.img|g' %{buildroot}/%{defaults_kata}/configuration-clh-snp-debug.toml | ||
| sed -i '/^#confidential_guest =/s|^#||g' %{buildroot}/%{defaults_kata}/configuration-clh-snp-debug.toml | ||
| sed -i '/^#enable_debug =/s|^#||g' %{buildroot}/%{defaults_kata}/configuration-clh-snp-debug.toml | ||
| sed -i '/^#debug_console_enabled =/s|^#||g' %{buildroot}/%{defaults_kata}/configuration-clh-snp-debug.toml | ||
| sed -i 's|shared_fs = "virtio-fs"|shared_fs = "none"|g' %{buildroot}/%{defaults_kata}/configuration-clh-snp-debug.toml | ||
| # - Set up configuration-clh. | ||
| sed -i '/^#initrd =/s|^#||g' %{buildroot}/%{defaults_kata}/configuration-clh.toml | ||
| sed -i '/^image =/s|^|#|g' %{buildroot}/%{defaults_kata}/configuration-clh.toml | ||
sprt marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| popd | ||
|
|
||
| # tardev-snapshotter | ||
|
|
@@ -275,8 +287,11 @@ install -D -m 0755 %{_builddir}/%{name}-%{version}/tools/osbuilder/image-builder | |
| %exclude %{osbuilder}/tools/osbuilder/rootfs-builder/ubuntu | ||
|
|
||
| %changelog | ||
| * Fri Feb 02 2024 CBL-Mariner Servicing Account <[email protected]> - 0.6.3-4 | ||
| - Bump release to rebuild with go 1.21.6 | ||
| * Mon Feb 12 2024 Aurelien Bombo <[email protected]> - 3.2.0.azl0-1 | ||
| - Use Microsoft sources based on upstream Kata version 3.2.0. | ||
|
|
||
| * Fri Feb 02 2024 CBL-Mariner Servicing Account <[email protected]> - 0.6.3-4 | ||
| - Bump release to rebuild with go 1.21.6 | ||
|
|
||
| * Tue Jan 30 2024 Archana Choudhary <[email protected]> - 0.6.3-3 | ||
| - Remove kernel-uvm-cvm(-devel) dependency | ||
|
|
||
25 changes: 0 additions & 25 deletions
25
SPECS/kata-containers/0001-Append-systemd-kernel-cmdline-params-for-initrd.patch
This file was deleted.
Oops, something went wrong.
28 changes: 0 additions & 28 deletions
28
SPECS/kata-containers/0001-Merged-PR-9607-Allow-10-seconds-for-VM-creation-star.patch
This file was deleted.
Oops, something went wrong.
122 changes: 0 additions & 122 deletions
122
SPECS/kata-containers/0001-osbuilder-Add-support-for-CBL-Mariner.patch
This file was deleted.
Oops, something went wrong.
29 changes: 0 additions & 29 deletions
29
SPECS/kata-containers/0002-Merged-PR-9671-Wait-for-a-possibly-slow-Guest.patch
This file was deleted.
Oops, something went wrong.
27 changes: 0 additions & 27 deletions
27
SPECS/kata-containers/0003-Merged-PR-9805-Add-support-for-MSHV.patch
This file was deleted.
Oops, something went wrong.
28 changes: 0 additions & 28 deletions
28
SPECS/kata-containers/0004-Merged-PR-9806-Fix-enable_debug-for-hypervisor.clh.patch
This file was deleted.
Oops, something went wrong.
28 changes: 0 additions & 28 deletions
28
SPECS/kata-containers/0005-Merged-PR-9956-shim-avoid-memory-hotplug-timeout.patch
This file was deleted.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.