HCL Connections Componentpack – install/upgrade – tiny shortcut

Posted by

If you have to install or upgrade the component pack, you always need to get the latest version of the Helm charts.

For example for bootstrap.
I prefer to have a small shell script for each component which stores the command for the installation. Here’s my bootstrap.sh file:

#!/bin/sh
chart="bootstrap"
VERSION=$(helm show all oci://hclcr.io/cnx/$chart --devel | grep "version:" | awk -F '[/:]' '{print $2}' | sed 's/^\s*\|\s*$//g' | tail -n 1)
echo "$VERSION"
helm upgrade $chart oci://hclcr.io/cnx/$chart -i --version $VERSION --namespace connections -f $chart.yml --wait
timeout 60 watch kubectl -n connections get pods
Running this for installation or upgrades, I don’t have to copy&paste the version number.