Skip to content

Commit

Permalink
Test kustomize build fix (#261)
Browse files Browse the repository at this point in the history
* ✨ rework OWNERS as mentioned in open-infrastructure-labs/ops-issues#16

Signed-off-by: Christoph Görn <[email protected]>

* ⬆️ backportet from thoth-application/ repo

Signed-off-by: Christoph Görn <[email protected]>

* ignore overrides/

Signed-off-by: Christoph Görn <[email protected]>
  • Loading branch information
goern authored Feb 17, 2021
1 parent 91a3a37 commit 5bdf33e
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions test-kustomize-build
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,23 @@ trap 'echo "Aborting due to errexit on line $LINENO. Exit code: $?" >&2' ERR
set -o errtrace
set -o pipefail

# Let's ignore the secrets...

export KUSTOMIZE_PLUGIN_HOME=/tmp/new_plugin_dir

mkdir -p $KUSTOMIZE_PLUGIN_HOME/viaduct.ai/v1/ksops/
echo '#!/bin/sh' >$KUSTOMIZE_PLUGIN_HOME/viaduct.ai/v1/ksops/ksops
chmod +x $KUSTOMIZE_PLUGIN_HOME/viaduct.ai/v1/ksops/ksops

# and check all the sub directories with manifests...
k=$(find . -name kustomization.yaml)

for d in $k; do
if [[ $(dirname $d) == *overrides* ]]; then
echo skipping $(dirname $d)
continue
fi

echo checking $(dirname $d)
kustomize build --enable_alpha_plugins $(dirname $d) 2>&1 >/dev/null
done
Expand Down

0 comments on commit 5bdf33e

Please sign in to comment.