Initial Commit

This commit is contained in:
2026-03-03 11:42:38 +01:00
commit 41ce3ad954
5 changed files with 128 additions and 0 deletions

13
.SRCINFO Normal file
View File

@@ -0,0 +1,13 @@
pkgbase = kyverno-cli-bin
pkgdesc = Kubernetes Native Policy Management - CLI
pkgver = 1.17.1
pkgrel = 1
url = https://github.com/kyverno/kyverno
arch = x86_64
license = Apache-2.0
provides = kyverno-git
conflicts = kyverno-git
source = kyverno-cli_v1.17.1_linux_x86_64.tar.gz::https://github.com/kyverno/kyverno/releases/download/v1.17.1/kyverno-cli_v1.17.1_linux_x86_64.tar.gz
sha256sums = d0c0f52e8fc8d66a3663b63942b131e5f91b63f7644b3e446546f79142d1b7a3
pkgname = kyverno-cli-bin

12
.editorconfig Normal file
View File

@@ -0,0 +1,12 @@
# EditorConfig is awesome: https://EditorConfig.org
# top-most EditorConfig file
root = true
[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = false

3
.gitignore vendored Normal file
View File

@@ -0,0 +1,3 @@
pkg
src
*tar*

42
PKGBUILD Normal file
View File

@@ -0,0 +1,42 @@
# Maintainer: Markus Pesch <markus.pesch@cryptic.systems>
pkgname=kyverno-cli-bin
_pkgname=kyverno-cli
pkgver=1.17.1
pkgrel=1
pkgdesc="Kubernetes Native Policy Management - CLI"
arch=('aarch64' 'x86_64')
url="https://github.com/kyverno/kyverno"
license=("Apache-2.0")
conflicts=(kyverno-git)
provides=(kyverno-git)
source_x86_64=(
"https://github.com/kyverno/kyverno/releases/download/v${pkgver}/${_pkgname}_v${pkgver}_linux_x86_64.tar.gz"
)
source_aarch64=(
"https://github.com/kyverno/kyverno/releases/download/v${pkgver}/${_pkgname}_v${pkgver}_linux_arm64.tar.gz"
)
sha256sums_x86_64=('d0c0f52e8fc8d66a3663b63942b131e5f91b63f7644b3e446546f79142d1b7a3')
sha256sums_aarch64=('6f6a66711ba8fc2bd54a28aa1755a62605d053a6a3a758186201ba1f56698ced')
build() {
$srcdir/kyverno completion bash > kyverno.bash
$srcdir/kyverno completion fish > kyverno.fish
$srcdir/kyverno completion zsh > kyverno.zsh
}
package() {
# binary
install -D --mode 0755 "kyverno" "$pkgdir/usr/bin/kyverno"
# completions
install -D --mode 0644 "kyverno.bash" "$pkgdir/usr/share/bash-completion/completions/kyverno"
install -D --mode 0644 "kyverno.fish" "$pkgdir/usr/share/fish/vendor_completions.d/kyverno.fish"
install -D --mode 0644 "kyverno.zsh" "$pkgdir/usr/share/zsh/site-functions/_kyverno"
# license
install -D --mode 0755 "LICENSE" "$pkgdir/usr/share/licenses/kyverno/LICENSE"
}

58
README.md Normal file
View File

@@ -0,0 +1,58 @@
# kyverno-cli-bin
This repository contains build files to build the Arch Linux package `kyverno-cli-bin`. Instead of building the
package yourself, it can also be obtained from the following private repository. More detailed are described
[here](#obtaining-pre-built-packages-from-a-repository).
## Build
Clone this repository and use `makepkg` to build the package by yourself. For example:
```bash
git clone https://aur.archlinux.org/kyverno-cli-bin.git
cd kyverno-cli-bin
makepkg
```
## Yay
The build files are also available via AUR and can be installed via an AUR helper like `yay`.
```bash
yay --sync --aur kyverno-cli-bin
```
## Obtaining pre-built packages from a repository
Instead of building the packages locally, it is also possible to configure an additional repository to install the
package directly via `pacman`. The following commands are used to create the repository, configure the GPG key to verify
the packages and install the package:
```bash
# Create drop-in directory
sudo mkdir --parents /etc/pacman.d/repos
# Create configuration of the repository 'volker.raschek'
sudo tee /etc/pacman.d/repos/volker.raschek.conf > /dev/null <<'EOF'
[volker.raschek]
SigLevel = PackageRequired TrustedOnly
Include = /etc/pacman.d/repos/volker.raschek.list
EOF
# Create mirror list of the repository 'volker.raschek'
sudo tee /etc/pacman.d/repos/volker.raschek.list > /dev/null <<'EOF'
Server = https://aur.cryptic.systems/$repo/$arch
EOF
# Import gpg key of the repository 'volker.raschek'
sudo pacman-key --keyserver hkps://keys.openpgp.org --recv-keys 9B146D11A9ED6CA7E279EB1A852BCC170D81A982
# Extend existing pacman configuration of the repository 'volker.raschek'
sudo echo "Include = /etc/pacman.d/repos/*.conf" >> /etc/pacman.conf
# Update pacman cache
sudo pacman --sync --refresh
# Install the package and receive updates directly via pacman :)
sudo pacman --sync kyverno-cli-bin
```