UNPKG

@openshift-assisted/ui-lib

Version:

React component library for the Assisted Installer UI

23 lines 1.43 kB
import { SupportedCpuArchitecture } from '../../common'; import { OcmClusterType } from '../components/AddHosts/types'; import { Cluster, Platform } from '@openshift-assisted/types/assisted-installer-service'; export declare const getApiVipDnsName: (ocmCluster: OcmClusterType) => { apiVipDnsname: string; errorType: string; }; export declare const mapCloudProviderToPlatformType: (cloudProviderId?: string) => Platform; declare const Day2ClusterService: { getOpenshiftClusterId(ocmCluster?: OcmClusterType): string | undefined; fetchCluster(ocmCluster: OcmClusterType, pullSecret: string): Promise<Cluster | undefined>; fetchClusterById(clusterId: Cluster['id']): Promise<Cluster>; getDay2ClusterId(openshiftClusterId: OcmClusterType['external_id']): Promise<string | undefined>; createCluster(openshiftClusterId: OcmClusterType['external_id'], clusterName: string, apiVipDnsname: string, pullSecret: string, openshiftVersion: string, cpuArchitecture: SupportedCpuArchitecture): Promise<Cluster>; /** * Complete the day2Cluster coming from AI polling with the data in the OCM cluster * @param day2Cluster Day2 cluster * @param ocmCluster OCM cluster */ completeAiClusterWithOcmCluster: (day2Cluster: Cluster | undefined, ocmCluster: OcmClusterType | undefined) => Cluster | undefined; }; export default Day2ClusterService; //# sourceMappingURL=Day2ClusterService.d.ts.map