Skip to content

Commit 2cc7bbd

Browse files
committed
Fix prefix concatenation
1 parent e1700ca commit 2cc7bbd

File tree

1 file changed

+2
-11
lines changed
  • docker/mongodb-kubernetes-tests/kubetester

1 file changed

+2
-11
lines changed

docker/mongodb-kubernetes-tests/kubetester/helm.py

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -314,18 +314,9 @@ def helm_chart_path_and_version(helm_chart_path: str, operator_version: str) ->
314314
if local_operator():
315315
return LOCAL_HELM_CHART_DIR, ""
316316

317-
# if operator_version is not specified, and we are not installing the MCK or MEKO chart
318-
# it would mean we want to install OCI published helm chart.
319-
if not operator_version and helm_chart_path not in (
320-
MCK_HELM_CHART,
321-
LEGACY_OPERATOR_CHART,
322-
):
323-
non_semver_operator_version = os.environ.get(OCI_HELM_VERSION)
324-
operator_version = f"0.0.0+{non_semver_operator_version}"
325-
326-
# helm_chart_path not being passed would mean we are on evg env and would like to
327-
# install helm chart from OCI registry.
317+
# helm_chart_path not being passed would mean we would like to install helm chart from OCI registry.
328318
if not helm_chart_path:
319+
operator_version = os.environ.get(OCI_HELM_VERSION)
329320
registry, repository, region = oci_chart_info()
330321
# If ECR we need to login first to the OCI container registry
331322
if registry == OCI_HELM_REGISTRY_ECR:

0 commit comments

Comments
 (0)