Fix govet in pkg/kubectl/apply

This commit is contained in:
Antoine Pelisse
2017-10-23 14:07:01 -07:00
parent 067f2db355
commit 5fa8702af4
6 changed files with 41 additions and 8 deletions

View File

@@ -21,5 +21,8 @@ import "k8s.io/kubernetes/pkg/kubectl/apply"
// primitiveElement builds a new primitiveElement from a PrimitiveItem
func (v ElementBuildingVisitor) primitiveElement(item *primitiveItem) (*apply.PrimitiveElement, error) {
meta := apply.FieldMetaImpl{Name: item.Name}
return &apply.PrimitiveElement{meta, item.RawElementData}, nil
return &apply.PrimitiveElement{
FieldMetaImpl: meta,
RawElementData: item.RawElementData,
}, nil
}