From 29fa8d7d20f8d8f098d16c500811731d26d0bbda Mon Sep 17 00:00:00 2001 From: Olivier ORAND Date: Wed, 27 Dec 2023 10:02:02 +0000 Subject: [PATCH] chore(renovate): polish kubectl Try to override depName label for kubectl. As we use kubernetes as source to detect version, we need to rename it. --- renovate.json5 | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/renovate.json5 b/renovate.json5 index 236cac2e..c93674ba 100644 --- a/renovate.json5 +++ b/renovate.json5 @@ -36,10 +36,11 @@ 'k3s-io/k3s', ], separateMinorPatch: true, - versioning: "semver" -// separateMultipleMinor: true, // Pending merge of https://github.com/renovatebot/renovate/pull/24538 to be effective + versioning: "semver", + //separateMultipleMinor: true, // Pending merge of https://github.com/renovatebot/renovate/pull/24538 to be effective }, { + description: "Add common labels", matchDepPatterns: ["*"], addLabels: [ // See full list of fields available at https://docs.renovatebot.com/templates/#other-available-fields @@ -50,6 +51,17 @@ "target/{{baseBranch}}", // To easily filter PR on base branch, like all PR related to k3s 1.25 ] }, + { + description: 'Kubectl: Get distinct branches for each minor, e.g. 1.22.x and 1.23.x. See https://docs.renovatebot.com/presets-default/#separatepatchreleases and https://docs.renovatebot.com/faq/#separate-patch-releases-from-minor-releases', + matchPackageNames: [ + 'kubernetes/kubernetes', + ], + separateMinorPatch: true, + addLabels: [ + "depName/kubernetes-kubectl", //override common labels for kubectl, as we have to scan kubernetes releases + ] + //separateMultipleMinor: true, // Pending merge of https://github.com/renovatebot/renovate/pull/24538 to be effective + } ], regexManagers: [ {