Skip to content
This repository was archived by the owner on Jul 19, 2023. It is now read-only.

Commit e425b2a

Browse files
authored
Move from kubeval to kubeconform (#534)
Fixes #520
1 parent a46f0e6 commit e425b2a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Makefile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -250,9 +250,9 @@ $(BIN)/helm: Makefile go.mod
250250
@mkdir -p $(@D)
251251
GOBIN=$(abspath $(@D)) $(GO) install helm.sh/helm/v3/cmd/helm@v3.8.0
252252

253-
$(BIN)/kubeval: Makefile go.mod
253+
$(BIN)/kubeconform: Makefile go.mod
254254
@mkdir -p $(@D)
255-
GOBIN=$(abspath $(@D)) $(GO) install github.com/instrumenta/kubeval@v0.16.1
255+
GOBIN=$(abspath $(@D)) $(GO) install github.com/yannh/kubeconform/cmd/kubeconform@v0.5.0
256256

257257
$(BIN)/mage: Makefile go.mod
258258
@mkdir -p $(@D)
@@ -301,16 +301,16 @@ trunk/fmt: $(BIN)/trunk
301301
$(BIN)/trunk fmt
302302

303303
.PHONY: helm/check
304-
helm/check: $(BIN)/kubeval $(BIN)/helm
304+
helm/check: $(BIN)/kubeconform $(BIN)/helm
305305
$(BIN)/helm repo add --force-update minio https://charts.min.io/
306306
$(BIN)/helm dependency build ./operations/phlare/helm/phlare/
307307
mkdir -p ./operations/phlare/helm/phlare/rendered/
308308
$(BIN)/helm template phlare-dev ./operations/phlare/helm/phlare/ \
309309
| tee ./operations/phlare/helm/phlare/rendered/single-binary.yaml \
310-
| $(BIN)/kubeval --strict
310+
| $(BIN)/kubeconform --summary --strict --kubernetes-version 1.21.0
311311
$(BIN)/helm template phlare-dev ./operations/phlare/helm/phlare/ --values operations/phlare/helm/phlare/values-micro-services.yaml \
312312
| tee ./operations/phlare/helm/phlare/rendered/micro-services.yaml \
313-
| $(BIN)/kubeval --strict
313+
| $(BIN)/kubeconform --summary --strict --kubernetes-version 1.21.0
314314
cat operations/phlare/helm/phlare/values-micro-services.yaml \
315315
| go run ./tools/yaml-to-json \
316316
> ./operations/phlare/jsonnet/values-micro-services.json

0 commit comments

Comments
 (0)