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)

    # 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)