Skip to content

Commit a7679c0

Browse files
authored
Migrate to kubeconform for k8s linting, as kubeval is now deprecated (#420)
1 parent b71a802 commit a7679c0

File tree

3 files changed

+21
-4
lines changed

3 files changed

+21
-4
lines changed

.github/workflows/lint.yaml

+12-4
Original file line numberDiff line numberDiff line change
@@ -50,14 +50,22 @@ jobs:
5050
- name: Checkout source
5151
uses: actions/checkout@v3
5252

53+
- name: Install kubeconform-helm
54+
run: |
55+
helm plugin install https://github.com/jtyr/kubeconform-helm --version v0.1.17
56+
57+
- name: Update stackstorm-ha chart dependencies
58+
run: |
59+
set -x
60+
helm dependency update
61+
5362
- name: Cache community
5463
id: cache-community
5564
uses: actions/cache@v3
5665
with:
5766
path: community
5867
key: ${{ runner.os }}-community-${{ hashFiles('conf/**', 'templates/**', 'Chart.yaml', 'values.yaml') }}
5968

60-
- name: Kubernetes kubeval lint
61-
uses: instrumenta/kubeval-action@master
62-
with:
63-
files: community
69+
- name: Kubernetes kubeconform-helm Lint
70+
run: |
71+
helm kubeconform .

.kubeconform

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Command line options that can be set multiple times can be defined as an array
2+
schema-location:
3+
- default
4+
- https://raw.githubusercontent.com/datreeio/CRDs-catalog/main/{{.Group}}/{{.ResourceKind}}_{{.ResourceAPIVersion}}.json
5+
# Command line options that can be specified without a value must have boolean
6+
# value in the config file
7+
summary: true
8+
verbose: true

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

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

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

0 commit comments

Comments
 (0)