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 d52252f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 12 deletions.
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
13 changes: 5 additions & 8 deletions .github/workflows/helm-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,11 @@ 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

Check failure

Code scanning / check-spelling

Unrecognized Spelling Error

yannh is not a recognized word. (unrecognized-spelling)

Check warning

Code scanning / check-spelling

Candidate Pattern Warning

Line matches candidate pattern "go install(?:\\s+[a-z]+\.[-@\\w/.]+)+" (candidate-pattern)

Check failure

Code scanning / check-spelling

Unrecognized Spelling Error

kubeconform is not a recognized word. (unrecognized-spelling)

Check failure

Code scanning / check-spelling

Unrecognized Spelling Error

kubeconform is not a recognized word. (unrecognized-spelling)
echo "$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: Validate kubernetes objects
run: |
./.github/kubeval.sh
./.github/validate-kube.sh

0 comments on commit d52252f

Please sign in to comment.