ci: add kustomize to helm.lint
This catches duplicate keys in maps.
Signed-off-by: Daniel Höxtermann <daniel@hxtm.dev>
(cherry picked from commit 5ffd43e539)
This commit is contained in:
1 parent
5b5c1aa464
commit
b0c1b2df8c
1 file changed
+5
@@ -182,6 +182,11 @@ yamllint:
|
||||
|
||||
helm.lint: ## Check the helm charts
|
||||
ct lint --charts=./deploy/charts/rook-ceph,./deploy/charts/rook-ceph-cluster --validate-yaml=false --validate-maintainers=false
|
||||
helm -n rook-ceph template deploy/charts/rook-ceph > templated.yaml
|
||||
helm -n rook-ceph template deploy/charts/rook-ceph-cluster >> templated.yaml
|
||||
echo 'resources: [templated.yaml]' > kustomization.yaml
|
||||
kustomize build >/dev/null
|
||||
rm templated.yaml kustomization.yaml
|
||||
|
||||
.PHONY: lint
|
||||
lint: yamllint pylint shellcheck checkmake vet markdownlint golangci-lint helm.lint ## Run various linters
|
||||
|
||||
Reference in new issue
Block a user