Update CNG release version string method to fix prefix
What does this MR do and why?
Fixes an issue where we are getting a double v
prefix on the kas version in https://gitlab.com/gitlab-org/build/CNG/-/blob/bbae69dc1fb0b060657799a00b36ebb44588fc2c/ci_files/variables.yml#L16
- Don't append 'v' to versions that already have it
- Match the semver check used in the component versions file https://gitlab.com/gitlab-org/release-tools/-/blob/416eb414a0c80b81bbc805bdba8922cfa9022fbf/lib/release_tools/component_versions.rb#L63
A v
was added to the KAS version file when kas was added to the renovate bot dependencies in gitlab-org/frontend/renovate-gitlab-bot!617 (merged)
There was a check to see what this impact would be in gitlab!111539 (comment 1273136621) but we missed this.
Author Check-list
-
Has documentation been updated?