Skip to content

Commit 53f0171

Browse files
committed
remove dead code
We no longer need the logic for the latest version of helm. Also we don't need the NeedsHelm option in ToolStatus.
1 parent ec33ace commit 53f0171

File tree

2 files changed

+0
-11
lines changed

2 files changed

+0
-11
lines changed

src/warnet/constants.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,6 @@
109109
]
110110

111111
# Helm binary
112-
HELM_LATEST_URL = "https://get.helm.sh/helm-latest-version"
113112
HELM_DOWNLOAD_URL_STUB = "https://get.helm.sh/"
114113
HELM_BINARY_NAME = "helm"
115114
HELM_BLESSED_VERSION = "v3.16.1"

src/warnet/project.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
HELM_BLESSED_NAME_AND_CHECKSUMS,
2121
HELM_BLESSED_VERSION,
2222
HELM_DOWNLOAD_URL_STUB,
23-
HELM_LATEST_URL,
2423
)
2524
from .graph import inquirer_create_network
2625
from .network import copy_network_defaults, copy_scenario_defaults
@@ -31,7 +30,6 @@ def setup():
3130
"""Setup warnet"""
3231

3332
class ToolStatus(Enum):
34-
NeedsHelm = auto()
3533
Satisfied = auto()
3634
Unsatisfied = auto()
3735

@@ -429,14 +427,6 @@ def download_file(url, destination):
429427
raise Exception(f"Failed to download {url} (status code {response.status_code})")
430428

431429

432-
def get_latest_version_of_helm() -> Optional[str]:
433-
response = requests.get(HELM_LATEST_URL)
434-
if response.status_code == 200:
435-
return response.text.strip()
436-
else:
437-
return None
438-
439-
440430
def query_arch_from_uname(arch: str) -> Optional[str]:
441431
if arch.startswith("armv5"):
442432
return "armv5"

0 commit comments

Comments
 (0)