summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorml2021-06-15 08:18:28 +0200
committerml2021-06-15 08:18:28 +0200
commit274cde47944f9b1fb546b05064d37a1a23ebae37 (patch)
tree76f502993cd06d2809e98ee1486df5752c1a2513
parent98b70caa809fad12e41798402097e4215929a94d (diff)
downloadaur-274cde47944f9b1fb546b05064d37a1a23ebae37.tar.gz
fix modules, add registry aliases
-rw-r--r--.SRCINFO8
-rw-r--r--PKGBUILD11
-rw-r--r--iptables.conf2
-rw-r--r--modules-load.conf2
-rw-r--r--registry-aliases.conf4
5 files changed, 18 insertions, 9 deletions
diff --git a/.SRCINFO b/.SRCINFO
index caf6416d2cb..12ea41efae2 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = kind
pkgdesc = Kubernetes IN Docker - local clusters for testing Kubernetes
pkgver = 0.11.1
- pkgrel = 2
+ pkgrel = 3
url = https://kind.sigs.k8s.io/
install = kind.install
arch = x86_64
@@ -17,8 +17,10 @@ pkgbase = kind
optdepends = podman: container engine
optdepends = kubectl: for managing Kubernetes clusters
source = https://github.com/kubernetes-sigs/kind/archive/v0.11.1/kind-0.11.1.tar.gz
- source = iptables.conf
+ source = modules-load.conf
+ source = registry-aliases.conf
sha256sums = 95ce0e7b01c00be149e5bd777936cef3f79ba7f1f3e5872e7ed60595858a2491
- sha256sums = fac7413afb24af54abd8cbe5e1424723ea6bccf0c26205670b7f3f4fe0f98f0d
+ sha256sums = 87bc2d0263e7393c66d540375efa9b68f2e3fdd72d5b12688587e0c3d6b99d88
+ sha256sums = 0a1fb437511953ca2416aeebe954fb68189dfb493ce41f99d021eb4f142ffb2e
pkgname = kind
diff --git a/PKGBUILD b/PKGBUILD
index 16365989cc8..8a8165e84dd 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
# Maintainer: ml <>
pkgname=kind
pkgver=0.11.1
-pkgrel=2
+pkgrel=3
pkgdesc='Kubernetes IN Docker - local clusters for testing Kubernetes'
arch=('x86_64' 'aarch64' 'arm' 'armv6h' 'armv7h')
url='https://kind.sigs.k8s.io/'
@@ -16,9 +16,11 @@ optdepends=(
)
install=kind.install
source=("https://github.com/kubernetes-sigs/kind/archive/v$pkgver/$pkgname-$pkgver.tar.gz"
- iptables.conf)
+ modules-load.conf
+ registry-aliases.conf)
sha256sums=('95ce0e7b01c00be149e5bd777936cef3f79ba7f1f3e5872e7ed60595858a2491'
- 'fac7413afb24af54abd8cbe5e1424723ea6bccf0c26205670b7f3f4fe0f98f0d')
+ '87bc2d0263e7393c66d540375efa9b68f2e3fdd72d5b12688587e0c3d6b99d88'
+ '0a1fb437511953ca2416aeebe954fb68189dfb493ce41f99d021eb4f142ffb2e')
build() {
local _commit
@@ -39,7 +41,8 @@ build() {
}
package() {
- install -Dm755 iptables.conf -t "$pkgdir/etc/modules-load.d"
+ install -Dm755 modules-load.conf -t "$pkgdir/etc/modules-load.d"
+ install -Dm755 registry-aliases.conf -t "$pkgdir/etc/containers/registries.conf.d/kind.conf"
cd "$pkgname-$pkgver"
install -Dm755 "$pkgname" -t "$pkgdir/usr/bin"
diff --git a/iptables.conf b/iptables.conf
deleted file mode 100644
index f4ae9f74ec7..00000000000
--- a/iptables.conf
+++ /dev/null
@@ -1,2 +0,0 @@
-iptables_nat
-ip6tables_nat
diff --git a/modules-load.conf b/modules-load.conf
new file mode 100644
index 00000000000..d08dc68916b
--- /dev/null
+++ b/modules-load.conf
@@ -0,0 +1,2 @@
+iptable_nat
+ip6table_nat
diff --git a/registry-aliases.conf b/registry-aliases.conf
new file mode 100644
index 00000000000..b4d7973632f
--- /dev/null
+++ b/registry-aliases.conf
@@ -0,0 +1,4 @@
+[aliases]
+"kindest/node" = "docker.io/kindest/node"
+"kindest/kindnetd" = "docker.io/kindest/kindnetd"
+