summaryrefslogtreecommitdiff
path: root/scripts/test_manifests.sh
blob: fab541c593dc51c5f3b656495666599786c5db6b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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"}