Skip to content

Commit

Permalink
update: validate_manifests
Browse files Browse the repository at this point in the history
  • Loading branch information
codekow committed Oct 13, 2023
1 parent 113b8a6 commit 544e4d1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions scripts/validate_manifests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Where:
-sl | --schema-location Location containing schemas"
}

which kustomize && KUSTOMIZE="kustomize build"
which kustomize && KUSTOMIZE_CMD="kustomize build"

KUSTOMIZE_CMD="${KUSTOMIZE_CMD:-oc kustomize}"
IGNORE_MISSING_SCHEMAS="--ignore-missing-schemas"
Expand Down Expand Up @@ -60,7 +60,6 @@ process_kustomization(){

# echo "$KUSTOMIZE_BUILD_OUTPUT" | kubeval ${IGNORE_MISSING_SCHEMAS} --schema-location="file://${SCHEMA_LOCATION}" --force-color
KUSTOMIZE_BUILD_OUTPUT=$(${KUSTOMIZE_CMD} "${BUILD}")

build_response=$?

if [ $build_response -ne 0 ]; then
Expand Down

0 comments on commit 544e4d1

Please sign in to comment.