Getting a raw kURL installer CR from a URL / ID / Slug


#1

Sometimes it can be helpful to review the existing kURL installer for an application channel as raw YAML. As you may know, a kURL installer implies the existence of three different URLs, e.g. for the installer latest, there will exist

You can use this same pattern with SHA-based installers generated from kurl.sh, or with an application slug from vendor.replicated.com – e.g.


#2

To view the kurl spec as a yaml document, you can run this:

curl -sSL https://kurl.sh/latest | sed -e/INSTALLER_YAML/\{ -e:1 -en\;b1 -e\} -ed | sed -n '/ADDONS_HAVE_HOST_COMPONENTS/q;p'

to extract the installer yaml from the install script itself.