blob: 854fbea310caaac5a7eaed91653640d6f13f9115 [file] [log] [blame]
# TODO: error message could be improved.
! cue import test.yaml -p kube -l 'strings.ToCamel(kind)' -l metadata.name -f
cmp stderr expect-stderr
-- test.yaml --
apiVersion: v1
kind: Service
metadata:
name: ingress-nginx
spec:
type: NodePort
---
# EMPTY FILE
-- expect-stderr --
error evaluating label strings.ToCamel(kind): reference "kind" not found