Skip to content

Commit

Permalink
Try kubeconform instead of kubeval
Browse files Browse the repository at this point in the history
  • Loading branch information
jsoref committed Apr 22, 2024
1 parent 07d9095 commit 983053f
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 12 deletions.
4 changes: 4 additions & 0 deletions .github/actions/spelling-data/patterns.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@
# version suffix <word>v#
(?:(?<=[A-Z]{2})V|(?<=[a-z]{2}|[A-Z]{2})v)\d+(?:\b|(?=[a-zA-Z_]))

# hit-count: 1 file-count: 1
# go install
go install(?:\s+[a-z]+\.[-@\w/.]+)+

# Questionably acceptable forms of `in to`
# Personally, I prefer `log into`, but people object
# https://www.tprteaching.com/log-into-log-in-to-login/
Expand Down
4 changes: 0 additions & 4 deletions .github/kubeval.sh

This file was deleted.

4 changes: 4 additions & 0 deletions .github/validate-kube.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh -e
for f in charts/*; do
helm template "$f" | kubeconform --strict

Check failure

Code scanning / check-spelling

Unrecognized Spelling Error

kubeconform is not a recognized word. (unrecognized-spelling)
done
16 changes: 8 additions & 8 deletions .github/workflows/helm-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ jobs:
with:
command: lint

- name: Download kubeval
- name: Download kubeconform

Check failure

Code scanning / check-spelling

Unrecognized Spelling Error

kubeconform is not a recognized word. (unrecognized-spelling)
run: |
mkdir bin
cd bin
curl -L https://github.com/instrumenta/kubeval/releases/latest/download/kubeval-linux-amd64.tar.gz |
tar zx
pwd >> "$GITHUB_PATH"
go install github.com/yannh/kubeconform/cmd/kubeconform@latest
echo $(go env GOPATH)/bin >> "$GITHUB_PATH"

Check failure

Code scanning / check-spelling

Unrecognized Spelling Error

GOPATH is not a recognized word. (unrecognized-spelling)
- name: Run kubeval
- name: debug
run: echo "$PATH" | tr ':' "\n"

- name: Validate kubernetes objects
run: |
./.github/kubeval.sh
./.github/validate-kube.sh

0 comments on commit 983053f

Please sign in to comment.