summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Hubbs <williamh@gentoo.org>2022-06-23 12:22:59 -0500
committerWilliam Hubbs <williamh@gentoo.org>2022-06-23 12:24:05 -0500
commit6078d22d82277763e6118cd08556e6d20f07ed55 (patch)
tree3819b4dd14181000b9f9d2325a7b29ec161b3bcc /dev-util
parentapp-emacs/web-mode: new package; add version 17.2.1 (diff)
downloadgentoo-6078d22d82277763e6118cd08556e6d20f07ed55.tar.gz
gentoo-6078d22d82277763e6118cd08556e6d20f07ed55.tar.bz2
gentoo-6078d22d82277763e6118cd08556e6d20f07ed55.zip
dev-util/kubeval: new package, add 0.16.1
kubeval validates kubernetes YAML or JSON configuration files using schemas generated from the kubernetes OpenAPI specification. This means it can validate schemas for multiple versions of kubernetes. Signed-off-by: William Hubbs <williamh@gentoo.org>
Diffstat (limited to 'dev-util')
-rw-r--r--dev-util/kubeval/Manifest2
-rw-r--r--dev-util/kubeval/kubeval-0.16.1.ebuild30
-rw-r--r--dev-util/kubeval/metadata.xml8
3 files changed, 40 insertions, 0 deletions
diff --git a/dev-util/kubeval/Manifest b/dev-util/kubeval/Manifest
new file mode 100644
index 000000000000..4c6dddf5cdd2
--- /dev/null
+++ b/dev-util/kubeval/Manifest
@@ -0,0 +1,2 @@
+DIST kubeval-0.16.1-deps.tar.xz 103272544 BLAKE2B a34b9618d7543907b51469181f70b493353c480f9d671e5ef1442bb7975fadebd4d250a758504450548902914ab839dce986400ddf855a53f9ac25295c6cef2f SHA512 b96c11a8c1fa4f45611b332f1d8d8f88ee3e2a367f1adfe8cd568410a79f0df00380462e93d9ab59cf2cfafd29226cc83a78e13a842f2e4e3ecea4ae05bce05c
+DIST kubeval-0.16.1.tar.gz 50297 BLAKE2B 8b856e90f295e4394d17b53323cb278329ad6c40f711ffe5ce31dfe5d44cddb75a6ebd2f649992fac1631cd5739c4871802c03ca81ed94f23db4b25bff07685c SHA512 6ed4603d6a754c5d256c68a113c3f53745c118f605f215125cebf9d17e4fef505c4011330abec40ce89be6724f13f093a0ed6b5a1bbda3484dcc303a9208bbc8
diff --git a/dev-util/kubeval/kubeval-0.16.1.ebuild b/dev-util/kubeval/kubeval-0.16.1.ebuild
new file mode 100644
index 000000000000..4eac1a6a402c
--- /dev/null
+++ b/dev-util/kubeval/kubeval-0.16.1.ebuild
@@ -0,0 +1,30 @@
+# Copyright 2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+inherit go-module
+
+DESCRIPTION="validate kubernetes YAML or JSON configuration files"
+HOMEPAGE="https://kubeval.com"
+SRC_URI="https://github.com/instrumenta/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+SRC_URI+=" https://dev.gentoo.org/~williamh/dist/${P}-deps.tar.xz"
+
+LICENSE="Apache-2.0 BSD MIT MPL-2.0"
+SLOT="0"
+KEYWORDS="~amd64"
+
+# tests require the network
+RESTRICT="test"
+
+src_compile() {
+ emake TAG=v${PV} build
+}
+
+src_install() {
+ dobin bin/kubeval
+dodoc -r docs/*
+}
+
+src_test() {
+ emake TAG=v${PV} test
+}
diff --git a/dev-util/kubeval/metadata.xml b/dev-util/kubeval/metadata.xml
new file mode 100644
index 000000000000..db463f3eeb66
--- /dev/null
+++ b/dev-util/kubeval/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>williamh@gentoo.org</email>
+ <name>William Hubbs</name>
+ </maintainer>
+</pkgmetadata>