diff --git a/ocs_ci/deployment/fusion_data_foundation.py b/ocs_ci/deployment/fusion_data_foundation.py index 36a82c2024b..f11ca7eef34 100644 --- a/ocs_ci/deployment/fusion_data_foundation.py +++ b/ocs_ci/deployment/fusion_data_foundation.py @@ -43,6 +43,7 @@ class FusionDataFoundationDeployment: def __init__(self): self.pre_release = config.DEPLOYMENT.get("fdf_pre_release", False) + self.live_deployment = config.DEPLOYMENT.get("live_deployment", False) self.kubeconfig = config.RUN["kubeconfig"] self.lso_enabled = config.DEPLOYMENT.get("local_storage", False) self.fdf_skip_storage_setup = config.DEPLOYMENT.get( @@ -72,7 +73,7 @@ def deploy(self): """ logger.info("Installing IBM Fusion Data Foundation") - if self.pre_release: + if self.pre_release and not self.live_deployment: self.create_image_tag_mirror_set() self.create_image_digest_mirror_set() self.setup_fdf_pre_release_deployment() diff --git a/ocs_ci/utility/framework/fusion_fdf_init.py b/ocs_ci/utility/framework/fusion_fdf_init.py index 8a9bcc28d22..e885862bbd1 100644 --- a/ocs_ci/utility/framework/fusion_fdf_init.py +++ b/ocs_ci/utility/framework/fusion_fdf_init.py @@ -108,6 +108,8 @@ def init_config(self, args: list) -> None: load_config([cfg_file]) if args.fdf_image_tag: config.DEPLOYMENT["fdf_image_tag"] = args.fdf_image_tag + if args.live_deploy: + config.DEPLOYMENT["live_deployment"] = args.live_deploy def init_cli(self, args: list) -> list: """ @@ -151,6 +153,12 @@ def init_cli(self, args: list) -> list: parser.add_argument( "--fdf-image-tag", default=None, help="Image tag of FDF to install" ) + parser.add_argument( + "--live-deploy", + action="store_true", + default=False, + help="Deploy FDF from live registry (GA)", + ) parsed_args, _ = parser.parse_known_args(args)