UNCLASSIFIED - NO CUI

Skip to content

Fix for MR creation when duplicate git tags exist

Discovered with https://repo1.dso.mil/platform-one/big-bang/bigbang/-/merge_requests/2201/diffs?commit_id=9c7e5700f05ee124491cf490caf7b04db53bb788 - the current patch can be problematic if the patched value is in multiple spots. For example in the linked example both minio and minioOperator had the same git tag value. Since minioOperator appeared higher in the values file it was targetted by the patch.

Changing around the way we handle the patch should solve this. Rather than patching our original values file to change the git tag, we can use yq to change the git tag, then patch the values file to add the blank lines that were stripped.

Edited by Micah Nagel

Merge request reports

Loading