def main(): cluster_id = args.cluster_id set_network_defaults_if_needed() if args.kube_api: execute_kube_api_flow() return if args.day1_cluster: cluster_id = execute_day1_flow() elif is_none_platform_mode(): raise NotImplementedError( "None platform currently not supporting day2") if args.image: args.keep_iso = True has_ipv6 = args.ipv6 and args.ipv6.lower() in MachineNetwork.YES_VALUES if args.day2_cloud_cluster: day2.execute_day2_cloud_flow(cluster_id, args, has_ipv6) if args.day2_ocp_cluster: day2.execute_day2_ocp_flow(cluster_id, args, has_ipv6) if args.bootstrap_in_place: ibip.execute_ibip_flow(args)
def main(): cluster_name = f'{args.cluster_name or consts.CLUSTER_PREFIX}-{args.namespace}' log.info('Cluster name: %s', cluster_name) cluster_id = args.cluster_id if args.day1_cluster: cluster_id = execute_day1_flow(cluster_name) if args.day2_cloud_cluster: day2.execute_day2_cloud_flow(cluster_id, args) if args.day2_ocp_cluster: day2.execute_day2_ocp_flow(cluster_id, args)
def main(): cluster_name = f'{args.cluster_name or consts.CLUSTER_PREFIX}-{args.namespace}' log.info('Cluster name: %s', cluster_name) cluster_id = args.cluster_id if args.day1_cluster: cluster_id = execute_day1_flow(cluster_name) # None platform currently not supporting day2 if is_none_platform_mode(): return if args.day2_cloud_cluster: day2.execute_day2_cloud_flow(cluster_id, args) if args.day2_ocp_cluster: day2.execute_day2_ocp_flow(cluster_id, args) if args.bootstrap_in_place: ibip.execute_ibip_flow(args)
def main(): cluster_name = f'{args.cluster_name or consts.CLUSTER_PREFIX}-{args.namespace}' log.info('Cluster name: %s', cluster_name) cluster_id = args.cluster_id if args.day1_cluster: cluster_id = execute_day1_flow(cluster_name) # None platform currently not supporting day2 if is_none_platform_mode(): return has_ipv4 = args.ipv4 and args.ipv4.lower() in MachineNetwork.YES_VALUES if args.day2_cloud_cluster: day2.execute_day2_cloud_flow(cluster_id, args, has_ipv4) if args.day2_ocp_cluster: day2.execute_day2_ocp_flow(cluster_id, args, has_ipv4) if args.bootstrap_in_place: ibip.execute_ibip_flow(args)
def test_deploy_day2_nodes_cloud(self, cluster, new_cluster_configuration: ClusterConfig): if not global_variables.cluster_id: cluster.prepare_for_installation() cluster.start_install_and_wait_for_installed() # TODO: Use a proper structure instead of mimicking cli options args = SimpleNamespace() args.api_client = cluster.api_client args.pull_secret = new_cluster_configuration.pull_secret args.with_static_network_config = new_cluster_configuration.is_static_ip args.num_day2_workers = global_variables.num_day2_workers args.ssh_key = global_variables.ssh_public_key args.install_cluster = True if new_cluster_configuration.proxy: args.http_proxy = new_cluster_configuration.proxy.http_proxy args.https_proxy = new_cluster_configuration.proxy.https_proxy args.no_proxy = new_cluster_configuration.proxy.no_proxy day2.execute_day2_cloud_flow(new_cluster_configuration.cluster_id, args, new_cluster_configuration.is_ipv6)