1
0
mirror of https://github.com/rancher/types.git synced 2025-09-15 22:39:05 +00:00

Update ToInternal

This commit is contained in:
Darren Shepherd
2018-06-04 21:44:54 -07:00
parent 7c20e28b3c
commit 986f420630
19 changed files with 62 additions and 32 deletions

View File

@@ -24,7 +24,7 @@ func (e InitContainerMapper) FromInternal(data map[string]interface{}) {
}
}
func (e InitContainerMapper) ToInternal(data map[string]interface{}) {
func (e InitContainerMapper) ToInternal(data map[string]interface{}) error {
var newContainers []interface{}
var newInitContainers []interface{}
@@ -41,6 +41,8 @@ func (e InitContainerMapper) ToInternal(data map[string]interface{}) {
data["containers"] = newContainers
data["initContainers"] = newInitContainers
}
return nil
}
func (e InitContainerMapper) ModifySchema(schema *types.Schema, schemas *types.Schemas) error {