Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate to kubeconform for k8s linting, as kubeval is now deprecated #420

Merged
merged 1 commit into from
May 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading