1
0
mirror of https://github.com/kata-containers/kata-containers.git synced 2025-05-12 02:15:28 +00:00
kata-containers/tools/packaging
Shunsuke Kimura e5d7414c33 kata-deploy: Return exit code for invalid argument
It hangs when invalid arguments are specified.

```bash
kata-deploy-6sr2p:/# /opt/kata-artifacts/scripts/kata-deploy.sh xxx
Action:
* xxx
...
Usage: /opt/kata-artifacts/scripts/kata-deploy.sh [install/cleanup/reset]
ERROR: invalid arguments
...
^C <- hang
```

I changed it to behave the same as when there are no arguments.

```bash
kata-deploy-6sr2p:/# /opt/kata-artifacts/scripts/kata-deploy.sh
Usage: /opt/kata-artifacts/scripts/kata-deploy.sh [install/cleanup/reset]
ERROR: invalid arguments
kata-deploy-6sr2p:/# echo $?
1
```

Fixes: 

Signed-off-by: Shunsuke Kimura <pbrehpuum@gmail.com>
2025-03-22 21:32:38 +09:00
..
guest-image osbuilder: ubuntu: Ensure OS_VERSION is passed & used 2025-01-27 14:19:42 +01:00
kata-debug packaging/tools: Add kata-debug 2023-07-21 14:05:30 +02:00
kata-deploy kata-deploy: Return exit code for invalid argument 2025-03-22 21:32:38 +09:00
kata-monitor kata-monitor: fix Dockerfile to build image 2023-12-26 15:11:13 +08:00
kernel kernel: Enable riscv kernel build 2025-03-13 13:43:29 +08:00
qemu gpu: Add no_patches.txt for TDX flavour 2025-02-19 14:59:04 +00:00
release shellcheck: Fix shellcheck SC2068 2025-03-04 09:35:46 +00:00
scripts shellcheck: Fix shellcheck SC2068 2025-03-04 09:35:46 +00:00
static-build shellcheck: Fix shellcheck SC2068 2025-03-04 09:35:46 +00:00
.gitignore packaging: Remove snap package 2023-06-12 09:24:09 +01:00
artifact-list.sh shellcheck: Fix shellcheck SC2068 2025-03-04 09:35:46 +00:00
Makefile packaging: Remove snap package 2023-06-12 09:24:09 +01:00
README.md packaging: Remove snap package 2023-06-12 09:24:09 +01:00

Kata Containers packaging

Introduction

Kata Containers currently supports packages for many distributions. Tooling to aid in creating these packages are contained within this repository.

Build in a container

Kata build artifacts are available within a container image, created by a Dockerfile. Reference DaemonSets are provided in kata-deploy, which make installation of Kata Containers in a running Kubernetes Cluster very straightforward.

Build static binaries

See the static build documentation.

Build Kata Containers Kernel

See the kernel documentation.

Build QEMU

See the QEMU documentation.

Create a Kata Containers release

See the release documentation.

Packaging scripts

See the scripts documentation.

Credits

Kata Containers packaging uses packagecloud for package hosting.