@openshift-assisted/ui-lib 2.9.7-cim → 2.9.9-cim
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentDetails.d.ts.map +1 -1
- package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentDetailsStep.d.ts +6 -1
- package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentDetailsStep.d.ts.map +1 -1
- package/build/@types/cim/components/ClusterDeployment/ClusterDetailsFormFields.d.ts.map +1 -1
- package/build/@types/cim/components/ClusterDeployment/helpers.d.ts.map +1 -1
- package/build/@types/cim/components/Hypershift/utils/nodepool.d.ts.map +1 -1
- package/build/@types/cim/components/InfraEnv/InfraEnvFormPage.d.ts +2 -0
- package/build/@types/cim/components/InfraEnv/InfraEnvFormPage.d.ts.map +1 -1
- package/build/@types/cim/components/helpers/versions.d.ts +1 -0
- package/build/@types/cim/components/helpers/versions.d.ts.map +1 -1
- package/build/@types/cim/components/modals/AddHostModal.d.ts.map +1 -1
- package/build/@types/common/api/accounts-management-service/current-account-api.d.ts +6 -0
- package/build/@types/common/api/accounts-management-service/current-account-api.d.ts.map +1 -0
- package/build/@types/common/api/accounts-management-service/organizations-api.d.ts +6 -0
- package/build/@types/common/api/accounts-management-service/organizations-api.d.ts.map +1 -0
- package/build/@types/common/api/assisted-service/NewFeatureSupportLevelsAPI.d.ts +1 -1
- package/build/@types/common/api/assisted-service/NewFeatureSupportLevelsAPI.d.ts.map +1 -1
- package/build/@types/common/api/assisted-service/UISettingsAPI.d.ts +8 -0
- package/build/@types/common/api/assisted-service/UISettingsAPI.d.ts.map +1 -0
- package/build/@types/common/api/assisted-service/index.d.ts +1 -0
- package/build/@types/common/api/assisted-service/index.d.ts.map +1 -1
- package/build/@types/common/api/authorization-service/all-apis.d.ts +7 -0
- package/build/@types/common/api/authorization-service/all-apis.d.ts.map +1 -0
- package/build/@types/common/components/clusterConfiguration/DiscoveryImageConfigForm.d.ts +4 -1
- package/build/@types/common/components/clusterConfiguration/DiscoveryImageConfigForm.d.ts.map +1 -1
- package/build/@types/common/components/clusterConfiguration/DiskEncryptionFields/DiskEncryptionControlGroup.d.ts.map +1 -1
- package/build/@types/common/components/clusterConfiguration/DiskEncryptionFields/DiskEncryptionMode.d.ts +3 -1
- package/build/@types/common/components/clusterConfiguration/DiskEncryptionFields/DiskEncryptionMode.d.ts.map +1 -1
- package/build/@types/common/components/clusterConfiguration/DiskEncryptionFields/TangServers.d.ts +3 -1
- package/build/@types/common/components/clusterConfiguration/DiskEncryptionFields/TangServers.d.ts.map +1 -1
- package/build/@types/common/components/clusterConfiguration/DownloadIso.d.ts +2 -1
- package/build/@types/common/components/clusterConfiguration/DownloadIso.d.ts.map +1 -1
- package/build/@types/common/components/clusterConfiguration/OpenShiftVersionSelect.d.ts +2 -0
- package/build/@types/common/components/clusterConfiguration/OpenShiftVersionSelect.d.ts.map +1 -1
- package/build/@types/common/components/clusterDetail/PostInstallAlert.d.ts +6 -0
- package/build/@types/common/components/clusterDetail/PostInstallAlert.d.ts.map +1 -0
- package/build/@types/common/components/clusterDetail/index.d.ts +1 -0
- package/build/@types/common/components/clusterDetail/index.d.ts.map +1 -1
- package/build/@types/common/components/clusterWizard/ReviewValidations.d.ts.map +1 -1
- package/build/@types/common/components/hosts/HostRowDetail.d.ts +2 -1
- package/build/@types/common/components/hosts/HostRowDetail.d.ts.map +1 -1
- package/build/@types/common/components/newFeatureSupportLevels/types.d.ts +3 -3
- package/build/@types/common/components/newFeatureSupportLevels/types.d.ts.map +1 -1
- package/build/@types/common/components/ui/NoPermissionsError.d.ts +3 -0
- package/build/@types/common/components/ui/NoPermissionsError.d.ts.map +1 -0
- package/build/@types/common/components/ui/formik/InputField.d.ts.map +1 -1
- package/build/@types/common/components/ui/formik/RichInputField.d.ts.map +1 -1
- package/build/@types/common/components/ui/formik/types.d.ts +2 -2
- package/build/@types/common/components/ui/formik/types.d.ts.map +1 -1
- package/build/@types/common/components/ui/formik/validationSchemas.d.ts.map +1 -1
- package/build/@types/common/components/ui/index.d.ts +1 -0
- package/build/@types/common/components/ui/index.d.ts.map +1 -1
- package/build/@types/common/config/constants.d.ts +1 -1
- package/build/@types/common/config/constants.d.ts.map +1 -1
- package/build/@types/common/features/featureGate.d.ts +1 -1
- package/build/@types/common/features/featureGate.d.ts.map +1 -1
- package/build/@types/common/services/DateAndTime.d.ts.map +1 -0
- package/build/@types/common/types/cpuArchitecture.d.ts +1 -1
- package/build/@types/common/types/cpuArchitecture.d.ts.map +1 -1
- package/build/@types/common/types/featureSupportLevel.d.ts +3 -3
- package/build/@types/common/types/featureSupportLevel.d.ts.map +1 -1
- package/build/@types/ocm/components/AddHosts/AddHosts.d.ts.map +1 -1
- package/build/@types/ocm/components/AddHosts/InventoryAddHost.d.ts +1 -2
- package/build/@types/ocm/components/AddHosts/InventoryAddHost.d.ts.map +1 -1
- package/build/@types/ocm/components/AddHosts/day2Wizard/Day2ClusterDetails.d.ts.map +1 -1
- package/build/@types/ocm/components/AddHosts/day2Wizard/Day2StaticIpHostConfigurations.d.ts +3 -1
- package/build/@types/ocm/components/AddHosts/day2Wizard/Day2StaticIpHostConfigurations.d.ts.map +1 -1
- package/build/@types/ocm/components/HostsClusterDetailTab/HostsClusterDetailTabContent.d.ts.map +1 -1
- package/build/@types/ocm/components/HostsClusterDetailTab/HostsClusterDetailTabContentErrors.d.ts +1 -4
- package/build/@types/ocm/components/HostsClusterDetailTab/HostsClusterDetailTabContentErrors.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/CpuArchitectureDropdown.d.ts +5 -4
- package/build/@types/ocm/components/clusterConfiguration/CpuArchitectureDropdown.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/CustomManifestCheckbox.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/OcmBaseDomainField.d.ts +2 -1
- package/build/@types/ocm/components/clusterConfiguration/OcmBaseDomainField.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/OcmClusterDetailsFormFields.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/manifestsConfiguration/CustomManifestsPage.d.ts +1 -1
- package/build/@types/ocm/components/clusterConfiguration/manifestsConfiguration/CustomManifestsPage.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/manifestsConfiguration/components/CustomManifestsForm.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/manifestsConfiguration/components/utils.d.ts +3 -4
- package/build/@types/ocm/components/clusterConfiguration/manifestsConfiguration/components/utils.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/manifestsConfiguration/data/dataTypes.d.ts +0 -1
- package/build/@types/ocm/components/clusterConfiguration/manifestsConfiguration/data/dataTypes.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfiguration.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/platformIntegration/ExternalPlatformDropdown.d.ts +2 -1
- package/build/@types/ocm/components/clusterConfiguration/platformIntegration/ExternalPlatformDropdown.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterDetail/AssistedInstallerDetailCard.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterDetail/AssistedInstallerExtraDetailCard.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterDetail/ClusterDetailStatusMessages.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterWizard/ClusterDetails.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterWizard/ClusterDetailsForm.d.ts +1 -2
- package/build/@types/ocm/components/clusterWizard/ClusterDetailsForm.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterWizard/ClusterWizardContext.d.ts +5 -3
- package/build/@types/ocm/components/clusterWizard/ClusterWizardContext.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterWizard/ClusterWizardContextProvider.d.ts.map +1 -1
- package/build/@types/ocm/components/clusters/ClusterPage.d.ts.map +1 -1
- package/build/@types/ocm/components/featureSupportLevels/FeatureSupportLevelProvider.d.ts +4 -3
- package/build/@types/ocm/components/featureSupportLevels/FeatureSupportLevelProvider.d.ts.map +1 -1
- package/build/@types/ocm/components/featureSupportLevels/ReviewClusterFeatureSupportLevels.d.ts.map +1 -1
- package/build/@types/ocm/components/featureSupportLevels/featureStateUtils.d.ts +3 -3
- package/build/@types/ocm/components/featureSupportLevels/featureStateUtils.d.ts.map +1 -1
- package/build/@types/ocm/components/hosts/HostsDiscoveryTable.d.ts.map +1 -1
- package/build/@types/ocm/components/ui/OcmFormFields.d.ts +1 -1
- package/build/@types/ocm/hooks/index.d.ts +1 -0
- package/build/@types/ocm/hooks/index.d.ts.map +1 -1
- package/build/@types/ocm/hooks/useOpenshiftVersions.d.ts +1 -2
- package/build/@types/ocm/hooks/useOpenshiftVersions.d.ts.map +1 -1
- package/build/@types/ocm/hooks/useSupportLevelsAPI.d.ts +5 -3
- package/build/@types/ocm/hooks/useSupportLevelsAPI.d.ts.map +1 -1
- package/build/@types/ocm/hooks/useUISettings.d.ts +10 -0
- package/build/@types/ocm/hooks/useUISettings.d.ts.map +1 -0
- package/build/@types/ocm/services/ClusterDetailsService.d.ts +2 -1
- package/build/@types/ocm/services/ClusterDetailsService.d.ts.map +1 -1
- package/build/@types/ocm/services/ClustersService.d.ts +0 -1
- package/build/@types/ocm/services/ClustersService.d.ts.map +1 -1
- package/build/@types/ocm/services/Day2ClusterService.d.ts +3 -2
- package/build/@types/ocm/services/Day2ClusterService.d.ts.map +1 -1
- package/build/@types/ocm/services/UISettingsService.d.ts +8 -0
- package/build/@types/ocm/services/UISettingsService.d.ts.map +1 -0
- package/build/@types/ocm/services/index.d.ts +1 -0
- package/build/@types/ocm/services/index.d.ts.map +1 -1
- package/build/@types/ocm/services/types.d.ts +4 -0
- package/build/@types/ocm/services/types.d.ts.map +1 -1
- package/build/cjs/cim/components/Agent/BMCForm.js +3 -3
- package/build/cjs/cim/components/Agent/BMCForm.js.map +1 -1
- package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentDetails.js +58 -55
- package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentDetails.js.map +1 -1
- package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentDetailsStep.js +9 -5
- package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentDetailsStep.js.map +1 -1
- package/build/cjs/cim/components/ClusterDeployment/ClusterDetailsFormFields.js +6 -2
- package/build/cjs/cim/components/ClusterDeployment/ClusterDetailsFormFields.js.map +1 -1
- package/build/cjs/cim/components/ClusterDeployment/helpers.js +4 -2
- package/build/cjs/cim/components/ClusterDeployment/helpers.js.map +1 -1
- package/build/cjs/cim/components/Hypershift/utils/nodepool.js +6 -5
- package/build/cjs/cim/components/Hypershift/utils/nodepool.js.map +1 -1
- package/build/cjs/cim/components/InfraEnv/InfraEnvFormPage.js +2 -2
- package/build/cjs/cim/components/InfraEnv/InfraEnvFormPage.js.map +1 -1
- package/build/cjs/cim/components/helpers/versions.js +3 -1
- package/build/cjs/cim/components/helpers/versions.js.map +1 -1
- package/build/cjs/cim/components/modals/AddHostModal.js +4 -4
- package/build/cjs/cim/components/modals/AddHostModal.js.map +1 -1
- package/build/cjs/common/api/accounts-management-service/access-token-api.js +1 -1
- package/build/cjs/common/api/accounts-management-service/current-account-api.js +17 -0
- package/build/cjs/common/api/accounts-management-service/current-account-api.js.map +1 -0
- package/build/cjs/common/api/accounts-management-service/organizations-api.js +19 -0
- package/build/cjs/common/api/accounts-management-service/organizations-api.js.map +1 -0
- package/build/cjs/common/api/assisted-service/NewFeatureSupportLevelsAPI.js +8 -5
- package/build/cjs/common/api/assisted-service/NewFeatureSupportLevelsAPI.js.map +1 -1
- package/build/cjs/common/api/assisted-service/UISettingsAPI.js +21 -0
- package/build/cjs/common/api/assisted-service/UISettingsAPI.js.map +1 -0
- package/build/cjs/common/api/assisted-service/index.js +3 -1
- package/build/cjs/common/api/assisted-service/index.js.map +1 -1
- package/build/cjs/common/api/authorization-service/all-apis.js +23 -0
- package/build/cjs/common/api/authorization-service/all-apis.js.map +1 -0
- package/build/cjs/common/components/clusterConfiguration/DiscoveryImageConfigForm.js +4 -4
- package/build/cjs/common/components/clusterConfiguration/DiscoveryImageConfigForm.js.map +1 -1
- package/build/cjs/common/components/clusterConfiguration/DiskEncryptionFields/DiskEncryptionControlGroup.js +1 -1
- package/build/cjs/common/components/clusterConfiguration/DiskEncryptionFields/DiskEncryptionControlGroup.js.map +1 -1
- package/build/cjs/common/components/clusterConfiguration/DiskEncryptionFields/DiskEncryptionMode.js +6 -4
- package/build/cjs/common/components/clusterConfiguration/DiskEncryptionFields/DiskEncryptionMode.js.map +1 -1
- package/build/cjs/common/components/clusterConfiguration/DiskEncryptionFields/TangServers.js +5 -3
- package/build/cjs/common/components/clusterConfiguration/DiskEncryptionFields/TangServers.js.map +1 -1
- package/build/cjs/common/components/clusterConfiguration/DownloadIso.js +2 -2
- package/build/cjs/common/components/clusterConfiguration/DownloadIso.js.map +1 -1
- package/build/cjs/common/components/clusterConfiguration/OpenShiftVersionSelect.js +2 -2
- package/build/cjs/common/components/clusterConfiguration/OpenShiftVersionSelect.js.map +1 -1
- package/build/cjs/common/components/clusterDetail/PostInstallAlert.js +16 -0
- package/build/cjs/common/components/clusterDetail/PostInstallAlert.js.map +1 -0
- package/build/cjs/common/components/clusterDetail/index.js +3 -1
- package/build/cjs/common/components/clusterDetail/index.js.map +1 -1
- package/build/cjs/common/components/clusterWizard/ReviewValidations.js +3 -0
- package/build/cjs/common/components/clusterWizard/ReviewValidations.js.map +1 -1
- package/build/cjs/common/components/hosts/HostRowDetail.js +2 -2
- package/build/cjs/common/components/hosts/HostRowDetail.js.map +1 -1
- package/build/cjs/common/components/ui/NoPermissionsError.js +14 -0
- package/build/cjs/common/components/ui/NoPermissionsError.js.map +1 -0
- package/build/cjs/common/components/ui/formik/InputField.js +5 -5
- package/build/cjs/common/components/ui/formik/InputField.js.map +1 -1
- package/build/cjs/common/components/ui/formik/RichInputField.js +5 -2
- package/build/cjs/common/components/ui/formik/RichInputField.js.map +1 -1
- package/build/cjs/common/components/ui/formik/SelectField.js +1 -1
- package/build/cjs/common/components/ui/formik/SelectField.js.map +1 -1
- package/build/cjs/common/components/ui/formik/validationSchemas.js +14 -6
- package/build/cjs/common/components/ui/formik/validationSchemas.js.map +1 -1
- package/build/cjs/common/components/ui/index.js +3 -1
- package/build/cjs/common/components/ui/index.js.map +1 -1
- package/build/cjs/common/config/constants.js +4 -2
- package/build/cjs/common/config/constants.js.map +1 -1
- package/build/cjs/common/features/featureGate.js +1 -3
- package/build/cjs/common/features/featureGate.js.map +1 -1
- package/build/cjs/common/services/DateAndTime.js.map +1 -0
- package/build/cjs/common/types/cpuArchitecture.js +5 -9
- package/build/cjs/common/types/cpuArchitecture.js.map +1 -1
- package/build/cjs/common/types/featureSupportLevel.js.map +1 -1
- package/build/cjs/ocm/components/AddHosts/AddHosts.js +1 -2
- package/build/cjs/ocm/components/AddHosts/AddHosts.js.map +1 -1
- package/build/cjs/ocm/components/AddHosts/InventoryAddHost.js +2 -2
- package/build/cjs/ocm/components/AddHosts/InventoryAddHost.js.map +1 -1
- package/build/cjs/ocm/components/AddHosts/day2Wizard/Day2ClusterDetails.js +4 -4
- package/build/cjs/ocm/components/AddHosts/day2Wizard/Day2ClusterDetails.js.map +1 -1
- package/build/cjs/ocm/components/AddHosts/day2Wizard/Day2StaticIpHostConfigurations.js +7 -6
- package/build/cjs/ocm/components/AddHosts/day2Wizard/Day2StaticIpHostConfigurations.js.map +1 -1
- package/build/cjs/ocm/components/HostsClusterDetailTab/HostsClusterDetailTabContent.js +5 -22
- package/build/cjs/ocm/components/HostsClusterDetailTab/HostsClusterDetailTabContent.js.map +1 -1
- package/build/cjs/ocm/components/HostsClusterDetailTab/HostsClusterDetailTabContentErrors.js +1 -13
- package/build/cjs/ocm/components/HostsClusterDetailTab/HostsClusterDetailTabContentErrors.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/CpuArchitectureDropdown.js +24 -3
- package/build/cjs/ocm/components/clusterConfiguration/CpuArchitectureDropdown.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/CustomManifestCheckbox.js +22 -32
- package/build/cjs/ocm/components/clusterConfiguration/CustomManifestCheckbox.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/OcmBaseDomainField.js +7 -5
- package/build/cjs/ocm/components/clusterConfiguration/OcmBaseDomainField.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/OcmClusterDetailsFormFields.js +3 -4
- package/build/cjs/ocm/components/clusterConfiguration/OcmClusterDetailsFormFields.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/manifestsConfiguration/CustomManifestsPage.js +6 -12
- package/build/cjs/ocm/components/clusterConfiguration/manifestsConfiguration/CustomManifestsPage.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/manifestsConfiguration/components/CustomManifests.js +2 -2
- package/build/cjs/ocm/components/clusterConfiguration/manifestsConfiguration/components/CustomManifests.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/manifestsConfiguration/components/CustomManifestsArray.js +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/manifestsConfiguration/components/CustomManifestsArray.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/manifestsConfiguration/components/CustomManifestsForm.js +49 -123
- package/build/cjs/ocm/components/clusterConfiguration/manifestsConfiguration/components/CustomManifestsForm.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/manifestsConfiguration/components/ExpandedManifest.js +1 -0
- package/build/cjs/ocm/components/clusterConfiguration/manifestsConfiguration/components/ExpandedManifest.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/manifestsConfiguration/components/utils.js +14 -19
- package/build/cjs/ocm/components/clusterConfiguration/manifestsConfiguration/components/utils.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfiguration.js +17 -17
- package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfiguration.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/platformIntegration/ExternalPlatformDropdown.js +2 -1
- package/build/cjs/ocm/components/clusterConfiguration/platformIntegration/ExternalPlatformDropdown.js.map +1 -1
- package/build/cjs/ocm/components/clusterDetail/AssistedInstallerDetailCard.js +2 -1
- package/build/cjs/ocm/components/clusterDetail/AssistedInstallerDetailCard.js.map +1 -1
- package/build/cjs/ocm/components/clusterDetail/AssistedInstallerExtraDetailCard.js +2 -1
- package/build/cjs/ocm/components/clusterDetail/AssistedInstallerExtraDetailCard.js.map +1 -1
- package/build/cjs/ocm/components/clusterDetail/ClusterDetailStatusMessages.js +3 -8
- package/build/cjs/ocm/components/clusterDetail/ClusterDetailStatusMessages.js.map +1 -1
- package/build/cjs/ocm/components/clusterWizard/ClusterDetails.js +5 -12
- package/build/cjs/ocm/components/clusterWizard/ClusterDetails.js.map +1 -1
- package/build/cjs/ocm/components/clusterWizard/ClusterDetailsForm.js +18 -13
- package/build/cjs/ocm/components/clusterWizard/ClusterDetailsForm.js.map +1 -1
- package/build/cjs/ocm/components/clusterWizard/ClusterWizardContext.js.map +1 -1
- package/build/cjs/ocm/components/clusterWizard/ClusterWizardContextProvider.js +45 -36
- package/build/cjs/ocm/components/clusterWizard/ClusterWizardContextProvider.js.map +1 -1
- package/build/cjs/ocm/components/clusters/ClusterPage.js +2 -1
- package/build/cjs/ocm/components/clusters/ClusterPage.js.map +1 -1
- package/build/cjs/ocm/components/featureSupportLevels/FeatureSupportLevelProvider.js +4 -4
- package/build/cjs/ocm/components/featureSupportLevels/FeatureSupportLevelProvider.js.map +1 -1
- package/build/cjs/ocm/components/featureSupportLevels/ReviewClusterFeatureSupportLevels.js +1 -3
- package/build/cjs/ocm/components/featureSupportLevels/ReviewClusterFeatureSupportLevels.js.map +1 -1
- package/build/cjs/ocm/components/featureSupportLevels/featureStateUtils.js +8 -2
- package/build/cjs/ocm/components/featureSupportLevels/featureStateUtils.js.map +1 -1
- package/build/cjs/ocm/components/hosts/HostsDiscoveryTable.js +1 -1
- package/build/cjs/ocm/components/hosts/HostsDiscoveryTable.js.map +1 -1
- package/build/cjs/ocm/hooks/index.js +3 -1
- package/build/cjs/ocm/hooks/index.js.map +1 -1
- package/build/cjs/ocm/hooks/useOpenshiftVersions.js +0 -5
- package/build/cjs/ocm/hooks/useOpenshiftVersions.js.map +1 -1
- package/build/cjs/ocm/hooks/useSupportLevelsAPI.js +38 -4
- package/build/cjs/ocm/hooks/useSupportLevelsAPI.js.map +1 -1
- package/build/cjs/ocm/hooks/useUISettings.js +62 -0
- package/build/cjs/ocm/hooks/useUISettings.js.map +1 -0
- package/build/cjs/ocm/services/ClusterDetailsService.js +2 -2
- package/build/cjs/ocm/services/ClusterDetailsService.js.map +1 -1
- package/build/cjs/ocm/services/ClustersService.js +0 -8
- package/build/cjs/ocm/services/ClustersService.js.map +1 -1
- package/build/cjs/ocm/services/Day2ClusterService.js +13 -4
- package/build/cjs/ocm/services/Day2ClusterService.js.map +1 -1
- package/build/cjs/ocm/services/UISettingsService.js +18 -0
- package/build/cjs/ocm/services/UISettingsService.js.map +1 -0
- package/build/cjs/ocm/services/index.js +3 -1
- package/build/cjs/ocm/services/index.js.map +1 -1
- package/lib/cim/components/Agent/BMCForm.tsx +3 -3
- package/lib/cim/components/ClusterDeployment/ClusterDeploymentDetails.tsx +112 -102
- package/lib/cim/components/ClusterDeployment/ClusterDeploymentDetailsStep.tsx +17 -5
- package/lib/cim/components/ClusterDeployment/ClusterDetailsFormFields.tsx +9 -2
- package/lib/cim/components/ClusterDeployment/helpers.ts +13 -10
- package/lib/cim/components/Hypershift/utils/nodepool.ts +3 -2
- package/lib/cim/components/InfraEnv/InfraEnvFormPage.tsx +11 -2
- package/lib/cim/components/helpers/versions.ts +5 -0
- package/lib/cim/components/modals/AddHostModal.tsx +5 -0
- package/lib/common/api/accounts-management-service/access-token-api.ts +1 -1
- package/lib/common/api/accounts-management-service/current-account-api.ts +13 -0
- package/lib/common/api/accounts-management-service/organizations-api.ts +15 -0
- package/lib/common/api/assisted-service/NewFeatureSupportLevelsAPI.ts +9 -5
- package/lib/common/api/assisted-service/UISettingsAPI.ts +24 -0
- package/lib/common/api/assisted-service/index.ts +1 -0
- package/lib/common/api/authorization-service/all-apis.ts +28 -0
- package/lib/common/components/clusterConfiguration/DiscoveryImageConfigForm.tsx +6 -4
- package/lib/common/components/clusterConfiguration/DiskEncryptionFields/DiskEncryptionControlGroup.tsx +5 -1
- package/lib/common/components/clusterConfiguration/DiskEncryptionFields/DiskEncryptionMode.tsx +27 -16
- package/lib/common/components/clusterConfiguration/DiskEncryptionFields/TangServers.tsx +27 -17
- package/lib/common/components/clusterConfiguration/DownloadIso.tsx +3 -1
- package/lib/common/components/clusterConfiguration/OpenShiftVersionSelect.tsx +4 -1
- package/lib/common/components/clusterDetail/PostInstallAlert.tsx +29 -0
- package/lib/common/components/clusterDetail/index.ts +1 -0
- package/lib/common/components/clusterWizard/ReviewValidations.tsx +3 -0
- package/lib/common/components/hosts/HostRowDetail.tsx +3 -1
- package/lib/common/components/newFeatureSupportLevels/types.ts +4 -2
- package/lib/common/components/ui/NoPermissionsError.tsx +19 -0
- package/lib/common/components/ui/formik/InputField.tsx +4 -5
- package/lib/common/components/ui/formik/RichInputField.tsx +6 -2
- package/lib/common/components/ui/formik/SelectField.tsx +1 -1
- package/lib/common/components/ui/formik/types.ts +2 -1
- package/lib/common/components/ui/formik/validationSchemas.ts +16 -6
- package/lib/common/components/ui/index.ts +1 -0
- package/lib/common/config/constants.ts +3 -2
- package/lib/common/features/featureGate.tsx +0 -4
- package/lib/common/types/cpuArchitecture.ts +3 -8
- package/lib/common/types/featureSupportLevel.ts +6 -5
- package/lib/ocm/components/AddHosts/AddHosts.tsx +1 -3
- package/lib/ocm/components/AddHosts/InventoryAddHost.tsx +2 -8
- package/lib/ocm/components/AddHosts/day2Wizard/Day2ClusterDetails.tsx +6 -11
- package/lib/ocm/components/AddHosts/day2Wizard/Day2StaticIpHostConfigurations.tsx +34 -19
- package/lib/ocm/components/HostsClusterDetailTab/HostsClusterDetailTabContent.tsx +6 -37
- package/lib/ocm/components/HostsClusterDetailTab/HostsClusterDetailTabContentErrors.tsx +1 -15
- package/lib/ocm/components/clusterConfiguration/CpuArchitectureDropdown.tsx +62 -5
- package/lib/ocm/components/clusterConfiguration/CustomManifestCheckbox.tsx +25 -32
- package/lib/ocm/components/clusterConfiguration/OcmBaseDomainField.tsx +23 -12
- package/lib/ocm/components/clusterConfiguration/OcmClusterDetailsFormFields.tsx +7 -7
- package/lib/ocm/components/clusterConfiguration/manifestsConfiguration/CustomManifestsPage.tsx +20 -27
- package/lib/ocm/components/clusterConfiguration/manifestsConfiguration/components/CustomManifests.tsx +3 -3
- package/lib/ocm/components/clusterConfiguration/manifestsConfiguration/components/CustomManifestsArray.tsx +2 -2
- package/lib/ocm/components/clusterConfiguration/manifestsConfiguration/components/CustomManifestsForm.tsx +69 -182
- package/lib/ocm/components/clusterConfiguration/manifestsConfiguration/components/ExpandedManifest.tsx +1 -1
- package/lib/ocm/components/clusterConfiguration/manifestsConfiguration/components/utils.tsx +9 -15
- package/lib/ocm/components/clusterConfiguration/manifestsConfiguration/data/dataTypes.ts +0 -1
- package/lib/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfiguration.tsx +48 -25
- package/lib/ocm/components/clusterConfiguration/platformIntegration/ExternalPlatformDropdown.tsx +12 -5
- package/lib/ocm/components/clusterDetail/AssistedInstallerDetailCard.tsx +2 -1
- package/lib/ocm/components/clusterDetail/AssistedInstallerExtraDetailCard.tsx +2 -1
- package/lib/ocm/components/clusterDetail/ClusterDetailStatusMessages.tsx +3 -17
- package/lib/ocm/components/clusterWizard/ClusterDetails.tsx +9 -16
- package/lib/ocm/components/clusterWizard/ClusterDetailsForm.tsx +18 -16
- package/lib/ocm/components/clusterWizard/ClusterWizardContext.tsx +5 -3
- package/lib/ocm/components/clusterWizard/ClusterWizardContextProvider.tsx +75 -54
- package/lib/ocm/components/clusters/ClusterPage.tsx +2 -1
- package/lib/ocm/components/featureSupportLevels/FeatureSupportLevelProvider.tsx +14 -3
- package/lib/ocm/components/featureSupportLevels/ReviewClusterFeatureSupportLevels.tsx +1 -8
- package/lib/ocm/components/featureSupportLevels/featureStateUtils.ts +18 -3
- package/lib/ocm/components/hosts/HostsDiscoveryTable.tsx +1 -0
- package/lib/ocm/hooks/index.ts +1 -0
- package/lib/ocm/hooks/useOpenshiftVersions.tsx +1 -15
- package/lib/ocm/hooks/useSupportLevelsAPI.ts +65 -5
- package/lib/ocm/hooks/useUISettings.ts +71 -0
- package/lib/ocm/services/ClusterDetailsService.ts +3 -1
- package/lib/ocm/services/ClustersService.ts +0 -10
- package/lib/ocm/services/Day2ClusterService.ts +17 -3
- package/lib/ocm/services/UISettingsService.ts +17 -0
- package/lib/ocm/services/index.ts +1 -0
- package/lib/ocm/services/types.ts +5 -0
- package/package.json +3 -3
- package/build/@types/common/sevices/DateAndTime.d.ts.map +0 -1
- package/build/cjs/common/sevices/DateAndTime.js.map +0 -1
- /package/build/@types/common/{sevices → services}/DateAndTime.d.ts +0 -0
- /package/build/cjs/common/{sevices → services}/DateAndTime.js +0 -0
- /package/lib/common/{sevices → services}/DateAndTime.tsx +0 -0
|
@@ -1,27 +1,34 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { useAlerts } from '../../common';
|
|
2
|
+
import { CpuArchitecture, SupportedCpuArchitecture, useAlerts } from '../../common';
|
|
3
3
|
import {
|
|
4
4
|
ArchitectureSupportLevelMap,
|
|
5
5
|
NewFeatureSupportLevelMap,
|
|
6
6
|
} from '../../common/components/newFeatureSupportLevels';
|
|
7
7
|
import { getApiErrorMessage, handleApiError } from '../api';
|
|
8
8
|
import NewFeatureSupportLevelsAPI from '../../common/api/assisted-service/NewFeatureSupportLevelsAPI';
|
|
9
|
+
import { PlatformType } from '@openshift-assisted/types/./assisted-installer-service';
|
|
9
10
|
|
|
10
|
-
type SupportLevelAPIResources = 'architectures' | 'features';
|
|
11
|
+
type SupportLevelAPIResources = 'architectures' | 'features' | 'featureForAllCpus';
|
|
11
12
|
type UseSupportLevelAPIResponse<T extends SupportLevelAPIResources> = T extends 'architectures'
|
|
12
13
|
? ArchitectureSupportLevelMap | null
|
|
13
14
|
: T extends 'features'
|
|
14
15
|
? NewFeatureSupportLevelMap | null
|
|
16
|
+
: T extends 'featureForAllCpus'
|
|
17
|
+
? Record<SupportedCpuArchitecture, NewFeatureSupportLevelMap | null> | null
|
|
15
18
|
: null;
|
|
16
19
|
|
|
17
20
|
export default function useSupportLevelsAPI<T extends SupportLevelAPIResources>(
|
|
18
21
|
resourceKind: T,
|
|
19
22
|
openshiftVersion?: string,
|
|
20
|
-
cpuArchitecture?:
|
|
23
|
+
cpuArchitecture?: CpuArchitecture,
|
|
24
|
+
platformType?: PlatformType,
|
|
25
|
+
supportedCpuArchitectures?: SupportedCpuArchitecture[],
|
|
21
26
|
): UseSupportLevelAPIResponse<T> | null {
|
|
22
27
|
const [cpuArchitectures, setCpuArchitectures] =
|
|
23
28
|
React.useState<ArchitectureSupportLevelMap | null>(null);
|
|
24
29
|
const [features, setFeatures] = React.useState<NewFeatureSupportLevelMap | null>(null);
|
|
30
|
+
const [supportLevelData, setSupportLevelData] =
|
|
31
|
+
React.useState<Record<SupportedCpuArchitecture, NewFeatureSupportLevelMap | null>>();
|
|
25
32
|
const { addAlert } = useAlerts();
|
|
26
33
|
|
|
27
34
|
const fetchArchitecturesSupportLevels = React.useCallback(
|
|
@@ -45,11 +52,16 @@ export default function useSupportLevelsAPI<T extends SupportLevelAPIResources>(
|
|
|
45
52
|
);
|
|
46
53
|
|
|
47
54
|
const fetchFeaturesSupportLevels = React.useCallback(
|
|
48
|
-
async (
|
|
55
|
+
async (
|
|
56
|
+
openshiftVersion: string,
|
|
57
|
+
cpuArchitecture?: CpuArchitecture,
|
|
58
|
+
platformType?: PlatformType,
|
|
59
|
+
) => {
|
|
49
60
|
try {
|
|
50
61
|
const { data: features } = await NewFeatureSupportLevelsAPI.featuresSupportLevel(
|
|
51
62
|
openshiftVersion,
|
|
52
63
|
cpuArchitecture,
|
|
64
|
+
platformType,
|
|
53
65
|
);
|
|
54
66
|
setFeatures(features.features);
|
|
55
67
|
} catch (e) {
|
|
@@ -65,12 +77,55 @@ export default function useSupportLevelsAPI<T extends SupportLevelAPIResources>(
|
|
|
65
77
|
[addAlert],
|
|
66
78
|
);
|
|
67
79
|
|
|
80
|
+
const fetchFeaturesSupportLevelsForAllCpuArchs = React.useCallback(
|
|
81
|
+
async (
|
|
82
|
+
supportedCpuArchitectures: SupportedCpuArchitecture[],
|
|
83
|
+
openshiftVersion: string,
|
|
84
|
+
platformType?: PlatformType,
|
|
85
|
+
) => {
|
|
86
|
+
try {
|
|
87
|
+
const data: Record<SupportedCpuArchitecture, NewFeatureSupportLevelMap | null> = {
|
|
88
|
+
x86_64: null,
|
|
89
|
+
arm64: null,
|
|
90
|
+
ppc64le: null,
|
|
91
|
+
s390x: null,
|
|
92
|
+
};
|
|
93
|
+
if (supportedCpuArchitectures) {
|
|
94
|
+
for (const cpuArch of supportedCpuArchitectures) {
|
|
95
|
+
const { data: features } = await NewFeatureSupportLevelsAPI.featuresSupportLevel(
|
|
96
|
+
openshiftVersion,
|
|
97
|
+
cpuArch,
|
|
98
|
+
platformType,
|
|
99
|
+
);
|
|
100
|
+
data[cpuArch] = features.features;
|
|
101
|
+
}
|
|
102
|
+
setSupportLevelData(data);
|
|
103
|
+
}
|
|
104
|
+
} catch (e) {
|
|
105
|
+
handleApiError(e, () =>
|
|
106
|
+
addAlert({
|
|
107
|
+
title: 'Failed to retrieve feature support levels',
|
|
108
|
+
message: getApiErrorMessage(e),
|
|
109
|
+
}),
|
|
110
|
+
);
|
|
111
|
+
setFeatures(null);
|
|
112
|
+
}
|
|
113
|
+
},
|
|
114
|
+
[addAlert],
|
|
115
|
+
);
|
|
116
|
+
|
|
68
117
|
React.useEffect(() => {
|
|
69
118
|
if (openshiftVersion) {
|
|
70
119
|
if (resourceKind === 'architectures') {
|
|
71
120
|
void fetchArchitecturesSupportLevels(openshiftVersion);
|
|
121
|
+
} else if (resourceKind === 'featureForAllCpus' && supportedCpuArchitectures) {
|
|
122
|
+
void fetchFeaturesSupportLevelsForAllCpuArchs(
|
|
123
|
+
supportedCpuArchitectures,
|
|
124
|
+
openshiftVersion,
|
|
125
|
+
platformType,
|
|
126
|
+
);
|
|
72
127
|
} else {
|
|
73
|
-
void fetchFeaturesSupportLevels(openshiftVersion, cpuArchitecture);
|
|
128
|
+
void fetchFeaturesSupportLevels(openshiftVersion, cpuArchitecture, platformType);
|
|
74
129
|
}
|
|
75
130
|
}
|
|
76
131
|
}, [
|
|
@@ -79,10 +134,15 @@ export default function useSupportLevelsAPI<T extends SupportLevelAPIResources>(
|
|
|
79
134
|
fetchArchitecturesSupportLevels,
|
|
80
135
|
fetchFeaturesSupportLevels,
|
|
81
136
|
resourceKind,
|
|
137
|
+
platformType,
|
|
138
|
+
supportedCpuArchitectures,
|
|
139
|
+
fetchFeaturesSupportLevelsForAllCpuArchs,
|
|
82
140
|
]);
|
|
83
141
|
|
|
84
142
|
if (resourceKind === 'architectures') {
|
|
85
143
|
return cpuArchitectures as UseSupportLevelAPIResponse<T>;
|
|
144
|
+
} else if (resourceKind === 'featureForAllCpus') {
|
|
145
|
+
return supportLevelData as UseSupportLevelAPIResponse<T>;
|
|
86
146
|
} else {
|
|
87
147
|
return features as UseSupportLevelAPIResponse<T>;
|
|
88
148
|
}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Cluster } from '@openshift-assisted/types/./assisted-installer-service';
|
|
3
|
+
import { UISettingService, UISettingsValues } from '../services';
|
|
4
|
+
import { ClustersAPI } from '../services/apis';
|
|
5
|
+
|
|
6
|
+
const useUISettings = (clusterId?: Cluster['id']) => {
|
|
7
|
+
const [uiSettings, setUISettings] = React.useState<UISettingsValues>();
|
|
8
|
+
const [loading, setLoading] = React.useState(true);
|
|
9
|
+
const [error, setError] = React.useState<string>('');
|
|
10
|
+
|
|
11
|
+
const updateUISettings = React.useCallback(
|
|
12
|
+
async (newSettings: UISettingsValues) => {
|
|
13
|
+
if (clusterId) {
|
|
14
|
+
const updatedSettings = { ...uiSettings, ...newSettings };
|
|
15
|
+
try {
|
|
16
|
+
await UISettingService.update(clusterId, updatedSettings);
|
|
17
|
+
setUISettings(updatedSettings);
|
|
18
|
+
} catch (e) {
|
|
19
|
+
throw new Error();
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
[clusterId, uiSettings],
|
|
24
|
+
);
|
|
25
|
+
|
|
26
|
+
React.useEffect(() => {
|
|
27
|
+
const handleUISettingsError = async () => {
|
|
28
|
+
if (clusterId) {
|
|
29
|
+
try {
|
|
30
|
+
const { data: customManifests } = await ClustersAPI.getManifests(clusterId);
|
|
31
|
+
|
|
32
|
+
const mockUISettings: UISettingsValues = {
|
|
33
|
+
addCustomManifests: !!customManifests.length,
|
|
34
|
+
customManifestsAdded: !!customManifests.length,
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
setUISettings(mockUISettings);
|
|
38
|
+
} catch (error) {
|
|
39
|
+
setError('Failed to retrieve cluster custom manifests information');
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
const fetchUISettings = async () => {
|
|
45
|
+
if (clusterId) {
|
|
46
|
+
try {
|
|
47
|
+
const settings = await UISettingService.fetch(clusterId);
|
|
48
|
+
setUISettings(settings);
|
|
49
|
+
} catch (e) {
|
|
50
|
+
await handleUISettingsError();
|
|
51
|
+
}
|
|
52
|
+
} else {
|
|
53
|
+
setUISettings({});
|
|
54
|
+
}
|
|
55
|
+
setLoading(false);
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
if (!uiSettings) {
|
|
59
|
+
void fetchUISettings();
|
|
60
|
+
}
|
|
61
|
+
}, [clusterId, setUISettings, uiSettings]);
|
|
62
|
+
|
|
63
|
+
const returnValue = React.useMemo(
|
|
64
|
+
() => ({ uiSettings, loading, error, updateUISettings }),
|
|
65
|
+
[uiSettings, loading, error, updateUISettings],
|
|
66
|
+
);
|
|
67
|
+
|
|
68
|
+
return returnValue;
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
export default useUISettings;
|
|
@@ -92,6 +92,7 @@ const ClusterDetailsService = {
|
|
|
92
92
|
cluster,
|
|
93
93
|
infraEnv,
|
|
94
94
|
urlSearchParams,
|
|
95
|
+
addCustomManifests,
|
|
95
96
|
...args
|
|
96
97
|
}: {
|
|
97
98
|
cluster?: Cluster;
|
|
@@ -100,6 +101,7 @@ const ClusterDetailsService = {
|
|
|
100
101
|
managedDomains: ManagedDomain[];
|
|
101
102
|
ocpVersions: OpenshiftVersionOptionType[];
|
|
102
103
|
urlSearchParams: string;
|
|
104
|
+
addCustomManifests?: boolean;
|
|
103
105
|
}): OcmClusterDetailsValues {
|
|
104
106
|
const values = getClusterDetailsInitialValues({
|
|
105
107
|
cluster,
|
|
@@ -118,7 +120,7 @@ const ClusterDetailsService = {
|
|
|
118
120
|
...values,
|
|
119
121
|
cpuArchitecture,
|
|
120
122
|
hostsNetworkConfigurationType,
|
|
121
|
-
addCustomManifest:
|
|
123
|
+
addCustomManifest: !!addCustomManifests,
|
|
122
124
|
isCMNSupported: true,
|
|
123
125
|
};
|
|
124
126
|
},
|
|
@@ -11,7 +11,6 @@ import {
|
|
|
11
11
|
} from '../components/clusterConfiguration/manifestsConfiguration/data/dataTypes';
|
|
12
12
|
import {
|
|
13
13
|
Cluster,
|
|
14
|
-
CreateManifestParams,
|
|
15
14
|
Host,
|
|
16
15
|
InfraEnvCreateParams,
|
|
17
16
|
UpdateManifestParams,
|
|
@@ -138,15 +137,6 @@ const ClustersService = {
|
|
|
138
137
|
return Promise.all(promises);
|
|
139
138
|
},
|
|
140
139
|
|
|
141
|
-
createDummyManifest(clusterId: Cluster['id']) {
|
|
142
|
-
const dummyManifest: CreateManifestParams = {
|
|
143
|
-
folder: 'manifests' as 'manifests' | 'openshift',
|
|
144
|
-
fileName: 'manifest1.yaml',
|
|
145
|
-
content: '',
|
|
146
|
-
};
|
|
147
|
-
return ClustersAPI.createCustomManifest(clusterId, dummyManifest);
|
|
148
|
-
},
|
|
149
|
-
|
|
150
140
|
updateCustomManifest(
|
|
151
141
|
existingManifest: CustomManifestValues,
|
|
152
142
|
updatedManifest: CustomManifestValues,
|
|
@@ -3,7 +3,11 @@ import { ClustersAPI } from './apis';
|
|
|
3
3
|
import { CpuArchitecture, SupportedCpuArchitecture } from '../../common';
|
|
4
4
|
import { OcmClusterType } from '../components/AddHosts/types';
|
|
5
5
|
import { mapOcmArchToCpuArchitecture } from './CpuArchitectureService';
|
|
6
|
-
import {
|
|
6
|
+
import {
|
|
7
|
+
Cluster,
|
|
8
|
+
Platform,
|
|
9
|
+
PlatformType,
|
|
10
|
+
} from '@openshift-assisted/types/assisted-installer-service';
|
|
7
11
|
|
|
8
12
|
export const getApiVipDnsName = (ocmCluster: OcmClusterType) => {
|
|
9
13
|
let apiVipDnsname = '';
|
|
@@ -30,12 +34,20 @@ export const getApiVipDnsName = (ocmCluster: OcmClusterType) => {
|
|
|
30
34
|
return { apiVipDnsname, errorType: apiVipDnsname ? '' : urlType };
|
|
31
35
|
};
|
|
32
36
|
|
|
37
|
+
export const mapCloudProviderToPlatformType = (cloudProviderId?: string) => {
|
|
38
|
+
const platformType = cloudProviderId === 'external' ? 'oci' : cloudProviderId;
|
|
39
|
+
const platform: Platform = {
|
|
40
|
+
type: (platformType as PlatformType) || 'baremetal',
|
|
41
|
+
};
|
|
42
|
+
return platform;
|
|
43
|
+
};
|
|
44
|
+
|
|
33
45
|
const Day2ClusterService = {
|
|
34
46
|
getOpenshiftClusterId(ocmCluster?: OcmClusterType) {
|
|
35
47
|
return ocmCluster && ocmCluster.external_id;
|
|
36
48
|
},
|
|
37
49
|
|
|
38
|
-
async fetchCluster(ocmCluster: OcmClusterType, pullSecret: string
|
|
50
|
+
async fetchCluster(ocmCluster: OcmClusterType, pullSecret: string) {
|
|
39
51
|
const openshiftClusterId = Day2ClusterService.getOpenshiftClusterId(ocmCluster);
|
|
40
52
|
|
|
41
53
|
if (!openshiftClusterId) {
|
|
@@ -53,7 +65,7 @@ const Day2ClusterService = {
|
|
|
53
65
|
ocmCluster.display_name || ocmCluster.name || openshiftClusterId,
|
|
54
66
|
getApiVipDnsName(ocmCluster).apiVipDnsname,
|
|
55
67
|
pullSecret,
|
|
56
|
-
|
|
68
|
+
ocmCluster.openshift_version,
|
|
57
69
|
mapOcmArchToCpuArchitecture(ocmCluster.cpu_architecture) || CpuArchitecture.x86,
|
|
58
70
|
);
|
|
59
71
|
},
|
|
@@ -69,6 +81,7 @@ const Day2ClusterService = {
|
|
|
69
81
|
if (day2Clusters.length > 0) {
|
|
70
82
|
return day2Clusters[0].id;
|
|
71
83
|
}
|
|
84
|
+
|
|
72
85
|
return undefined;
|
|
73
86
|
},
|
|
74
87
|
|
|
@@ -117,6 +130,7 @@ const Day2ClusterService = {
|
|
|
117
130
|
// The field "cpu_architecture" is calculated based on the existing hosts' architecture
|
|
118
131
|
// It can be a specific architecture, or "multi" if hosts from several architectures have been discovered
|
|
119
132
|
cpuArchitecture: mapOcmArchToCpuArchitecture(ocmCluster.cpu_architecture),
|
|
133
|
+
platform: mapCloudProviderToPlatformType(ocmCluster.cloud_provider?.id),
|
|
120
134
|
};
|
|
121
135
|
}
|
|
122
136
|
return treakedCluster;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Cluster } from '@openshift-assisted/types/./assisted-installer-service';
|
|
2
|
+
import { UISettingsAPI } from '../../common/api/assisted-service';
|
|
3
|
+
import { UISettingsValues } from './types';
|
|
4
|
+
|
|
5
|
+
const PREFIX_LENGHT = 6;
|
|
6
|
+
|
|
7
|
+
const UISettingService = {
|
|
8
|
+
async fetch(clusterId: Cluster['id']) {
|
|
9
|
+
const { data } = await UISettingsAPI.get(clusterId);
|
|
10
|
+
return (data.length ? JSON.parse(data.slice(PREFIX_LENGHT)) : {}) as UISettingsValues;
|
|
11
|
+
},
|
|
12
|
+
update(clusterId: Cluster['id'], data: UISettingsValues) {
|
|
13
|
+
return UISettingsAPI.put(clusterId, `AI_UI:${JSON.stringify(data)}`);
|
|
14
|
+
},
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
export default UISettingService;
|
|
@@ -7,5 +7,6 @@ export { default as DiscoveryImageFormService } from './DiscoveryImageFormServic
|
|
|
7
7
|
export { default as DiskEncryptionService } from './DiskEncryptionService';
|
|
8
8
|
export { default as OperatorsService } from './OperatorsService';
|
|
9
9
|
export { default as NewFeatureSupportLevelsService } from './NewFeatureSupportLevelsService';
|
|
10
|
+
export { default as UISettingService } from './UISettingsService';
|
|
10
11
|
export * from './types';
|
|
11
12
|
export * as APIs from './apis';
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"dependencies": {
|
|
3
|
-
"@openshift-assisted/locales": "2.9.
|
|
4
|
-
"@openshift-assisted/types": "2.9.
|
|
3
|
+
"@openshift-assisted/locales": "2.9.9-cim",
|
|
4
|
+
"@openshift-assisted/types": "2.9.9-cim",
|
|
5
5
|
"axios-case-converter": "^0.11.1",
|
|
6
6
|
"camel-case": "^4.1.2",
|
|
7
7
|
"cidr-tools": "^4.3.0",
|
|
@@ -127,5 +127,5 @@
|
|
|
127
127
|
]
|
|
128
128
|
}
|
|
129
129
|
},
|
|
130
|
-
"version": "2.9.
|
|
130
|
+
"version": "2.9.9-cim"
|
|
131
131
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DateAndTime.d.ts","sourceRoot":"","sources":["../../../../lib/common/sevices/DateAndTime.tsx"],"names":[],"mappings":"AAEA,wBAAgB,sBAAsB,CAAC,SAAS,EAAE,MAAM,UAIvD;AAED,wBAAgB,wBAAwB,CAAC,oBAAoB,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,MAAM,UAM1F"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DateAndTime.js","sourceRoot":"","sources":["../../../../lib/common/sevices/DateAndTime.tsx"],"names":[],"mappings":";;;AAAA,mDAA4D;AAE5D,SAAgB,sBAAsB,CAAC,SAAiB;IACtD,MAAM,UAAU,GAAG,IAAI,IAAI,CAAC,SAAS,CAAC,CAAC;IACvC,MAAM,KAAK,GAAG,IAAI,IAAI,EAAE,CAAC;IACzB,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,OAAO,EAAE,GAAG,UAAU,CAAC,OAAO,EAAE,CAAC,GAAG,sBAAU,CAAC,CAAC;AACnF,CAAC;AAJD,wDAIC;AAED,SAAgB,wBAAwB,CAAC,oBAA4B,EAAE,WAAoB;IACzF,IAAI,WAAW,IAAI,WAAW,KAAK,qBAAS,EAAE;QAC5C,OAAO,oBAAoB,GAAG,sBAAsB,CAAC,WAAW,CAAC,CAAC;KACnE;SAAM;QACL,OAAO,oBAAoB,CAAC;KAC7B;AACH,CAAC;AAND,4DAMC"}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|