Skip to content

Commit

Permalink
fix kube version rendering error
Browse files Browse the repository at this point in the history
Signed-off-by: bo.jiang <[email protected]>
  • Loading branch information
ErikJiang committed Mar 21, 2024
1 parent 3025d14 commit ab13692
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 ab13692

Please sign in to comment.