File tree Expand file tree Collapse file tree 3 files changed +8
-3
lines changed
docker/mongodb-kubernetes-tests Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -37,6 +37,8 @@ variables:
3737 variant : init_test_run
3838 - name : build_init_om_images_ubi
3939 variant : init_test_run
40+ - name : publish_helm_chart
41+ variant : init_test_run
4042
4143 - &base_no_om_image_dependency
4244 depends_on :
Original file line number Diff line number Diff line change @@ -51,6 +51,9 @@ def __init__(
5151 api_client : Optional [client .api_client .ApiClient ] = None ,
5252 operator_version : Optional [str ] = None ,
5353 ):
54+ # The Operator will be installed from the following repo, so adding it first
55+ helm_repo_add ("mongodb" , "https://mongodb.github.io/helm-charts" )
56+
5457 if not helm_chart_path :
5558 # login to the OCI container registry
5659 registry , repository , region = oci_chart_info ()
@@ -63,7 +66,7 @@ def __init__(
6366 chart_uri = f"oci://{ registry } /{ repository } "
6467 helm_chart_path = chart_uri
6568
66- if not operator_version :
69+ if not operator_version and helm_chart_path not in ( "mongodb/mongodb-kubernetes" , "mongodb/enterprise-operator" ) :
6770 # most probably we are trying to install current operator which will be installed
6871 # from OCI registry. The version (dev/staging) is set in `OPERATOR_VERSION`
6972 non_semver_operator_version = os .environ .get ("OPERATOR_VERSION" )
Original file line number Diff line number Diff line change @@ -839,7 +839,7 @@ def _install_multi_cluster_operator(
839839 multi_cluster_operator_installation_config .update (helm_opts )
840840
841841 # The Operator will be installed from the following repo, so adding it first
842- # helm_repo_add("mongodb", "https://mongodb.github.io/helm-charts")
842+ helm_repo_add ("mongodb" , "https://mongodb.github.io/helm-charts" )
843843
844844 # login to the OCI container registry
845845 registry , repository , region = oci_chart_info ()
@@ -853,7 +853,7 @@ def _install_multi_cluster_operator(
853853 if not helm_chart_path :
854854 helm_chart_path = chart_uri
855855
856- if not custom_operator_version :
856+ if not custom_operator_version and helm_chart_path not in ( MCK_HELM_CHART , LEGACY_OPERATOR_CHART ) :
857857 # most probably we are trying to install current operator which will be installed
858858 # from OCI registry. The version (dev/staging) is set in `OPERATOR_VERSION`
859859 non_semver_custom_operator_version = os .environ .get ("OPERATOR_VERSION" )
You can’t perform that action at this time.
0 commit comments