Update matchStrings regex be allow matching ci/cd input defaults
-
Please check this box if this contribution uses AI-generated content (including content generated by GitLab Duo features) as outlined in the GitLab DCO & CLA. As a benefit of being a GitLab Community Contributor, you receive complimentary access to GitLab Duo.
What does this MR do and why?
this mr updates the default renovate config so that it the component and opentofu version will be recognized, even if there is no explicit version: or opentofu_version: prefix in front of it
this change is useful, since users may have versions defined in gitlab inputs; e.g.:
spec:
inputs:
component_version:
description: "Opentofu Gitlab CI/CD Component version"
default: 1.1.0 # component version
opentofu_version:
description: "OpenTofu version"
default: "1.9.0" # opentofu version
once merged, this scenario will be covered as well
other changes
- updates the original
matchStringsregex for the opentofu version so that it properly match unquoted versions (like thematchStringsregex for the opentofu component does)- in the previous implementation, an exception for matching whitespaces in the
currentValuegroup was missing
- in the previous implementation, an exception for matching whitespaces in the
note:
- this change was implemented in such a way, that it wont break existing configurations
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
How to set up and validate locally
-
run a renovate pipeline with the adjusted configuration and see it recognizes the new prefix
Edited by Alexander Weichart