You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It looks like there is inconsistency in how AutoCreateServiceAccountTokenSecret is handled in install-calico-windows.ps1 script
According to params it should be string, at least it gets default value of 'yes'
should be threaded differently, according to parameter value
Current Behavior
Currently there is no difference between Yes or Now, because code checks parameter as boolean, so it always evaluate true.
One can set parameter to $true or $false, and then it works as expected
Thanks @p-v-a for spotting this! It definitely is inconsistent at best, we'll fix this. As a side note, Calico v3.27.0 is releasing soon, and will make Calico for Windows installation and operations much easier, getting rid of the install-calico-windows.ps1 script. We'll fix the script as it will still be supported for a while, but just a heads up that it will be deprecated in the future. Stay tuned and check it out when it releases!
It looks like there is inconsistency in how AutoCreateServiceAccountTokenSecret is handled in install-calico-windows.ps1 script
According to params it should be string, at least it gets default value of 'yes'
Later in the code it gets checked as boolean
Expected Behavior
and
should be threaded differently, according to parameter value
Current Behavior
Currently there is no difference between Yes or Now, because code checks parameter as boolean, so it always evaluate true.
One can set parameter to $true or $false, and then it works as expected
Possible Solution
Solution would be to treat parameter same way as DownloadOnly is threaded
Steps to Reproduce (for bugs)
Commands in Expected Behaviour reproduces bug reliably.
Your Environment
The text was updated successfully, but these errors were encountered: