Kubectl-ice v0.2.8 has just been released, this release adds support for reading from yaml files along with reading from stdin, it also adds the –column flag which allows you to specify which columns should be shown in the output.

First lets talk about the -f flag, I added it initially as it helped when testing new ideas but quickly realised it could be beneficial to others when I started exploring the image and capabilities commands. I actually found it really cool to be able to read a list of image names from yaml files without having to resort to opening the file or using grep to get the image list. With that in place it was a no-brainer to to add the ability to read piped data so it could be used with helm

which then allows things like this:

helm template mychart | kubectl-ice image
helm get manifest mychart | kubectl-ice image

Currently I envision this as more of a safety check in a pipeline or maybe even used in a reporting process to list the ports or images used, when combined with the column flag below it has the potential to be very powerful and useful but only time will tell…

Next up is the --columns flag, which when specified this flag accept a comma separated list of column names to show, the advantage here is only those specified columns are shown in the table output and you can specify any valid column even those that are hidden by default, given the image command you could create something like

kubectl-ice image --columns podname,image,imageid

would show a list of pod names with the image name and along with the sha of the image the only down side of this is that the column order is set but the program and now the user so you have no control over the column order.

That’s me for now and I hope this has been useful.

NimbleArchitect