import { Kube } from './types' ; export default function makeKube ( json ) { const { name } = json ; const labels = json . labels || [ ] ; return { name , tags : labels . map ( label => `${ label . name }: ${ label . value }` ) , } ; }