Skip to content

Commit

Permalink
Migrate to kubeconform for k8s linting, as kubeval is now deprecated (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
jk464 authored May 21, 2024
1 parent b71a802 commit a7679c0
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 4 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,22 @@ jobs:
- name: Checkout source
uses: actions/checkout@v3

- name: Install kubeconform-helm
run: |
helm plugin install https://github.com/jtyr/kubeconform-helm --version v0.1.17
- name: Update stackstorm-ha chart dependencies
run: |
set -x
helm dependency update
- name: Cache community
id: cache-community
uses: actions/cache@v3
with:
path: community
key: ${{ runner.os }}-community-${{ hashFiles('conf/**', 'templates/**', 'Chart.yaml', 'values.yaml') }}

- name: Kubernetes kubeval lint
uses: instrumenta/kubeval-action@master
with:
files: community
- name: Kubernetes kubeconform-helm Lint
run: |
helm kubeconform .
8 changes: 8 additions & 0 deletions .kubeconform
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Command line options that can be set multiple times can be defined as an array
schema-location:
- default
- https://raw.githubusercontent.com/datreeio/CRDs-catalog/main/{{.Group}}/{{.ResourceKind}}_{{.ResourceAPIVersion}}.json
# Command line options that can be specified without a value must have boolean
# value in the config file
summary: true
verbose: true
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

## Development
* Updated our tests/unit to support `unittests` v0.5.1 (#414, #421) (by @jk464)
* Migrate to kubeconform for k8s linting, as kubeval is now deprecated (#420) (by @jk464)

## v1.1.0
* Fix syntax with ensure-packs-volumes-are-writable job (#403, #411) (by @skiedude)
Expand Down

0 comments on commit a7679c0

Please sign in to comment.