func writeVolumeMount(m map[string]interface{}, item *api.VolumeMount) {
	if x, ok := m["name"].(string); ok {
		item.Name = x
	}
	if x, ok := m["read_only"].(bool); ok {
		item.ReadOnly = x
	}
	if x, ok := m["mount_path"].(string); ok {
		item.MountPath = x
	}
}
示例#2
0
func deepCopy_api_VolumeMount(in api.VolumeMount, out *api.VolumeMount, c *conversion.Cloner) error {
	out.Name = in.Name
	out.ReadOnly = in.ReadOnly
	out.MountPath = in.MountPath
	return nil
}