Skip to content

Commit 2207892

Browse files
committed
chore(charts): update dependency version specifications
- Changed version specifications for network-bootstrapper and network-nodes dependencies in Chart.yaml to ">=0.0.0-0" for improved flexibility. - Updated README.md to reflect the new versioning format. - Adjusted version handling in version.ts to accommodate the new dependency range. This update enhances compatibility with future chart updates and ensures a more robust dependency management.
1 parent 5b5b065 commit 2207892

3 files changed

Lines changed: 8 additions & 7 deletions

File tree

charts/network/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ maintainers:
1010
url: https://settlemint.com
1111
dependencies:
1212
- name: network-bootstrapper
13-
version: "*"
13+
version: ">=0.0.0-0"
1414
- name: network-nodes
15-
version: "*"
15+
version: ">=0.0.0-0"

charts/network/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ A Helm chart for a blockchain network on Kubernetes
1414

1515
| Repository | Name | Version |
1616
|------------|------|---------|
17-
| | network-bootstrapper | 1.0.1 |
18-
| | network-nodes | 1.0.1 |
17+
| | network-bootstrapper | >=0.0.0-0 |
18+
| | network-nodes | >=0.0.0-0 |
1919

2020
## Values
2121

tools/version.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ type UpdateResult = {
4747
};
4848

4949
const toPosixPath = (value: string): string => value.replaceAll("\\", "/");
50+
const CHART_DEPENDENCY_RANGE = ">=0.0.0-0";
5051

5152
async function scanFiles(
5253
pattern: string,
@@ -288,8 +289,8 @@ function updateChartDependencies(
288289

289290
let dependencyCount = 0;
290291
for (const dep of dependencies) {
291-
if (dep.version !== "*") {
292-
dep.version = "*";
292+
if (dep.version !== CHART_DEPENDENCY_RANGE) {
293+
dep.version = CHART_DEPENDENCY_RANGE;
293294
dependencyCount++;
294295
}
295296
}
@@ -478,7 +479,7 @@ async function updateChartVersions(
478479
logs.push(
479480
`Set ${dependencyUpdates} chart dependenc${
480481
dependencyUpdates === 1 ? "y" : "ies"
481-
} to "*"`
482+
} to ${CHART_DEPENDENCY_RANGE}`
482483
);
483484
}
484485

0 commit comments

Comments
 (0)