mammoth-honey-6147
06/15/2021, 5:06 PMvar k3sNodeList []*ec2.Instance
in ctx.export
? It appears just iterating through the array elements in a loop and using ctx.export
only prints out the last in the array.billowy-army-68599
06/15/2021, 5:18 PMctx.export
the whole slice if neededmammoth-honey-6147
06/15/2021, 5:41 PMvar k3sNodeList []*ec2.Instance
Followed by:
for k,v := range k3sNodeList{
ctx.export("ip", v.PublicIP)
}
billowy-army-68599
06/15/2021, 5:48 PMagreeable-restaurant-12233
06/15/2021, 7:39 PMvar k3sNodeList []*ec2.Instance
Followed by:
for k,v := range k3sNodeList{
ctx.export("ip"+strconv.Itoa(k), v.PublicIP)
}
mammoth-honey-6147
06/16/2021, 7:56 AMstocky-spoon-28903
06/23/2021, 3:08 PM