Setting Kubernetes.CustomKubectlExecutable value during the deployment

(Monika Kelpšaitė) #1

Hello,

I have an issue of setting Kubernetes.CustomKubectlExecutable value.

I would like to have several kubectl versions on Octopus server machine and I see from https://github.com/OctopusDeploy/Calamari/blob/master/source/Calamari/Kubernetes/Scripts/KubectlPowershellContext.ps1 code line #7 that I can use variable to set custom kubectl executable name (e.g. “kubectl_1.12.5”). The problem is that I did not find a way to do it, I wanted to set during Kubernetes Target creation (doing it on a fly via PowerShell script).

Any suggestion/thoughts would be appreciated.
Thanks,
Monika