UNCLASSIFIED - NO CUI

Skip to content

Upgrade job running at inappropriate times

The upgrade job is running even when deploying the same version and it shouldn't. Seems like it's also mistargeting pvcs binding incorrectly when it starts back up.

Phillip Warner

Good morning. The semverCompare does not appear to be working correctly https://repo1.dso.mil/big-bang/product/packages/twistlock/-/blob/main/chart/templates/bigbang/upgrade-job.yaml#L13

I have been noticing that the job is always running even when redeploying the same version. We have had some issues with pvcs binding to the wrong PV and having to manually fix it

--

Andrew Shoell

yeah, it's likely the pre-release comparisons having issues - https://helm.sh/docs/chart_template_guide/function_list/#working-with-prerelease-versions

i mean theoretically it should work given those - https://semver.org/#spec-item-9

i'll get a bug open for this

--

Phillip Warner

thank you. For now, I think I am going to disable the autorollingupgrade in all of our environments

--

Andrew Shoell

or it could potentially be failing to find the current version, because then it would always run

yeah that's a good idea

Edited by Andrew Shoell