mirror of https://github.com/helm/helm
Usage: `helm lint --api-versions []string` Signed-off-by: Antonio Muñiz <amunizmartin@gmail.com>pull/10463/head
parent
8ca401398d
commit
519d8b96b4
@ -0,0 +1,5 @@
|
|||||||
|
==> Linting testdata/testcharts/chart-with-api-versions
|
||||||
|
[INFO] Chart.yaml: icon is recommended
|
||||||
|
[INFO] values.yaml: file does not exist
|
||||||
|
|
||||||
|
1 chart(s) linted, 0 chart(s) failed
|
@ -0,0 +1,7 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
description: Empty testing chart
|
||||||
|
home: https://k8s.io/helm
|
||||||
|
name: empty
|
||||||
|
sources:
|
||||||
|
- https://github.com/kubernetes/helm
|
||||||
|
version: 0.1.0
|
@ -0,0 +1,3 @@
|
|||||||
|
{{- if not (.Capabilities.APIVersions.Has "networking.k8s.io/v1") }}
|
||||||
|
{{ fail "ERROR: APIVersion networking.k8s.io/v1 not found" }}
|
||||||
|
{{- end -}}
|
Loading…
Reference in new issue