mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-20 02:11:09 +00:00
log name of mising field, not path
This commit is contained in:
parent
636c259474
commit
180c312f31
@ -43,7 +43,7 @@ Takes dictionary as argument with keys:
|
||||
{{- with include "output" (set $ "schema" .) -}}
|
||||
{{- . -}}
|
||||
{{- else -}}
|
||||
error: field "{{$.FieldPath}}" does not exist
|
||||
error: field "{{index $.FieldPath (sub (len $.FieldPath) 1)}}" does not exist
|
||||
{{- end -}}
|
||||
{{- break -}}
|
||||
{{- end -}}
|
||||
|
@ -336,7 +336,7 @@ func TestPlaintext(t *testing.T) {
|
||||
},
|
||||
{
|
||||
// Shows that the typeguess puts Object tpye in title case
|
||||
Name: "ArrayUnknown",
|
||||
Name: "ObjectTitle",
|
||||
Subtemplate: "typeGuess",
|
||||
Context: map[string]any{
|
||||
"schema": map[string]any{
|
||||
|
Loading…
Reference in New Issue
Block a user