This repository has been archived by the owner on Oct 30, 2024. It is now read-only.
Update module github.com/aws/amazon-vpc-cni-k8s to v1.18.2 #2788
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# DO NOT EDIT. Generated with: | |
# | |
# devctl | |
# | |
# https://github.com/giantswarm/devctl/blob/7a2bb1c2403407b720ec16e047f804471a57209e/pkg/gen/input/workflows/internal/file/check_values_schema.yaml.template | |
# | |
name: 'Values and schema' | |
on: | |
pull_request: | |
branches: | |
- master | |
- main | |
paths: | |
- 'helm/**/values.yaml' # default helm chart values | |
- 'helm/**/values.schema.json' # schema | |
- 'helm/**/ci/ci-values.yaml' # overrides for CI (can contain required entries) | |
push: {} | |
jobs: | |
check: | |
name: 'validate values.yaml against values.schema.json' | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # v4.1.3 | |
with: | |
fetch-depth: 0 | |
- name: Install validator | |
run: | | |
wget -q -O ${HOME}/yajsv https://github.com/neilpa/yajsv/releases/download/v1.4.1/yajsv.linux.amd64 | |
chmod +x ${HOME}/yajsv | |
- name: 'Check if values.yaml is a valid instance of values.schema.json' | |
run: | | |
for chart_yaml in helm/*/Chart.yaml; do | |
helm_dir="${chart_yaml%/Chart.yaml}" | |
if [ ! -f ${helm_dir}/values.schema.json ]; then | |
echo "Skipping validation for '${helm_dir}' folder, because 'values.schema.json' does not exist..." | |
continue | |
fi | |
values=${helm_dir}/values.yaml | |
if [ -f ${helm_dir}/ci/ci-values.yaml ]; then | |
# merge ci-values.yaml into values.yaml (providing required values) | |
echo -e "\nMerged values:\n==============" | |
yq '. *= load("'${helm_dir}'/ci/ci-values.yaml")' ${helm_dir}/values.yaml | tee ${helm_dir}/combined-values.yaml | |
echo -e "\n==============\n" | |
values=${helm_dir}/combined-values.yaml | |
fi | |
${HOME}/yajsv -s ${helm_dir}/values.schema.json ${values} | |
done |