mirror of https://github.com/helm/helm
Fixes #31571 The YAML decoder can return nil when a CRD file contains only comments or whitespace. Added nil check to skip validation in these cases. This fixes a panic in the CRD linting rule. Signed-off-by: Evans Mungai <mbuevans@gmail.com>pull/31572/head
parent
00e12b8477
commit
e252572bda
@ -0,0 +1,4 @@
|
||||
apiVersion: v2
|
||||
name: emptycrd
|
||||
description: A Helm chart with empty CRD file
|
||||
version: 0.1.0
|
||||
@ -0,0 +1,3 @@
|
||||
# This file contains only comments and whitespace
|
||||
# It will decode to nil in the YAML decoder
|
||||
|
||||
@ -0,0 +1 @@
|
||||
# Empty values file
|
||||
Loading…
Reference in new issue