mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-11 17:12:51 +00:00
@@ -139,16 +139,16 @@ type NameMeta struct {
|
|||||||
type ResourceMeta struct {
|
type ResourceMeta struct {
|
||||||
TypeMeta `json:",inline" yaml:",inline"`
|
TypeMeta `json:",inline" yaml:",inline"`
|
||||||
// ObjectMeta is the metadata field of a Resource
|
// 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
|
// ObjectMeta contains metadata about a Resource
|
||||||
type ObjectMeta struct {
|
type ObjectMeta struct {
|
||||||
NameMeta `json:",inline" yaml:",inline"`
|
NameMeta `json:",inline" yaml:",inline"`
|
||||||
// Labels is the metadata.labels field of a Resource
|
// 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 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
|
// GetIdentifier returns a ResourceIdentifier that includes
|
||||||
|
|||||||
Reference in New Issue
Block a user