Javascript – Using Nodejs to parse kubectl output "TypeError: item.spec.map is not a function"
Using nodejs trying to parse attribute value(number of replicas) by running child_process kubectl deployment json output Can you please suggest what I am doing wrong?? ** Error: var deploymentInfo = item.spec.map((c) => { return { replicas: c.replicas} }); ^ TypeError:…