Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
Signed-off-by: Federico Di Pierro <[email protected]>
  • Loading branch information
FedeDP committed Jun 20, 2024
1 parent cab513d commit 9372a6b
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,18 @@ jobs:
wget https://github.com/yannh/kubeconform/releases/download/v0.6.6/kubeconform-linux-amd64.tar.gz
tar -xvf kubeconform-linux-amd64.tar.gz
chmod +x kubeconform
# Since we use eg: 1.21, but kubeconform wants full semver (ie: 1.21.0),
# load the version and append a ".0"
- name: Load k8s version
id: version
run: |
VERSION=$(cat config/clusters/eks_variables.tf | grep "eks_cluster_version" -A 1 | tail -n1 | awk '{print $3}')
[[ "$VERSION" =~ ^[0-9]+\.[0-9]+ ]] && FULL_VERSION="${BASH_REMATCH[0]}.0"
echo "k8s_version=$FULL_VERSION" >> $GITHUB_OUTPUT

- name: yaml config validation 🔍
run: ./kubeconform --ignore-missing-schemas config/prow
run: ./kubeconform -ignore-filename-pattern ".json" -kubernetes-version ${{ steps.version.outputs.k8s_version }} -ignore-missing-schemas /home/federico/Work/test-infra/config/prow/

scan-terraform:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 9372a6b

Please sign in to comment.