Skip to content
Snippets Groups Projects
Unverified Commit 8f64db2f authored by Maksim's avatar Maksim Committed by GitHub
Browse files

refactor(migrations): endpoints (#13868)

* refactor(migrations): endpoints

* refactor: fix unit test snapshot
parent 8787e02e
No related branches found
No related tags found
No related merge requests found
...@@ -113,7 +113,12 @@ Object { ...@@ -113,7 +113,12 @@ Object {
":dependencyDashboard", ":dependencyDashboard",
], ],
"hostRules": Array [ "hostRules": Array [
Object {}, Object {
"hostType": "docker",
"matchHost": "https://docker.io",
"password": "some-password",
"username": "some-username",
},
], ],
"ignorePaths": Array [ "ignorePaths": Array [
"node_modules/", "node_modules/",
......
...@@ -449,10 +449,6 @@ export function migrateConfig( ...@@ -449,10 +449,6 @@ export function migrateConfig(
} }
} }
} }
if (migratedConfig.endpoints) {
migratedConfig.hostRules = migratedConfig.endpoints;
delete migratedConfig.endpoints;
}
if (is.array(migratedConfig.packageRules)) { if (is.array(migratedConfig.packageRules)) {
const renameMap = { const renameMap = {
paths: 'matchPaths', paths: 'matchPaths',
......
...@@ -37,6 +37,7 @@ export class MigrationsService { ...@@ -37,6 +37,7 @@ export class MigrationsService {
]); ]);
static readonly renamedProperties: ReadonlyMap<string, string> = new Map([ static readonly renamedProperties: ReadonlyMap<string, string> = new Map([
['endpoints', 'hostRules'],
['excludedPackageNames', 'excludePackageNames'], ['excludedPackageNames', 'excludePackageNames'],
['exposeEnv', 'exposeAllEnv'], ['exposeEnv', 'exposeAllEnv'],
['managerBranchPrefix', 'additionalBranchPrefix'], ['managerBranchPrefix', 'additionalBranchPrefix'],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment