From 3492e214dbdf8e2c9f9c32cbc0ac879afcb35e64 Mon Sep 17 00:00:00 2001 From: cw-ozaki Date: Thu, 11 Feb 2021 01:58:56 +0900 Subject: [PATCH 1/2] enable the --strict option in kubeval --- akka/Makefile | 14 +++++++------- aws-alb-ingress-controller/Makefile | 2 +- aws-ebs-csi-driver/Makefile | 2 +- aws-secret-operator/Makefile | 2 +- burrow/Makefile | 2 +- contour/Makefile | 2 +- dynamodb/Makefile | 2 +- elasticmq/Makefile | 2 +- elasticsearch/Makefile | 2 +- example/Makefile | 2 +- fluent-bit/Makefile | 2 +- fluentd/Makefile | 8 ++++---- gcp-credentials/Makefile | 2 +- kube-schedule-scaler/Makefile | 2 +- mailcatcher/Makefile | 2 +- newrelic-php-agent/Makefile | 2 +- php/Makefile | 2 +- postfix/Makefile | 8 ++++---- raw/Makefile | 2 +- regcred/Makefile | 2 +- slime/Makefile | 2 +- twistlock-console/Makefile | 2 +- twistlock-defender/Makefile | 2 +- 23 files changed, 35 insertions(+), 35 deletions(-) diff --git a/akka/Makefile b/akka/Makefile index 81b45631..23b0fb31 100644 --- a/akka/Makefile +++ b/akka/Makefile @@ -15,7 +15,7 @@ lint-default: @echo "=> Linting default values.yaml" helm lint --strict @echo "=> Validating default value.yaml" - helm template . | kubeval --additional-schema-locations https://raw.githubusercontent.com/cw-ozaki/kubernetes-json-schema/master/ --kubernetes-version $(KUBERNETES_VERSION) --exit-on-error + helm template . | kubeval --strict --additional-schema-locations https://raw.githubusercontent.com/cw-ozaki/kubernetes-json-schema/master/ --kubernetes-version $(KUBERNETES_VERSION) --exit-on-error @echo "" .PHONY: lint-local-akka-http @@ -23,42 +23,42 @@ lint-local-akka-http: @echo "=> Linting examples/local-akka-http.yaml" helm lint --strict -f examples/local-akka-http.yaml @echo "=> Validating examples/local-akka-http.yaml" - helm template -f examples/local-akka-http.yaml . | kubeval --additional-schema-locations https://raw.githubusercontent.com/cw-ozaki/kubernetes-json-schema/master/ --kubernetes-version $(KUBERNETES_VERSION) --exit-on-error + helm template -f examples/local-akka-http.yaml . | kubeval --strict --additional-schema-locations https://raw.githubusercontent.com/cw-ozaki/kubernetes-json-schema/master/ --kubernetes-version $(KUBERNETES_VERSION) --exit-on-error .PHONY: lint-cluster-discovery-dns lint-cluster-discovery-dns: @echo "=> Linting examples/cluster-discovery-dns.yaml" helm lint --strict -f examples/cluster-discovery-dns.yaml @echo "=> Validating examples/cluster-discovery-dns.yaml" - helm template -f examples/cluster-discovery-dns.yaml . | kubeval --additional-schema-locations https://raw.githubusercontent.com/cw-ozaki/kubernetes-json-schema/master/ --kubernetes-version $(KUBERNETES_VERSION) --exit-on-error + helm template -f examples/cluster-discovery-dns.yaml . | kubeval --strict --additional-schema-locations https://raw.githubusercontent.com/cw-ozaki/kubernetes-json-schema/master/ --kubernetes-version $(KUBERNETES_VERSION) --exit-on-error .PHONY: lint-cluster-discovery-kubernetes-api lint-cluster-discovery-kubernetes-api: @echo "=> Linting examples/cluster-discovery-kubernetes-api.yaml" helm lint --strict -f examples/cluster-discovery-kubernetes-api.yaml @echo "=> Validating examples/cluster-discovery-kubernetes-api.yaml" - helm template -f examples/cluster-discovery-kubernetes-api.yaml . | kubeval --additional-schema-locations https://raw.githubusercontent.com/cw-ozaki/kubernetes-json-schema/master/ --kubernetes-version $(KUBERNETES_VERSION) --exit-on-error + helm template -f examples/cluster-discovery-kubernetes-api.yaml . | kubeval --strict --additional-schema-locations https://raw.githubusercontent.com/cw-ozaki/kubernetes-json-schema/master/ --kubernetes-version $(KUBERNETES_VERSION) --exit-on-error .PHONY: lint-cluster-discovery-aggregate lint-cluster-discovery-aggregate: @echo "=> Linting examples/cluster-discovery-aggregate.yaml" helm lint --strict -f examples/cluster-discovery-aggregate.yaml @echo "=> Validating examples/cluster-discovery-aggregate.yaml" - helm template -f examples/cluster-discovery-aggregate.yaml . | kubeval --additional-schema-locations https://raw.githubusercontent.com/cw-ozaki/kubernetes-json-schema/master/ --kubernetes-version $(KUBERNETES_VERSION) --exit-on-error + helm template -f examples/cluster-discovery-aggregate.yaml . | kubeval --strict --additional-schema-locations https://raw.githubusercontent.com/cw-ozaki/kubernetes-json-schema/master/ --kubernetes-version $(KUBERNETES_VERSION) --exit-on-error .PHONY: lint-cluster-multi-eks-cluster lint-cluster-multi-eks-cluster: @echo "=> Linting examples/cluster-multi-eks-cluster.yaml" helm lint --strict -f examples/cluster-multi-eks-cluster.yaml @echo "=> Validating examples/cluster-multi-eks-cluster.yaml" - helm template -f examples/cluster-multi-eks-cluster.yaml . | kubeval --additional-schema-locations https://raw.githubusercontent.com/cw-ozaki/kubernetes-json-schema/master/ --kubernetes-version $(KUBERNETES_VERSION) --exit-on-error + helm template -f examples/cluster-multi-eks-cluster.yaml . | kubeval --strict --additional-schema-locations https://raw.githubusercontent.com/cw-ozaki/kubernetes-json-schema/master/ --kubernetes-version $(KUBERNETES_VERSION) --exit-on-error .PHONY: lint-use-environment-variable-and-secret lint-use-environment-variable-and-secret: @echo "=> Linting examples/use-environment-variable-and-secret.yaml" helm lint --strict -f examples/use-environment-variable-and-secret.yaml @echo "=> Validating examples/use-environment-variable-and-secret.yaml" - helm template -f examples/use-environment-variable-and-secret.yaml . | kubeval --additional-schema-locations https://raw.githubusercontent.com/cw-ozaki/kubernetes-json-schema/master/ --kubernetes-version $(KUBERNETES_VERSION) --exit-on-error + helm template -f examples/use-environment-variable-and-secret.yaml . | kubeval --strict --additional-schema-locations https://raw.githubusercontent.com/cw-ozaki/kubernetes-json-schema/master/ --kubernetes-version $(KUBERNETES_VERSION) --exit-on-error .PHONY: test test: test-local-akka-http test-cluster-discovery-dns test-cluster-discovery-kubernetes-api test-use-environment-variable-and-secret test-default diff --git a/aws-alb-ingress-controller/Makefile b/aws-alb-ingress-controller/Makefile index db07bdf4..16ec596a 100644 --- a/aws-alb-ingress-controller/Makefile +++ b/aws-alb-ingress-controller/Makefile @@ -15,7 +15,7 @@ lint-default: @echo "=> Linting default values.yaml" helm lint --strict @echo "=> Validating default value.yaml" - helm template . | kubeval --additional-schema-locations https://raw.githubusercontent.com/cw-ozaki/kubernetes-json-schema/master/ --kubernetes-version $(KUBERNETES_VERSION) --exit-on-error + helm template . | kubeval --strict --additional-schema-locations https://raw.githubusercontent.com/cw-ozaki/kubernetes-json-schema/master/ --kubernetes-version $(KUBERNETES_VERSION) --exit-on-error @echo "" .PHONY: test diff --git a/aws-ebs-csi-driver/Makefile b/aws-ebs-csi-driver/Makefile index 0cc74dbc..e0e29b28 100644 --- a/aws-ebs-csi-driver/Makefile +++ b/aws-ebs-csi-driver/Makefile @@ -16,7 +16,7 @@ lint-default: @echo "=> Linting default values.yaml" helm lint --strict @echo "=> Validating default value.yaml" - helm template . | kubeval --additional-schema-locations https://raw.githubusercontent.com/cw-ozaki/kubernetes-json-schema/master/ --kubernetes-version $(KUBERNETES_VERSION) --exit-on-error + helm template . | kubeval --strict --additional-schema-locations https://raw.githubusercontent.com/cw-ozaki/kubernetes-json-schema/master/ --kubernetes-version $(KUBERNETES_VERSION) --exit-on-error @echo "" .PHONY: test diff --git a/aws-secret-operator/Makefile b/aws-secret-operator/Makefile index bd8ca70f..543804f3 100644 --- a/aws-secret-operator/Makefile +++ b/aws-secret-operator/Makefile @@ -15,7 +15,7 @@ lint-default: @echo "=> Linting default values.yaml" helm lint --strict @echo "=> Validating default value.yaml" - helm template . | kubeval --additional-schema-locations https://raw.githubusercontent.com/cw-ozaki/kubernetes-json-schema/master/ --kubernetes-version $(KUBERNETES_VERSION) --exit-on-error + helm template . | kubeval --strict --additional-schema-locations https://raw.githubusercontent.com/cw-ozaki/kubernetes-json-schema/master/ --kubernetes-version $(KUBERNETES_VERSION) --exit-on-error @echo "" .PHONY: test diff --git a/burrow/Makefile b/burrow/Makefile index 7bb6a0f7..81b37ca7 100644 --- a/burrow/Makefile +++ b/burrow/Makefile @@ -17,7 +17,7 @@ lint-default: @echo "=> Linting default values.yaml" helm lint --strict @echo "=> Validating default value.yaml" - helm template . | kubeval --additional-schema-locations https://raw.githubusercontent.com/cw-ozaki/kubernetes-json-schema/master/ --kubernetes-version $(KUBERNETES_VERSION) --exit-on-error + helm template . | kubeval --strict --additional-schema-locations https://raw.githubusercontent.com/cw-ozaki/kubernetes-json-schema/master/ --kubernetes-version $(KUBERNETES_VERSION) --exit-on-error @echo "" .PHONY: test diff --git a/contour/Makefile b/contour/Makefile index c892a142..1e1255dc 100644 --- a/contour/Makefile +++ b/contour/Makefile @@ -17,7 +17,7 @@ lint-default: @echo "=> Linting default values.yaml" helm lint --strict @echo "=> Validating default value.yaml" - helm template . | kubeval --additional-schema-locations https://raw.githubusercontent.com/cw-ozaki/kubernetes-json-schema/master/ --kubernetes-version $(KUBERNETES_VERSION) --exit-on-error + helm template . | kubeval --strict --additional-schema-locations https://raw.githubusercontent.com/cw-ozaki/kubernetes-json-schema/master/ --kubernetes-version $(KUBERNETES_VERSION) --exit-on-error @echo "" .PHONY: test diff --git a/dynamodb/Makefile b/dynamodb/Makefile index 8f0dcc8a..7f162411 100644 --- a/dynamodb/Makefile +++ b/dynamodb/Makefile @@ -15,7 +15,7 @@ lint-default: @echo "=> Linting default values.yaml" helm lint --strict @echo "=> Validating default value.yaml" - helm template . | kubeval --additional-schema-locations https://raw.githubusercontent.com/cw-ozaki/kubernetes-json-schema/master/ --kubernetes-version $(KUBERNETES_VERSION) --exit-on-error + helm template . | kubeval --strict --additional-schema-locations https://raw.githubusercontent.com/cw-ozaki/kubernetes-json-schema/master/ --kubernetes-version $(KUBERNETES_VERSION) --exit-on-error @echo "" .PHONY: test diff --git a/elasticmq/Makefile b/elasticmq/Makefile index 8f0dcc8a..7f162411 100644 --- a/elasticmq/Makefile +++ b/elasticmq/Makefile @@ -15,7 +15,7 @@ lint-default: @echo "=> Linting default values.yaml" helm lint --strict @echo "=> Validating default value.yaml" - helm template . | kubeval --additional-schema-locations https://raw.githubusercontent.com/cw-ozaki/kubernetes-json-schema/master/ --kubernetes-version $(KUBERNETES_VERSION) --exit-on-error + helm template . | kubeval --strict --additional-schema-locations https://raw.githubusercontent.com/cw-ozaki/kubernetes-json-schema/master/ --kubernetes-version $(KUBERNETES_VERSION) --exit-on-error @echo "" .PHONY: test diff --git a/elasticsearch/Makefile b/elasticsearch/Makefile index 8f0dcc8a..7f162411 100644 --- a/elasticsearch/Makefile +++ b/elasticsearch/Makefile @@ -15,7 +15,7 @@ lint-default: @echo "=> Linting default values.yaml" helm lint --strict @echo "=> Validating default value.yaml" - helm template . | kubeval --additional-schema-locations https://raw.githubusercontent.com/cw-ozaki/kubernetes-json-schema/master/ --kubernetes-version $(KUBERNETES_VERSION) --exit-on-error + helm template . | kubeval --strict --additional-schema-locations https://raw.githubusercontent.com/cw-ozaki/kubernetes-json-schema/master/ --kubernetes-version $(KUBERNETES_VERSION) --exit-on-error @echo "" .PHONY: test diff --git a/example/Makefile b/example/Makefile index 8f0dcc8a..7f162411 100644 --- a/example/Makefile +++ b/example/Makefile @@ -15,7 +15,7 @@ lint-default: @echo "=> Linting default values.yaml" helm lint --strict @echo "=> Validating default value.yaml" - helm template . | kubeval --additional-schema-locations https://raw.githubusercontent.com/cw-ozaki/kubernetes-json-schema/master/ --kubernetes-version $(KUBERNETES_VERSION) --exit-on-error + helm template . | kubeval --strict --additional-schema-locations https://raw.githubusercontent.com/cw-ozaki/kubernetes-json-schema/master/ --kubernetes-version $(KUBERNETES_VERSION) --exit-on-error @echo "" .PHONY: test diff --git a/fluent-bit/Makefile b/fluent-bit/Makefile index 8f0dcc8a..7f162411 100644 --- a/fluent-bit/Makefile +++ b/fluent-bit/Makefile @@ -15,7 +15,7 @@ lint-default: @echo "=> Linting default values.yaml" helm lint --strict @echo "=> Validating default value.yaml" - helm template . | kubeval --additional-schema-locations https://raw.githubusercontent.com/cw-ozaki/kubernetes-json-schema/master/ --kubernetes-version $(KUBERNETES_VERSION) --exit-on-error + helm template . | kubeval --strict --additional-schema-locations https://raw.githubusercontent.com/cw-ozaki/kubernetes-json-schema/master/ --kubernetes-version $(KUBERNETES_VERSION) --exit-on-error @echo "" .PHONY: test diff --git a/fluentd/Makefile b/fluentd/Makefile index 2b5739a9..eca6392e 100644 --- a/fluentd/Makefile +++ b/fluentd/Makefile @@ -15,7 +15,7 @@ lint-default: @echo "=> Linting default values.yaml" helm lint --strict @echo "=> Validating default value.yaml" - helm template . | kubeval --additional-schema-locations https://raw.githubusercontent.com/cw-ozaki/kubernetes-json-schema/master/ --kubernetes-version $(KUBERNETES_VERSION) --exit-on-error + helm template . | kubeval --strict --additional-schema-locations https://raw.githubusercontent.com/cw-ozaki/kubernetes-json-schema/master/ --kubernetes-version $(KUBERNETES_VERSION) --exit-on-error @echo "" .PHONY: lint-daemonset @@ -23,21 +23,21 @@ lint-daemonset: @echo "=> Linting examples/daemonset.yaml" helm lint --strict -f examples/daemonset.yaml @echo "=> Validating examples/daemonset.yaml" - helm template -f examples/daemonset.yaml . | kubeval --additional-schema-locations https://raw.githubusercontent.com/cw-ozaki/kubernetes-json-schema/master/ --kubernetes-version $(KUBERNETES_VERSION) --exit-on-error + helm template -f examples/daemonset.yaml . | kubeval --strict --additional-schema-locations https://raw.githubusercontent.com/cw-ozaki/kubernetes-json-schema/master/ --kubernetes-version $(KUBERNETES_VERSION) --exit-on-error .PHONY: lint-statefulset lint-statefulset: @echo "=> Linting examples/statefulset.yaml" helm lint --strict -f examples/statefulset.yaml @echo "=> Validating examples/statefulset.yaml" - helm template -f examples/statefulset.yaml . | kubeval --additional-schema-locations https://raw.githubusercontent.com/cw-ozaki/kubernetes-json-schema/master/ --kubernetes-version $(KUBERNETES_VERSION) --exit-on-error + helm template -f examples/statefulset.yaml . | kubeval --strict --additional-schema-locations https://raw.githubusercontent.com/cw-ozaki/kubernetes-json-schema/master/ --kubernetes-version $(KUBERNETES_VERSION) --exit-on-error .PHONY: lint-use-udp lint-use-udp: @echo "=> Linting examples/use-udp.yaml" helm lint --strict -f examples/use-udp.yaml @echo "=> Validating examples/use-udp.yaml" - helm template -f examples/use-udp.yaml . | kubeval --additional-schema-locations https://raw.githubusercontent.com/cw-ozaki/kubernetes-json-schema/master/ --kubernetes-version $(KUBERNETES_VERSION) --exit-on-error + helm template -f examples/use-udp.yaml . | kubeval --strict --additional-schema-locations https://raw.githubusercontent.com/cw-ozaki/kubernetes-json-schema/master/ --kubernetes-version $(KUBERNETES_VERSION) --exit-on-error .PHONY: test test: test-daemonset test-statefulset test-use-udp test-default diff --git a/gcp-credentials/Makefile b/gcp-credentials/Makefile index bd8ca70f..543804f3 100644 --- a/gcp-credentials/Makefile +++ b/gcp-credentials/Makefile @@ -15,7 +15,7 @@ lint-default: @echo "=> Linting default values.yaml" helm lint --strict @echo "=> Validating default value.yaml" - helm template . | kubeval --additional-schema-locations https://raw.githubusercontent.com/cw-ozaki/kubernetes-json-schema/master/ --kubernetes-version $(KUBERNETES_VERSION) --exit-on-error + helm template . | kubeval --strict --additional-schema-locations https://raw.githubusercontent.com/cw-ozaki/kubernetes-json-schema/master/ --kubernetes-version $(KUBERNETES_VERSION) --exit-on-error @echo "" .PHONY: test diff --git a/kube-schedule-scaler/Makefile b/kube-schedule-scaler/Makefile index bd8ca70f..543804f3 100644 --- a/kube-schedule-scaler/Makefile +++ b/kube-schedule-scaler/Makefile @@ -15,7 +15,7 @@ lint-default: @echo "=> Linting default values.yaml" helm lint --strict @echo "=> Validating default value.yaml" - helm template . | kubeval --additional-schema-locations https://raw.githubusercontent.com/cw-ozaki/kubernetes-json-schema/master/ --kubernetes-version $(KUBERNETES_VERSION) --exit-on-error + helm template . | kubeval --strict --additional-schema-locations https://raw.githubusercontent.com/cw-ozaki/kubernetes-json-schema/master/ --kubernetes-version $(KUBERNETES_VERSION) --exit-on-error @echo "" .PHONY: test diff --git a/mailcatcher/Makefile b/mailcatcher/Makefile index 324eaeab..ed19fe27 100644 --- a/mailcatcher/Makefile +++ b/mailcatcher/Makefile @@ -15,7 +15,7 @@ lint-default: @echo "=> Linting default values.yaml" helm lint --strict @echo "=> Validating default value.yaml" - helm template . | kubeval --additional-schema-locations https://raw.githubusercontent.com/cw-ozaki/kubernetes-json-schema/master/ --kubernetes-version $(KUBERNETES_VERSION) --exit-on-error + helm template . | kubeval --strict --additional-schema-locations https://raw.githubusercontent.com/cw-ozaki/kubernetes-json-schema/master/ --kubernetes-version $(KUBERNETES_VERSION) --exit-on-error @echo "" .PHONY: test diff --git a/newrelic-php-agent/Makefile b/newrelic-php-agent/Makefile index 8f0dcc8a..7f162411 100644 --- a/newrelic-php-agent/Makefile +++ b/newrelic-php-agent/Makefile @@ -15,7 +15,7 @@ lint-default: @echo "=> Linting default values.yaml" helm lint --strict @echo "=> Validating default value.yaml" - helm template . | kubeval --additional-schema-locations https://raw.githubusercontent.com/cw-ozaki/kubernetes-json-schema/master/ --kubernetes-version $(KUBERNETES_VERSION) --exit-on-error + helm template . | kubeval --strict --additional-schema-locations https://raw.githubusercontent.com/cw-ozaki/kubernetes-json-schema/master/ --kubernetes-version $(KUBERNETES_VERSION) --exit-on-error @echo "" .PHONY: test diff --git a/php/Makefile b/php/Makefile index 769dbc91..68d9b644 100644 --- a/php/Makefile +++ b/php/Makefile @@ -15,7 +15,7 @@ lint-default: @echo "=> Linting default values.yaml" helm lint --strict @echo "=> Validating default value.yaml" - helm template . | kubeval --additional-schema-locations https://raw.githubusercontent.com/cw-ozaki/kubernetes-json-schema/master/ --kubernetes-version $(KUBERNETES_VERSION) --exit-on-error + helm template . | kubeval --strict --additional-schema-locations https://raw.githubusercontent.com/cw-ozaki/kubernetes-json-schema/master/ --kubernetes-version $(KUBERNETES_VERSION) --exit-on-error @echo "" .PHONY: test diff --git a/postfix/Makefile b/postfix/Makefile index 996c640e..6d6111dc 100644 --- a/postfix/Makefile +++ b/postfix/Makefile @@ -18,7 +18,7 @@ lint-daemonset: @echo "=> Linting default values.yaml" helm lint --strict @echo "=> Validating default value.yaml" - helm template . | kubeval --additional-schema-locations https://raw.githubusercontent.com/cw-ozaki/kubernetes-json-schema/master/ --kubernetes-version $(KUBERNETES_VERSION) --exit-on-error + helm template . | kubeval --strict --additional-schema-locations https://raw.githubusercontent.com/cw-ozaki/kubernetes-json-schema/master/ --kubernetes-version $(KUBERNETES_VERSION) --exit-on-error @echo "" .PHONY: lint-daemonset-mailcatcher @@ -26,7 +26,7 @@ lint-daemonset-mailcatcher: @echo "=> Linting default values.yaml" helm lint $(mailcatcher) --strict @echo "=> Validating default value.yaml" - helm template $(mailcatcher) . | kubeval --additional-schema-locations https://raw.githubusercontent.com/cw-ozaki/kubernetes-json-schema/master/ --kubernetes-version $(KUBERNETES_VERSION) --exit-on-error + helm template $(mailcatcher) . | kubeval --strict --additional-schema-locations https://raw.githubusercontent.com/cw-ozaki/kubernetes-json-schema/master/ --kubernetes-version $(KUBERNETES_VERSION) --exit-on-error @echo "" .PHONY: lint-deployment @@ -34,7 +34,7 @@ lint-deployment: @echo "=> Linting default values.yaml" helm lint --set deployment.enabled=true --set daemonset.enabled=false --set deployment.podDisruptionBudget.enabled=true --set deployment.service.type=ClusterIP --strict @echo "=> Validating default value.yaml" - helm template --set deployment.enabled=true --set daemonset.enabled=false --set deployment.podDisruptionBudget.enabled=true --set deployment.service.type=ClusterIP . | kubeval --additional-schema-locations https://raw.githubusercontent.com/cw-ozaki/kubernetes-json-schema/master/ --kubernetes-version $(KUBERNETES_VERSION) --exit-on-error + helm template --set deployment.enabled=true --set daemonset.enabled=false --set deployment.podDisruptionBudget.enabled=true --set deployment.service.type=ClusterIP . | kubeval --strict --additional-schema-locations https://raw.githubusercontent.com/cw-ozaki/kubernetes-json-schema/master/ --kubernetes-version $(KUBERNETES_VERSION) --exit-on-error @echo "" .PHONY: lint-deployment-mailcatcher @@ -42,7 +42,7 @@ lint-deployment-mailcatcher: @echo "=> Linting default values.yaml" helm lint --set deployment.enabled=true --set daemonset.enabled=false $(mailcatcher) --set deployment.podDisruptionBudget.enabled=true --set deployment.service.type=ClusterIP --strict @echo "=> Validating default value.yaml" - helm template --set deployment.enabled=true --set daemonset.enabled=false $(mailcatcher) --set deployment.podDisruptionBudget.enabled=true --set deployment.service.type=ClusterIP . | kubeval --additional-schema-locations https://raw.githubusercontent.com/cw-ozaki/kubernetes-json-schema/master/ --kubernetes-version $(KUBERNETES_VERSION) --exit-on-error + helm template --set deployment.enabled=true --set daemonset.enabled=false $(mailcatcher) --set deployment.podDisruptionBudget.enabled=true --set deployment.service.type=ClusterIP . | kubeval --strict --additional-schema-locations https://raw.githubusercontent.com/cw-ozaki/kubernetes-json-schema/master/ --kubernetes-version $(KUBERNETES_VERSION) --exit-on-error @echo "" .PHONY: test diff --git a/raw/Makefile b/raw/Makefile index 914a6913..cf138185 100644 --- a/raw/Makefile +++ b/raw/Makefile @@ -15,7 +15,7 @@ lint-default: @echo "=> Linting default values.yaml" helm lint --strict @echo "=> Validating default value.yaml" - helm template . | kubeval --additional-schema-locations https://raw.githubusercontent.com/cw-ozaki/kubernetes-json-schema/master/ --kubernetes-version $(KUBERNETES_VERSION) --exit-on-error + helm template . | kubeval --strict --additional-schema-locations https://raw.githubusercontent.com/cw-ozaki/kubernetes-json-schema/master/ --kubernetes-version $(KUBERNETES_VERSION) --exit-on-error @echo "" .PHONY: test diff --git a/regcred/Makefile b/regcred/Makefile index bd8ca70f..543804f3 100644 --- a/regcred/Makefile +++ b/regcred/Makefile @@ -15,7 +15,7 @@ lint-default: @echo "=> Linting default values.yaml" helm lint --strict @echo "=> Validating default value.yaml" - helm template . | kubeval --additional-schema-locations https://raw.githubusercontent.com/cw-ozaki/kubernetes-json-schema/master/ --kubernetes-version $(KUBERNETES_VERSION) --exit-on-error + helm template . | kubeval --strict --additional-schema-locations https://raw.githubusercontent.com/cw-ozaki/kubernetes-json-schema/master/ --kubernetes-version $(KUBERNETES_VERSION) --exit-on-error @echo "" .PHONY: test diff --git a/slime/Makefile b/slime/Makefile index dd1aca80..d8b48815 100644 --- a/slime/Makefile +++ b/slime/Makefile @@ -47,7 +47,7 @@ lint-default: --set 'deployment.enabled=true' \ --set 'deployment.pod.container[0].image=k8s.gcr.io/pause:latest' \ --set 'deployment.pod.container[0].name=pause' \ - . | kubeval --additional-schema-locations https://raw.githubusercontent.com/cw-ozaki/kubernetes-json-schema/master/ --kubernetes-version $(KUBERNETES_VERSION) --exit-on-error + . | kubeval --strict --additional-schema-locations https://raw.githubusercontent.com/cw-ozaki/kubernetes-json-schema/master/ --kubernetes-version $(KUBERNETES_VERSION) --exit-on-error @echo "" .PHONY: test diff --git a/twistlock-console/Makefile b/twistlock-console/Makefile index 7a349574..3f772471 100644 --- a/twistlock-console/Makefile +++ b/twistlock-console/Makefile @@ -15,7 +15,7 @@ lint-default: @echo "=> Linting default values.yaml" helm lint --strict @echo "=> Validating default value.yaml" - helm template . | kubeval --additional-schema-locations https://raw.githubusercontent.com/cw-ozaki/kubernetes-json-schema/master/ --kubernetes-version $(KUBERNETES_VERSION) --exit-on-error + helm template . | kubeval --strict --additional-schema-locations https://raw.githubusercontent.com/cw-ozaki/kubernetes-json-schema/master/ --kubernetes-version $(KUBERNETES_VERSION) --exit-on-error @echo "" .PHONY: test diff --git a/twistlock-defender/Makefile b/twistlock-defender/Makefile index 7a349574..3f772471 100644 --- a/twistlock-defender/Makefile +++ b/twistlock-defender/Makefile @@ -15,7 +15,7 @@ lint-default: @echo "=> Linting default values.yaml" helm lint --strict @echo "=> Validating default value.yaml" - helm template . | kubeval --additional-schema-locations https://raw.githubusercontent.com/cw-ozaki/kubernetes-json-schema/master/ --kubernetes-version $(KUBERNETES_VERSION) --exit-on-error + helm template . | kubeval --strict --additional-schema-locations https://raw.githubusercontent.com/cw-ozaki/kubernetes-json-schema/master/ --kubernetes-version $(KUBERNETES_VERSION) --exit-on-error @echo "" .PHONY: test From d2557faf0b4003e9e655408ef0841e074310c1b3 Mon Sep 17 00:00:00 2001 From: cw-ozaki Date: Mon, 15 Feb 2021 07:52:38 +0900 Subject: [PATCH 2/2] enable the --ignore-missing-schemas option in kubeval --- akka/Makefile | 14 +++++++------- argoproj-crd/Makefile | 3 +++ aws-alb-ingress-controller/Makefile | 2 +- aws-ebs-csi-driver/Makefile | 2 +- aws-secret-operator/Makefile | 2 +- burrow/Makefile | 2 +- contour/Makefile | 2 +- dynamodb/Makefile | 2 +- elasticmq/Makefile | 2 +- elasticsearch/Makefile | 2 +- example/Makefile | 2 +- fluent-bit/Makefile | 2 +- fluentd/Makefile | 8 ++++---- gcp-credentials/Makefile | 2 +- kube-schedule-scaler/Makefile | 2 +- mailcatcher/Makefile | 2 +- newrelic-php-agent/Makefile | 2 +- php/Makefile | 2 +- postfix/Makefile | 8 ++++---- raw/Makefile | 2 +- regcred/Makefile | 2 +- slime/Makefile | 2 +- twistlock-console/Makefile | 2 +- twistlock-defender/Makefile | 2 +- 24 files changed, 38 insertions(+), 35 deletions(-) diff --git a/akka/Makefile b/akka/Makefile index 23b0fb31..7dde759b 100644 --- a/akka/Makefile +++ b/akka/Makefile @@ -15,7 +15,7 @@ lint-default: @echo "=> Linting default values.yaml" helm lint --strict @echo "=> Validating default value.yaml" - helm template . | kubeval --strict --additional-schema-locations https://raw.githubusercontent.com/cw-ozaki/kubernetes-json-schema/master/ --kubernetes-version $(KUBERNETES_VERSION) --exit-on-error + helm template . | kubeval --strict --ignore-missing-schemas --additional-schema-locations https://raw.githubusercontent.com/cw-ozaki/kubernetes-json-schema/master/ --kubernetes-version $(KUBERNETES_VERSION) --exit-on-error @echo "" .PHONY: lint-local-akka-http @@ -23,42 +23,42 @@ lint-local-akka-http: @echo "=> Linting examples/local-akka-http.yaml" helm lint --strict -f examples/local-akka-http.yaml @echo "=> Validating examples/local-akka-http.yaml" - helm template -f examples/local-akka-http.yaml . | kubeval --strict --additional-schema-locations https://raw.githubusercontent.com/cw-ozaki/kubernetes-json-schema/master/ --kubernetes-version $(KUBERNETES_VERSION) --exit-on-error + helm template -f examples/local-akka-http.yaml . | kubeval --strict --ignore-missing-schemas --additional-schema-locations https://raw.githubusercontent.com/cw-ozaki/kubernetes-json-schema/master/ --kubernetes-version $(KUBERNETES_VERSION) --exit-on-error .PHONY: lint-cluster-discovery-dns lint-cluster-discovery-dns: @echo "=> Linting examples/cluster-discovery-dns.yaml" helm lint --strict -f examples/cluster-discovery-dns.yaml @echo "=> Validating examples/cluster-discovery-dns.yaml" - helm template -f examples/cluster-discovery-dns.yaml . | kubeval --strict --additional-schema-locations https://raw.githubusercontent.com/cw-ozaki/kubernetes-json-schema/master/ --kubernetes-version $(KUBERNETES_VERSION) --exit-on-error + helm template -f examples/cluster-discovery-dns.yaml . | kubeval --strict --ignore-missing-schemas --additional-schema-locations https://raw.githubusercontent.com/cw-ozaki/kubernetes-json-schema/master/ --kubernetes-version $(KUBERNETES_VERSION) --exit-on-error .PHONY: lint-cluster-discovery-kubernetes-api lint-cluster-discovery-kubernetes-api: @echo "=> Linting examples/cluster-discovery-kubernetes-api.yaml" helm lint --strict -f examples/cluster-discovery-kubernetes-api.yaml @echo "=> Validating examples/cluster-discovery-kubernetes-api.yaml" - helm template -f examples/cluster-discovery-kubernetes-api.yaml . | kubeval --strict --additional-schema-locations https://raw.githubusercontent.com/cw-ozaki/kubernetes-json-schema/master/ --kubernetes-version $(KUBERNETES_VERSION) --exit-on-error + helm template -f examples/cluster-discovery-kubernetes-api.yaml . | kubeval --strict --ignore-missing-schemas --additional-schema-locations https://raw.githubusercontent.com/cw-ozaki/kubernetes-json-schema/master/ --kubernetes-version $(KUBERNETES_VERSION) --exit-on-error .PHONY: lint-cluster-discovery-aggregate lint-cluster-discovery-aggregate: @echo "=> Linting examples/cluster-discovery-aggregate.yaml" helm lint --strict -f examples/cluster-discovery-aggregate.yaml @echo "=> Validating examples/cluster-discovery-aggregate.yaml" - helm template -f examples/cluster-discovery-aggregate.yaml . | kubeval --strict --additional-schema-locations https://raw.githubusercontent.com/cw-ozaki/kubernetes-json-schema/master/ --kubernetes-version $(KUBERNETES_VERSION) --exit-on-error + helm template -f examples/cluster-discovery-aggregate.yaml . | kubeval --strict --ignore-missing-schemas --additional-schema-locations https://raw.githubusercontent.com/cw-ozaki/kubernetes-json-schema/master/ --kubernetes-version $(KUBERNETES_VERSION) --exit-on-error .PHONY: lint-cluster-multi-eks-cluster lint-cluster-multi-eks-cluster: @echo "=> Linting examples/cluster-multi-eks-cluster.yaml" helm lint --strict -f examples/cluster-multi-eks-cluster.yaml @echo "=> Validating examples/cluster-multi-eks-cluster.yaml" - helm template -f examples/cluster-multi-eks-cluster.yaml . | kubeval --strict --additional-schema-locations https://raw.githubusercontent.com/cw-ozaki/kubernetes-json-schema/master/ --kubernetes-version $(KUBERNETES_VERSION) --exit-on-error + helm template -f examples/cluster-multi-eks-cluster.yaml . | kubeval --strict --ignore-missing-schemas --additional-schema-locations https://raw.githubusercontent.com/cw-ozaki/kubernetes-json-schema/master/ --kubernetes-version $(KUBERNETES_VERSION) --exit-on-error .PHONY: lint-use-environment-variable-and-secret lint-use-environment-variable-and-secret: @echo "=> Linting examples/use-environment-variable-and-secret.yaml" helm lint --strict -f examples/use-environment-variable-and-secret.yaml @echo "=> Validating examples/use-environment-variable-and-secret.yaml" - helm template -f examples/use-environment-variable-and-secret.yaml . | kubeval --strict --additional-schema-locations https://raw.githubusercontent.com/cw-ozaki/kubernetes-json-schema/master/ --kubernetes-version $(KUBERNETES_VERSION) --exit-on-error + helm template -f examples/use-environment-variable-and-secret.yaml . | kubeval --strict --ignore-missing-schemas --additional-schema-locations https://raw.githubusercontent.com/cw-ozaki/kubernetes-json-schema/master/ --kubernetes-version $(KUBERNETES_VERSION) --exit-on-error .PHONY: test test: test-local-akka-http test-cluster-discovery-dns test-cluster-discovery-kubernetes-api test-use-environment-variable-and-secret test-default diff --git a/argoproj-crd/Makefile b/argoproj-crd/Makefile index f7617c7a..27ff8451 100644 --- a/argoproj-crd/Makefile +++ b/argoproj-crd/Makefile @@ -17,6 +17,9 @@ lint-default: @echo "=> Linting default values.yaml" helm lint --strict @echo "" + @echo "=> Validating default value.yaml" + helm template . | kubeval --strict --ignore-missing-schemas --additional-schema-locations https://raw.githubusercontent.com/cw-ozaki/kubernetes-json-schema/master/ --kubernetes-version $(KUBERNETES_VERSION) --exit-on-error + @echo "" .PHONY: test test: diff --git a/aws-alb-ingress-controller/Makefile b/aws-alb-ingress-controller/Makefile index 16ec596a..24fb4319 100644 --- a/aws-alb-ingress-controller/Makefile +++ b/aws-alb-ingress-controller/Makefile @@ -15,7 +15,7 @@ lint-default: @echo "=> Linting default values.yaml" helm lint --strict @echo "=> Validating default value.yaml" - helm template . | kubeval --strict --additional-schema-locations https://raw.githubusercontent.com/cw-ozaki/kubernetes-json-schema/master/ --kubernetes-version $(KUBERNETES_VERSION) --exit-on-error + helm template . | kubeval --strict --ignore-missing-schemas --additional-schema-locations https://raw.githubusercontent.com/cw-ozaki/kubernetes-json-schema/master/ --kubernetes-version $(KUBERNETES_VERSION) --exit-on-error @echo "" .PHONY: test diff --git a/aws-ebs-csi-driver/Makefile b/aws-ebs-csi-driver/Makefile index e0e29b28..606a9b58 100644 --- a/aws-ebs-csi-driver/Makefile +++ b/aws-ebs-csi-driver/Makefile @@ -16,7 +16,7 @@ lint-default: @echo "=> Linting default values.yaml" helm lint --strict @echo "=> Validating default value.yaml" - helm template . | kubeval --strict --additional-schema-locations https://raw.githubusercontent.com/cw-ozaki/kubernetes-json-schema/master/ --kubernetes-version $(KUBERNETES_VERSION) --exit-on-error + helm template . | kubeval --strict --ignore-missing-schemas --additional-schema-locations https://raw.githubusercontent.com/cw-ozaki/kubernetes-json-schema/master/ --kubernetes-version $(KUBERNETES_VERSION) --exit-on-error @echo "" .PHONY: test diff --git a/aws-secret-operator/Makefile b/aws-secret-operator/Makefile index 543804f3..1ecccb65 100644 --- a/aws-secret-operator/Makefile +++ b/aws-secret-operator/Makefile @@ -15,7 +15,7 @@ lint-default: @echo "=> Linting default values.yaml" helm lint --strict @echo "=> Validating default value.yaml" - helm template . | kubeval --strict --additional-schema-locations https://raw.githubusercontent.com/cw-ozaki/kubernetes-json-schema/master/ --kubernetes-version $(KUBERNETES_VERSION) --exit-on-error + helm template . | kubeval --strict --ignore-missing-schemas --additional-schema-locations https://raw.githubusercontent.com/cw-ozaki/kubernetes-json-schema/master/ --kubernetes-version $(KUBERNETES_VERSION) --exit-on-error @echo "" .PHONY: test diff --git a/burrow/Makefile b/burrow/Makefile index 81b37ca7..8098b4fc 100644 --- a/burrow/Makefile +++ b/burrow/Makefile @@ -17,7 +17,7 @@ lint-default: @echo "=> Linting default values.yaml" helm lint --strict @echo "=> Validating default value.yaml" - helm template . | kubeval --strict --additional-schema-locations https://raw.githubusercontent.com/cw-ozaki/kubernetes-json-schema/master/ --kubernetes-version $(KUBERNETES_VERSION) --exit-on-error + helm template . | kubeval --strict --ignore-missing-schemas --additional-schema-locations https://raw.githubusercontent.com/cw-ozaki/kubernetes-json-schema/master/ --kubernetes-version $(KUBERNETES_VERSION) --exit-on-error @echo "" .PHONY: test diff --git a/contour/Makefile b/contour/Makefile index 1e1255dc..280d781e 100644 --- a/contour/Makefile +++ b/contour/Makefile @@ -17,7 +17,7 @@ lint-default: @echo "=> Linting default values.yaml" helm lint --strict @echo "=> Validating default value.yaml" - helm template . | kubeval --strict --additional-schema-locations https://raw.githubusercontent.com/cw-ozaki/kubernetes-json-schema/master/ --kubernetes-version $(KUBERNETES_VERSION) --exit-on-error + helm template . | kubeval --strict --ignore-missing-schemas --additional-schema-locations https://raw.githubusercontent.com/cw-ozaki/kubernetes-json-schema/master/ --kubernetes-version $(KUBERNETES_VERSION) --exit-on-error @echo "" .PHONY: test diff --git a/dynamodb/Makefile b/dynamodb/Makefile index 7f162411..00d94ca4 100644 --- a/dynamodb/Makefile +++ b/dynamodb/Makefile @@ -15,7 +15,7 @@ lint-default: @echo "=> Linting default values.yaml" helm lint --strict @echo "=> Validating default value.yaml" - helm template . | kubeval --strict --additional-schema-locations https://raw.githubusercontent.com/cw-ozaki/kubernetes-json-schema/master/ --kubernetes-version $(KUBERNETES_VERSION) --exit-on-error + helm template . | kubeval --strict --ignore-missing-schemas --additional-schema-locations https://raw.githubusercontent.com/cw-ozaki/kubernetes-json-schema/master/ --kubernetes-version $(KUBERNETES_VERSION) --exit-on-error @echo "" .PHONY: test diff --git a/elasticmq/Makefile b/elasticmq/Makefile index 7f162411..00d94ca4 100644 --- a/elasticmq/Makefile +++ b/elasticmq/Makefile @@ -15,7 +15,7 @@ lint-default: @echo "=> Linting default values.yaml" helm lint --strict @echo "=> Validating default value.yaml" - helm template . | kubeval --strict --additional-schema-locations https://raw.githubusercontent.com/cw-ozaki/kubernetes-json-schema/master/ --kubernetes-version $(KUBERNETES_VERSION) --exit-on-error + helm template . | kubeval --strict --ignore-missing-schemas --additional-schema-locations https://raw.githubusercontent.com/cw-ozaki/kubernetes-json-schema/master/ --kubernetes-version $(KUBERNETES_VERSION) --exit-on-error @echo "" .PHONY: test diff --git a/elasticsearch/Makefile b/elasticsearch/Makefile index 7f162411..00d94ca4 100644 --- a/elasticsearch/Makefile +++ b/elasticsearch/Makefile @@ -15,7 +15,7 @@ lint-default: @echo "=> Linting default values.yaml" helm lint --strict @echo "=> Validating default value.yaml" - helm template . | kubeval --strict --additional-schema-locations https://raw.githubusercontent.com/cw-ozaki/kubernetes-json-schema/master/ --kubernetes-version $(KUBERNETES_VERSION) --exit-on-error + helm template . | kubeval --strict --ignore-missing-schemas --additional-schema-locations https://raw.githubusercontent.com/cw-ozaki/kubernetes-json-schema/master/ --kubernetes-version $(KUBERNETES_VERSION) --exit-on-error @echo "" .PHONY: test diff --git a/example/Makefile b/example/Makefile index 7f162411..00d94ca4 100644 --- a/example/Makefile +++ b/example/Makefile @@ -15,7 +15,7 @@ lint-default: @echo "=> Linting default values.yaml" helm lint --strict @echo "=> Validating default value.yaml" - helm template . | kubeval --strict --additional-schema-locations https://raw.githubusercontent.com/cw-ozaki/kubernetes-json-schema/master/ --kubernetes-version $(KUBERNETES_VERSION) --exit-on-error + helm template . | kubeval --strict --ignore-missing-schemas --additional-schema-locations https://raw.githubusercontent.com/cw-ozaki/kubernetes-json-schema/master/ --kubernetes-version $(KUBERNETES_VERSION) --exit-on-error @echo "" .PHONY: test diff --git a/fluent-bit/Makefile b/fluent-bit/Makefile index 7f162411..00d94ca4 100644 --- a/fluent-bit/Makefile +++ b/fluent-bit/Makefile @@ -15,7 +15,7 @@ lint-default: @echo "=> Linting default values.yaml" helm lint --strict @echo "=> Validating default value.yaml" - helm template . | kubeval --strict --additional-schema-locations https://raw.githubusercontent.com/cw-ozaki/kubernetes-json-schema/master/ --kubernetes-version $(KUBERNETES_VERSION) --exit-on-error + helm template . | kubeval --strict --ignore-missing-schemas --additional-schema-locations https://raw.githubusercontent.com/cw-ozaki/kubernetes-json-schema/master/ --kubernetes-version $(KUBERNETES_VERSION) --exit-on-error @echo "" .PHONY: test diff --git a/fluentd/Makefile b/fluentd/Makefile index eca6392e..399f0493 100644 --- a/fluentd/Makefile +++ b/fluentd/Makefile @@ -15,7 +15,7 @@ lint-default: @echo "=> Linting default values.yaml" helm lint --strict @echo "=> Validating default value.yaml" - helm template . | kubeval --strict --additional-schema-locations https://raw.githubusercontent.com/cw-ozaki/kubernetes-json-schema/master/ --kubernetes-version $(KUBERNETES_VERSION) --exit-on-error + helm template . | kubeval --strict --ignore-missing-schemas --additional-schema-locations https://raw.githubusercontent.com/cw-ozaki/kubernetes-json-schema/master/ --kubernetes-version $(KUBERNETES_VERSION) --exit-on-error @echo "" .PHONY: lint-daemonset @@ -23,21 +23,21 @@ lint-daemonset: @echo "=> Linting examples/daemonset.yaml" helm lint --strict -f examples/daemonset.yaml @echo "=> Validating examples/daemonset.yaml" - helm template -f examples/daemonset.yaml . | kubeval --strict --additional-schema-locations https://raw.githubusercontent.com/cw-ozaki/kubernetes-json-schema/master/ --kubernetes-version $(KUBERNETES_VERSION) --exit-on-error + helm template -f examples/daemonset.yaml . | kubeval --strict --ignore-missing-schemas --additional-schema-locations https://raw.githubusercontent.com/cw-ozaki/kubernetes-json-schema/master/ --kubernetes-version $(KUBERNETES_VERSION) --exit-on-error .PHONY: lint-statefulset lint-statefulset: @echo "=> Linting examples/statefulset.yaml" helm lint --strict -f examples/statefulset.yaml @echo "=> Validating examples/statefulset.yaml" - helm template -f examples/statefulset.yaml . | kubeval --strict --additional-schema-locations https://raw.githubusercontent.com/cw-ozaki/kubernetes-json-schema/master/ --kubernetes-version $(KUBERNETES_VERSION) --exit-on-error + helm template -f examples/statefulset.yaml . | kubeval --strict --ignore-missing-schemas --additional-schema-locations https://raw.githubusercontent.com/cw-ozaki/kubernetes-json-schema/master/ --kubernetes-version $(KUBERNETES_VERSION) --exit-on-error .PHONY: lint-use-udp lint-use-udp: @echo "=> Linting examples/use-udp.yaml" helm lint --strict -f examples/use-udp.yaml @echo "=> Validating examples/use-udp.yaml" - helm template -f examples/use-udp.yaml . | kubeval --strict --additional-schema-locations https://raw.githubusercontent.com/cw-ozaki/kubernetes-json-schema/master/ --kubernetes-version $(KUBERNETES_VERSION) --exit-on-error + helm template -f examples/use-udp.yaml . | kubeval --strict --ignore-missing-schemas --additional-schema-locations https://raw.githubusercontent.com/cw-ozaki/kubernetes-json-schema/master/ --kubernetes-version $(KUBERNETES_VERSION) --exit-on-error .PHONY: test test: test-daemonset test-statefulset test-use-udp test-default diff --git a/gcp-credentials/Makefile b/gcp-credentials/Makefile index 543804f3..1ecccb65 100644 --- a/gcp-credentials/Makefile +++ b/gcp-credentials/Makefile @@ -15,7 +15,7 @@ lint-default: @echo "=> Linting default values.yaml" helm lint --strict @echo "=> Validating default value.yaml" - helm template . | kubeval --strict --additional-schema-locations https://raw.githubusercontent.com/cw-ozaki/kubernetes-json-schema/master/ --kubernetes-version $(KUBERNETES_VERSION) --exit-on-error + helm template . | kubeval --strict --ignore-missing-schemas --additional-schema-locations https://raw.githubusercontent.com/cw-ozaki/kubernetes-json-schema/master/ --kubernetes-version $(KUBERNETES_VERSION) --exit-on-error @echo "" .PHONY: test diff --git a/kube-schedule-scaler/Makefile b/kube-schedule-scaler/Makefile index 543804f3..1ecccb65 100644 --- a/kube-schedule-scaler/Makefile +++ b/kube-schedule-scaler/Makefile @@ -15,7 +15,7 @@ lint-default: @echo "=> Linting default values.yaml" helm lint --strict @echo "=> Validating default value.yaml" - helm template . | kubeval --strict --additional-schema-locations https://raw.githubusercontent.com/cw-ozaki/kubernetes-json-schema/master/ --kubernetes-version $(KUBERNETES_VERSION) --exit-on-error + helm template . | kubeval --strict --ignore-missing-schemas --additional-schema-locations https://raw.githubusercontent.com/cw-ozaki/kubernetes-json-schema/master/ --kubernetes-version $(KUBERNETES_VERSION) --exit-on-error @echo "" .PHONY: test diff --git a/mailcatcher/Makefile b/mailcatcher/Makefile index ed19fe27..261aae67 100644 --- a/mailcatcher/Makefile +++ b/mailcatcher/Makefile @@ -15,7 +15,7 @@ lint-default: @echo "=> Linting default values.yaml" helm lint --strict @echo "=> Validating default value.yaml" - helm template . | kubeval --strict --additional-schema-locations https://raw.githubusercontent.com/cw-ozaki/kubernetes-json-schema/master/ --kubernetes-version $(KUBERNETES_VERSION) --exit-on-error + helm template . | kubeval --strict --ignore-missing-schemas --additional-schema-locations https://raw.githubusercontent.com/cw-ozaki/kubernetes-json-schema/master/ --kubernetes-version $(KUBERNETES_VERSION) --exit-on-error @echo "" .PHONY: test diff --git a/newrelic-php-agent/Makefile b/newrelic-php-agent/Makefile index 7f162411..00d94ca4 100644 --- a/newrelic-php-agent/Makefile +++ b/newrelic-php-agent/Makefile @@ -15,7 +15,7 @@ lint-default: @echo "=> Linting default values.yaml" helm lint --strict @echo "=> Validating default value.yaml" - helm template . | kubeval --strict --additional-schema-locations https://raw.githubusercontent.com/cw-ozaki/kubernetes-json-schema/master/ --kubernetes-version $(KUBERNETES_VERSION) --exit-on-error + helm template . | kubeval --strict --ignore-missing-schemas --additional-schema-locations https://raw.githubusercontent.com/cw-ozaki/kubernetes-json-schema/master/ --kubernetes-version $(KUBERNETES_VERSION) --exit-on-error @echo "" .PHONY: test diff --git a/php/Makefile b/php/Makefile index 68d9b644..ab2d6165 100644 --- a/php/Makefile +++ b/php/Makefile @@ -15,7 +15,7 @@ lint-default: @echo "=> Linting default values.yaml" helm lint --strict @echo "=> Validating default value.yaml" - helm template . | kubeval --strict --additional-schema-locations https://raw.githubusercontent.com/cw-ozaki/kubernetes-json-schema/master/ --kubernetes-version $(KUBERNETES_VERSION) --exit-on-error + helm template . | kubeval --strict --ignore-missing-schemas --additional-schema-locations https://raw.githubusercontent.com/cw-ozaki/kubernetes-json-schema/master/ --kubernetes-version $(KUBERNETES_VERSION) --exit-on-error @echo "" .PHONY: test diff --git a/postfix/Makefile b/postfix/Makefile index 6d6111dc..164aedb8 100644 --- a/postfix/Makefile +++ b/postfix/Makefile @@ -18,7 +18,7 @@ lint-daemonset: @echo "=> Linting default values.yaml" helm lint --strict @echo "=> Validating default value.yaml" - helm template . | kubeval --strict --additional-schema-locations https://raw.githubusercontent.com/cw-ozaki/kubernetes-json-schema/master/ --kubernetes-version $(KUBERNETES_VERSION) --exit-on-error + helm template . | kubeval --strict --ignore-missing-schemas --additional-schema-locations https://raw.githubusercontent.com/cw-ozaki/kubernetes-json-schema/master/ --kubernetes-version $(KUBERNETES_VERSION) --exit-on-error @echo "" .PHONY: lint-daemonset-mailcatcher @@ -26,7 +26,7 @@ lint-daemonset-mailcatcher: @echo "=> Linting default values.yaml" helm lint $(mailcatcher) --strict @echo "=> Validating default value.yaml" - helm template $(mailcatcher) . | kubeval --strict --additional-schema-locations https://raw.githubusercontent.com/cw-ozaki/kubernetes-json-schema/master/ --kubernetes-version $(KUBERNETES_VERSION) --exit-on-error + helm template $(mailcatcher) . | kubeval --strict --ignore-missing-schemas --additional-schema-locations https://raw.githubusercontent.com/cw-ozaki/kubernetes-json-schema/master/ --kubernetes-version $(KUBERNETES_VERSION) --exit-on-error @echo "" .PHONY: lint-deployment @@ -34,7 +34,7 @@ lint-deployment: @echo "=> Linting default values.yaml" helm lint --set deployment.enabled=true --set daemonset.enabled=false --set deployment.podDisruptionBudget.enabled=true --set deployment.service.type=ClusterIP --strict @echo "=> Validating default value.yaml" - helm template --set deployment.enabled=true --set daemonset.enabled=false --set deployment.podDisruptionBudget.enabled=true --set deployment.service.type=ClusterIP . | kubeval --strict --additional-schema-locations https://raw.githubusercontent.com/cw-ozaki/kubernetes-json-schema/master/ --kubernetes-version $(KUBERNETES_VERSION) --exit-on-error + helm template --set deployment.enabled=true --set daemonset.enabled=false --set deployment.podDisruptionBudget.enabled=true --set deployment.service.type=ClusterIP . | kubeval --strict --ignore-missing-schemas --additional-schema-locations https://raw.githubusercontent.com/cw-ozaki/kubernetes-json-schema/master/ --kubernetes-version $(KUBERNETES_VERSION) --exit-on-error @echo "" .PHONY: lint-deployment-mailcatcher @@ -42,7 +42,7 @@ lint-deployment-mailcatcher: @echo "=> Linting default values.yaml" helm lint --set deployment.enabled=true --set daemonset.enabled=false $(mailcatcher) --set deployment.podDisruptionBudget.enabled=true --set deployment.service.type=ClusterIP --strict @echo "=> Validating default value.yaml" - helm template --set deployment.enabled=true --set daemonset.enabled=false $(mailcatcher) --set deployment.podDisruptionBudget.enabled=true --set deployment.service.type=ClusterIP . | kubeval --strict --additional-schema-locations https://raw.githubusercontent.com/cw-ozaki/kubernetes-json-schema/master/ --kubernetes-version $(KUBERNETES_VERSION) --exit-on-error + helm template --set deployment.enabled=true --set daemonset.enabled=false $(mailcatcher) --set deployment.podDisruptionBudget.enabled=true --set deployment.service.type=ClusterIP . | kubeval --strict --ignore-missing-schemas --additional-schema-locations https://raw.githubusercontent.com/cw-ozaki/kubernetes-json-schema/master/ --kubernetes-version $(KUBERNETES_VERSION) --exit-on-error @echo "" .PHONY: test diff --git a/raw/Makefile b/raw/Makefile index cf138185..e3b5d07e 100644 --- a/raw/Makefile +++ b/raw/Makefile @@ -15,7 +15,7 @@ lint-default: @echo "=> Linting default values.yaml" helm lint --strict @echo "=> Validating default value.yaml" - helm template . | kubeval --strict --additional-schema-locations https://raw.githubusercontent.com/cw-ozaki/kubernetes-json-schema/master/ --kubernetes-version $(KUBERNETES_VERSION) --exit-on-error + helm template . | kubeval --strict --ignore-missing-schemas --additional-schema-locations https://raw.githubusercontent.com/cw-ozaki/kubernetes-json-schema/master/ --kubernetes-version $(KUBERNETES_VERSION) --exit-on-error @echo "" .PHONY: test diff --git a/regcred/Makefile b/regcred/Makefile index 543804f3..1ecccb65 100644 --- a/regcred/Makefile +++ b/regcred/Makefile @@ -15,7 +15,7 @@ lint-default: @echo "=> Linting default values.yaml" helm lint --strict @echo "=> Validating default value.yaml" - helm template . | kubeval --strict --additional-schema-locations https://raw.githubusercontent.com/cw-ozaki/kubernetes-json-schema/master/ --kubernetes-version $(KUBERNETES_VERSION) --exit-on-error + helm template . | kubeval --strict --ignore-missing-schemas --additional-schema-locations https://raw.githubusercontent.com/cw-ozaki/kubernetes-json-schema/master/ --kubernetes-version $(KUBERNETES_VERSION) --exit-on-error @echo "" .PHONY: test diff --git a/slime/Makefile b/slime/Makefile index d8b48815..c70b866c 100644 --- a/slime/Makefile +++ b/slime/Makefile @@ -47,7 +47,7 @@ lint-default: --set 'deployment.enabled=true' \ --set 'deployment.pod.container[0].image=k8s.gcr.io/pause:latest' \ --set 'deployment.pod.container[0].name=pause' \ - . | kubeval --strict --additional-schema-locations https://raw.githubusercontent.com/cw-ozaki/kubernetes-json-schema/master/ --kubernetes-version $(KUBERNETES_VERSION) --exit-on-error + . | kubeval --strict --ignore-missing-schemas --additional-schema-locations https://raw.githubusercontent.com/cw-ozaki/kubernetes-json-schema/master/ --kubernetes-version $(KUBERNETES_VERSION) --exit-on-error @echo "" .PHONY: test diff --git a/twistlock-console/Makefile b/twistlock-console/Makefile index 3f772471..113c9735 100644 --- a/twistlock-console/Makefile +++ b/twistlock-console/Makefile @@ -15,7 +15,7 @@ lint-default: @echo "=> Linting default values.yaml" helm lint --strict @echo "=> Validating default value.yaml" - helm template . | kubeval --strict --additional-schema-locations https://raw.githubusercontent.com/cw-ozaki/kubernetes-json-schema/master/ --kubernetes-version $(KUBERNETES_VERSION) --exit-on-error + helm template . | kubeval --strict --ignore-missing-schemas --additional-schema-locations https://raw.githubusercontent.com/cw-ozaki/kubernetes-json-schema/master/ --kubernetes-version $(KUBERNETES_VERSION) --exit-on-error @echo "" .PHONY: test diff --git a/twistlock-defender/Makefile b/twistlock-defender/Makefile index 3f772471..113c9735 100644 --- a/twistlock-defender/Makefile +++ b/twistlock-defender/Makefile @@ -15,7 +15,7 @@ lint-default: @echo "=> Linting default values.yaml" helm lint --strict @echo "=> Validating default value.yaml" - helm template . | kubeval --strict --additional-schema-locations https://raw.githubusercontent.com/cw-ozaki/kubernetes-json-schema/master/ --kubernetes-version $(KUBERNETES_VERSION) --exit-on-error + helm template . | kubeval --strict --ignore-missing-schemas --additional-schema-locations https://raw.githubusercontent.com/cw-ozaki/kubernetes-json-schema/master/ --kubernetes-version $(KUBERNETES_VERSION) --exit-on-error @echo "" .PHONY: test