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