diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index 43505959..677dd62c 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -50,6 +50,15 @@ 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 @@ -57,7 +66,6 @@ jobs: 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 . diff --git a/.kubeconform b/.kubeconform new file mode 100644 index 00000000..46cd8424 --- /dev/null +++ b/.kubeconform @@ -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 diff --git a/CHANGELOG.md b/CHANGELOG.md index 68a5a003..b23ba891 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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)