From 50e21cf025e6f5aec7610ef3d24844486d3ed891 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Birger=20J=2E=20Nord=C3=B8lum?= Date: Tue, 11 Jun 2024 23:58:43 +0200 Subject: [PATCH 1/3] feat(replacements): add opencost from quay.io to ghcr.io MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Birger J. Nordølum --- lib/config/presets/internal/replacements.ts | 22 +++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/lib/config/presets/internal/replacements.ts b/lib/config/presets/internal/replacements.ts index 0b14ccf2c46a3f..7f1ed17cb574a9 100644 --- a/lib/config/presets/internal/replacements.ts +++ b/lib/config/presets/internal/replacements.ts @@ -29,6 +29,7 @@ export const presets: Record = { 'replacements:middie-to-scoped', 'replacements:now-to-vercel', 'replacements:npm-run-all-to-maintenance-fork', + 'replacements:opencost-registry-move', 'replacements:parcel-css-to-lightningcss', 'replacements:passport-saml', 'replacements:react-query-devtools-to-scoped', @@ -743,6 +744,27 @@ export const presets: Record = { }, ], }, + 'opencost-registry-move': { + description: 'Replace OpenCost registry from quay.io to ghcr.io.', + packageRules: [ + { + description: + 'Replace `quay.io/kubecost1/kubecost-cost-model` with `ghcr.io/opencost/opencost`.', + matchDatasources: ['docker'], + matchPackageNames: ['quay.io/kubecost1/kubecost-cost-model'], + replacementName: 'ghcr.io/opencost/opencost', + replacementVersion: '1.110.0', + }, + { + description: + 'Replace `quay.io/kubecost1/opencost-ui` with `ghcr.io/opencost/opencost-ui`.', + matchDatasources: ['docker'], + matchPackageNames: ['quay.io/kubecost1/opencost-ui'], + replacementName: 'ghcr.io/opencost/opencost-ui', + replacementVersion: '1.110.0', + }, + ], + }, 'parcel-css-to-lightningcss': { description: '`@parcel/css` was renamed to `lightningcss`.', packageRules: [ From b0afff4b1eb96a93e34eac155c54d10be08fe3c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Birger=20J=2E=20Nord=C3=B8lum?= Date: Wed, 12 Jun 2024 09:44:25 +0200 Subject: [PATCH 2/3] fix(presets): add current version to opencost replacement --- lib/config/presets/internal/replacements.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/config/presets/internal/replacements.ts b/lib/config/presets/internal/replacements.ts index 7f1ed17cb574a9..80664eeea29c3c 100644 --- a/lib/config/presets/internal/replacements.ts +++ b/lib/config/presets/internal/replacements.ts @@ -750,6 +750,7 @@ export const presets: Record = { { description: 'Replace `quay.io/kubecost1/kubecost-cost-model` with `ghcr.io/opencost/opencost`.', + matchCurrentVersion: '1.108.0', matchDatasources: ['docker'], matchPackageNames: ['quay.io/kubecost1/kubecost-cost-model'], replacementName: 'ghcr.io/opencost/opencost', @@ -758,6 +759,7 @@ export const presets: Record = { { description: 'Replace `quay.io/kubecost1/opencost-ui` with `ghcr.io/opencost/opencost-ui`.', + matchCurrentVersion: '1.108.0', matchDatasources: ['docker'], matchPackageNames: ['quay.io/kubecost1/opencost-ui'], replacementName: 'ghcr.io/opencost/opencost-ui', From 2bfa6f2178c633f91960bb89433eaf77ee5b500c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Birger=20J=2E=20Nord=C3=B8lum?= Date: Wed, 12 Jun 2024 11:31:28 +0200 Subject: [PATCH 3/3] fix(presets): add lower version in registry --- lib/config/presets/internal/replacements.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/config/presets/internal/replacements.ts b/lib/config/presets/internal/replacements.ts index 80664eeea29c3c..2dbd6edb78a25f 100644 --- a/lib/config/presets/internal/replacements.ts +++ b/lib/config/presets/internal/replacements.ts @@ -754,7 +754,7 @@ export const presets: Record = { matchDatasources: ['docker'], matchPackageNames: ['quay.io/kubecost1/kubecost-cost-model'], replacementName: 'ghcr.io/opencost/opencost', - replacementVersion: '1.110.0', + replacementVersion: '1.109.0', }, { description: @@ -763,7 +763,7 @@ export const presets: Record = { matchDatasources: ['docker'], matchPackageNames: ['quay.io/kubecost1/opencost-ui'], replacementName: 'ghcr.io/opencost/opencost-ui', - replacementVersion: '1.110.0', + replacementVersion: '1.109.0', }, ], },