Skip to content

Commit

Permalink
Merge pull request #1174 from ErikJiang/fix_kube_version_in_manifest
Browse files Browse the repository at this point in the history
fix kube version rendering error
  • Loading branch information
ErikJiang authored Mar 21, 2024
2 parents 3025d14 + ab13692 commit 5500971
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions artifacts/gen_airgap_crs.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,11 @@ def create_localartifactset():
merge_spray_components_version_files(comps_version_conf_file)

components = { key_item["name"]: [] for key_item in COMPONENTS_KEYS }
verison = KUBE_VERSION
for key in components:
if key != "kube" or KUBE_VERSION == "":
verison = get_value_from_yml(comps_version_conf_file, f"{key}_version")
else:
verison = KUBE_VERSION
components[key].append(verison)

path = Path(KUBEAN_TAG)
Expand All @@ -127,10 +128,11 @@ def create_manifest():
merge_spray_components_version_files(comps_version_conf_file)

components = {key_item["name"]: {"defaultVersion": "", "versionRange": []} for key_item in COMPONENTS_KEYS}
verison = KUBE_VERSION
for key in components:
if key != "kube" or KUBE_VERSION == "":
verison = get_value_from_yml(comps_version_conf_file, f"{key}_version")
else:
verison = KUBE_VERSION
components[key]["defaultVersion"] = verison
checksumsKey = next(key_item["checksumsKey"] for key_item in COMPONENTS_KEYS if key_item["name"] == key)
components[key]["versionRange"] = [] if checksumsKey is None else [key for key in get_value_from_yml(comps_version_conf_file, checksumsKey)]
Expand Down

0 comments on commit 5500971

Please sign in to comment.