mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-21 02:41:25 +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" .) -}}
|
{{- with include "output" (set $ "schema" .) -}}
|
||||||
{{- . -}}
|
{{- . -}}
|
||||||
{{- else -}}
|
{{- else -}}
|
||||||
error: field "{{$.FieldPath}}" does not exist
|
error: field "{{index $.FieldPath (sub (len $.FieldPath) 1)}}" does not exist
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- break -}}
|
{{- break -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
@ -336,7 +336,7 @@ func TestPlaintext(t *testing.T) {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
// Shows that the typeguess puts Object tpye in title case
|
// Shows that the typeguess puts Object tpye in title case
|
||||||
Name: "ArrayUnknown",
|
Name: "ObjectTitle",
|
||||||
Subtemplate: "typeGuess",
|
Subtemplate: "typeGuess",
|
||||||
Context: map[string]any{
|
Context: map[string]any{
|
||||||
"schema": map[string]any{
|
"schema": map[string]any{
|
||||||
|
Loading…
Reference in New Issue
Block a user