Add metadata field to kustomization file

This commit is contained in:
Donny Xia
2020-10-05 11:20:41 -07:00
parent 460c54064c
commit e695b0534d
4 changed files with 84 additions and 3 deletions

View File

@@ -22,6 +22,9 @@ const (
type Kustomization struct {
TypeMeta `json:",inline" yaml:",inline"`
// MetaData is a pointer to avoid marshalling empty struct
MetaData *ObjectMeta `json:"metadata,omitempty" yaml:"metadata,omitempty"`
//
// Operators - what kustomize can do.
//