From 02d14d724aa6ca3b3c7c7ba19f956c69ef0acb7f Mon Sep 17 00:00:00 2001 From: Mengqi Yu Date: Wed, 30 Jun 2021 12:15:50 -0700 Subject: [PATCH] add missing json tags --- kyaml/yaml/types.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kyaml/yaml/types.go b/kyaml/yaml/types.go index c4e06a578..5fbbba1b0 100644 --- a/kyaml/yaml/types.go +++ b/kyaml/yaml/types.go @@ -139,16 +139,16 @@ type NameMeta struct { type ResourceMeta struct { TypeMeta `json:",inline" yaml:",inline"` // ObjectMeta is the metadata field of a Resource - ObjectMeta `yaml:"metadata,omitempty"` + ObjectMeta `json:"metadata,omitempty" yaml:"metadata,omitempty"` } // ObjectMeta contains metadata about a Resource type ObjectMeta struct { NameMeta `json:",inline" yaml:",inline"` // Labels is the metadata.labels field of a Resource - Labels map[string]string `yaml:"labels,omitempty"` + Labels map[string]string `json:"labels,omitempty" yaml:"labels,omitempty"` // Annotations is the metadata.annotations field of a Resource. - Annotations map[string]string `yaml:"annotations,omitempty"` + Annotations map[string]string `json:"annotations,omitempty" yaml:"annotations,omitempty"` } // GetIdentifier returns a ResourceIdentifier that includes