Skip to content

Commit

Permalink
chore(vector): Specify the kube version when templating in CI (#373)
Browse files Browse the repository at this point in the history
chore(vector): Specify the kube version when templating in CI

This allows the template to render the correct manifest for the
kubernetes version under test.

Signed-off-by: Jesse Szwedko <[email protected]>
  • Loading branch information
jszwedko authored Feb 16, 2024
1 parent aef30be commit afdcb83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/kubeval.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ tar -xf /tmp/kubeval.tar.gz kubeval
# validate charts
for CHART_DIR in ${CHART_DIRS}; do
echo "Running kubeval for folder: '$CHART_DIR'"
helm dep up "${CHART_DIR}" && helm template --values "${CHART_DIR}"/ci/kubeval.yaml "${CHART_DIR}" | ./kubeval --strict --ignore-missing-schemas --kubernetes-version "${KUBERNETES_VERSION#v}" --schema-location "${SCHEMA_LOCATION}"
helm dep up "${CHART_DIR}" && helm template --kube-version "${KUBERNETES_VERSION#v}" --values "${CHART_DIR}"/ci/kubeval.yaml "${CHART_DIR}" | ./kubeval --strict --ignore-missing-schemas --kubernetes-version "${KUBERNETES_VERSION#v}" --schema-location "${SCHEMA_LOCATION}"
done

0 comments on commit afdcb83

Please sign in to comment.