mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-29 22:46:12 +00:00
Add missing json tag on internal unstructured list
This commit is contained in:
parent
55e1d2f9a7
commit
fd64f8d7ef
@ -382,7 +382,7 @@ func (unstructuredJSONScheme) Identifier() runtime.Identifier {
|
||||
|
||||
func (s unstructuredJSONScheme) decode(data []byte) (runtime.Object, error) {
|
||||
type detector struct {
|
||||
Items gojson.RawMessage
|
||||
Items gojson.RawMessage `json:"items"`
|
||||
}
|
||||
var det detector
|
||||
if err := json.Unmarshal(data, &det); err != nil {
|
||||
@ -425,7 +425,7 @@ func (unstructuredJSONScheme) decodeToUnstructured(data []byte, unstruct *Unstru
|
||||
|
||||
func (s unstructuredJSONScheme) decodeToList(data []byte, list *UnstructuredList) error {
|
||||
type decodeList struct {
|
||||
Items []gojson.RawMessage
|
||||
Items []gojson.RawMessage `json:"items"`
|
||||
}
|
||||
|
||||
var dList decodeList
|
||||
|
Loading…
Reference in New Issue
Block a user