Skip to content

Commit e6e5dad

Browse files
committed
fix: Update repos
1 parent 3a478c9 commit e6e5dad

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

.scripts/update_helm_charts.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
import yaml
66
from typing import Tuple, Set
77

8-
98
def run_helm_repo_add(repo_name: str, repo_url: str) -> None:
109
try:
1110
subprocess.run(["helm", "repo", "add", repo_name, repo_url], check=True)
@@ -16,8 +15,8 @@ def run_helm_repo_add(repo_name: str, repo_url: str) -> None:
1615
raise
1716

1817

19-
def run_helm_repo_update() -> None:
20-
subprocess.run(["helm", "repo", "update"], check=True)
18+
def run_helm_repo_update(repo_name: str) -> None:
19+
subprocess.run(["helm", "repo", "update", repo_name], check=True)
2120

2221

2322
def get_chart_and_app_version(repo_name: str, chart_name: str) -> Tuple[str, str]:
@@ -77,6 +76,8 @@ def process_yaml_files(top_dir: str) -> None:
7776
run_helm_repo_add(repo_name, repo_url)
7877
seen_repos.add(repo_name)
7978

79+
run_helm_repo_update(repo_name)
80+
8081
# print(f"📦 Updating {filepath} -> {repo_name}/{chart_name}")
8182
new_chart_version, new_app_version = get_chart_and_app_version(repo_name, chart_name)
8283

0 commit comments

Comments
 (0)