From d08f4e3c42a54a17f6f0e19e153f05ec9def4697 Mon Sep 17 00:00:00 2001 From: Mahe Tardy Date: Tue, 3 Oct 2023 11:22:39 +0000 Subject: [PATCH] renovate: update config for new Go module and cleanups Add the new entry for the tetragon OCI hook Go module and try to remove useless packageRules by adding the postUpgradeTasks and postUpdateOptions directly to all Go updates. Signed-off-by: Mahe Tardy --- .github/renovate.json5 | 71 +++++++++--------------------------------- 1 file changed, 15 insertions(+), 56 deletions(-) diff --git a/.github/renovate.json5 b/.github/renovate.json5 index 13b46310526..54944922a6e 100644 --- a/.github/renovate.json5 +++ b/.github/renovate.json5 @@ -33,6 +33,8 @@ "api/go.sum", "pkg/k8s/go.mod", "pkg/k8s/go.sum", + "contrib/rthooks/tetragon-oci-hook/go.mod", + "contrib/rthooks/tetragon-oci-hook/go.sum", "Dockerfile*", "install/kubernetes/values.yaml", "Makefile.cli", @@ -94,11 +96,8 @@ "separateMinorPatch": false, }, { - // not grouping Go minor and major updates together - "matchFileNames": [ - "go.mod", - "go.sum" - ], + // postUpgradeTasks and postUpdateOptions for all Go updates + "matchManagers": ["gomod"], "postUpdateOptions": [ // update source import paths on major updates "gomodUpdateImportPaths", @@ -107,14 +106,7 @@ "commands": ["/tmp/install-buildx", "make codegen", "make generate"], "fileFilters": ["**/**"], "executionMode": "branch" - }, - "matchUpdateTypes": [ - "major", - "minor", - ], - "matchBaseBranches": [ - "main" - ], + } }, { "groupName": "all go dependencies main", @@ -123,15 +115,6 @@ "go.mod", "go.sum" ], - "postUpdateOptions": [ - // update source import paths on major updates - "gomodUpdateImportPaths", - ], - "postUpgradeTasks": { - "commands": ["/tmp/install-buildx", "make codegen", "make generate"], - "fileFilters": ["**/**"], - "executionMode": "branch" - }, "matchUpdateTypes": [ "patch", "digest", @@ -150,15 +133,6 @@ "api/go.mod", "api/go.sum" ], - "postUpdateOptions": [ - // update source import paths on major updates - "gomodUpdateImportPaths", - ], - "postUpgradeTasks": { - "commands": ["/tmp/install-buildx", "make codegen", "make generate"], - "fileFilters": ["**/**"], - "executionMode": "branch" - }, "matchUpdateTypes": [ "major", "minor", @@ -172,44 +146,29 @@ ], }, { - // not grouping major and minor updates together + "groupName": "all k8s pkg go dependencies main", + "groupSlug": "all-k8s-pkg-go-deps-main", "matchFileNames": [ "pkg/k8s/go.mod", "pkg/k8s/go.sum" ], - "postUpdateOptions": [ - // update source import paths on major updates - "gomodUpdateImportPaths", - ], - "postUpgradeTasks": { - "commands": ["/tmp/install-buildx", "make codegen", "make generate"], - "fileFilters": ["**/**"], - "executionMode": "branch" - }, "matchUpdateTypes": [ - "major", - "minor", + "patch", + "digest", + "pin", + "pinDigest" ], "matchBaseBranches": [ "main" ], }, { - "groupName": "all k8s pkg go dependencies main", - "groupSlug": "all-k8s-pkg-go-deps-main", + "groupName": "all oci hook go dependencies main", + "groupSlug": "all-oci-hook-go-deps-main", "matchFileNames": [ - "pkg/k8s/go.mod", - "pkg/k8s/go.sum" + "contrib/rthooks/tetragon-oci-hook/go.mod", + "contrib/rthooks/tetragon-oci-hook/go.sum", ], - "postUpdateOptions": [ - // update source import paths on major updates - "gomodUpdateImportPaths", - ], - "postUpgradeTasks": { - "commands": ["/tmp/install-buildx", "make codegen", "make generate"], - "fileFilters": ["**/**"], - "executionMode": "branch" - }, "matchUpdateTypes": [ "patch", "digest",