summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorPeter Soos <69847110+bpsoos@users.noreply.github.com>2024-06-27 21:11:26 +0200
committerGitHub <noreply@github.com>2024-06-27 15:11:26 -0400
commit89f3bd1c75ed1f7e5e5525619e2c6ed51b988f7c (patch)
tree2ce27121291a510665d6f9f067f7bc8964a044a4 /scripts
parentc9ed948f17348fd6ef384294ece609213f185747 (diff)
:test_tube: adds manifest tests (#761)
Signed-off-by: bpsoos <soos.peter.96@gmail.com>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/test_manifests.sh18
1 files changed, 18 insertions, 0 deletions
diff --git a/scripts/test_manifests.sh b/scripts/test_manifests.sh
new file mode 100755
index 0000000..fab541c
--- /dev/null
+++ b/scripts/test_manifests.sh
@@ -0,0 +1,18 @@
+#! /bin/bash
+
+
+kubeconform -v >/dev/null 2>&1
+if [ $? -ne 0 ]; then
+ echo "Error: 'kubeconform' is not installed."
+ exit 1
+fi
+
+
+kubeconform \
+ -schema-location default \
+ -schema-location 'https://raw.githubusercontent.com/datreeio/CRDs-catalog/main/kustomize.toolkit.fluxcd.io/{{.ResourceKind}}_{{.ResourceAPIVersion}}.json' \
+ -strict \
+ -verbose \
+ -summary \
+ ${MANIFESTS_DIRECTORY:-"manifests"}
+