Skip to content

Commit

Permalink
Fixing kubeconform schema locations
Browse files Browse the repository at this point in the history
  • Loading branch information
swade1987 authored Oct 15, 2024
1 parent b032b0a commit aee3e0c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/install-dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -89,12 +89,12 @@ mv shellcheck-${SHELLCHECK}/shellcheck /usr/local/bin/shellcheck && rm -rf shell
shellcheck --version

printf "\nFetching kubeval kubernetes json schemas for v1.%s.0\n" "$(kubectl version --client=true -o=json | jq -r '.clientVersion.minor' | tr -d '+')"
mkdir -p /tmp/kubeval/schemas
mkdir -p /tmp/kubernetes-schemas/v1."$(kubectl version --client=true -o=json | jq -r '.clientVersion.minor' | tr -d '+')".0-standalone-strict
git clone https://github.com/swade1987/kubernetes-json-schema.git
# shellcheck disable=SC2046
cp -R kubernetes-json-schema/v1.$(kubectl version --client=true -o=json | jq -r '.clientVersion.minor' | tr -d '+').0-standalone-strict/* /tmp/kubeval/schemas
cp -R kubernetes-json-schema/v1.$(kubectl version --client=true -o=json | jq -r '.clientVersion.minor' | tr -d '+').0-standalone-strict/* /tmp/kubernetes-schemas/v1.$(kubectl version --client=true -o=json | jq -r '.clientVersion.minor' | tr -d '+').0-standalone-strict
rm -rf kubernetes-json-schema

printf "\nFetching flux json schemas for v%s\n" "${FLUX}"
mkdir -p /tmp/flux/schemas
curl -sL https://github.com/fluxcd/flux2/releases/download/v${FLUX}/crd-schemas.tar.gz | tar zxf - -C /tmp/flux/schemas
mkdir -p /tmp/flux-schemas/master-standalone-strict
curl -sL https://github.com/fluxcd/flux2/releases/download/v${FLUX}/crd-schemas.tar.gz | tar zxf - -C /tmp/flux-schemas/master-standalone-strict

0 comments on commit aee3e0c

Please sign in to comment.