@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
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
} from '../../types';
|
|
20
20
|
import ClusterDeploymentCredentials from './ClusterDeploymentCredentials';
|
|
21
21
|
import { shouldShowClusterCredentials, shouldShowClusterInstallationProgress } from './helpers';
|
|
22
|
-
import {
|
|
22
|
+
import { EventsModal } from '../../../common/components/ui/eventsModal';
|
|
23
23
|
import ClusterDeploymentDetailsTable from './ClusterDeploymentDetailsTable';
|
|
24
24
|
import { FetchSecret } from './types';
|
|
25
25
|
import { getClusterProperties, getConsoleUrl } from '../helpers/clusterDeployment';
|
|
@@ -45,6 +45,7 @@ const ClusterDeploymentDetails: React.FC<ClusterDeploymentDetailsProps> = ({
|
|
|
45
45
|
const [progressCardExpanded, setProgressCardExpanded] = React.useState(true);
|
|
46
46
|
const [inventoryCardExpanded, setInventoryCardExpanded] = React.useState(true);
|
|
47
47
|
const [detailsCardExpanded, setDetailsCardExpanded] = React.useState(true);
|
|
48
|
+
const [isEventsModalOpen, setIsEventsModalOpen] = React.useState(false);
|
|
48
49
|
|
|
49
50
|
const clusterAgents = agents.filter(
|
|
50
51
|
(a) =>
|
|
@@ -60,120 +61,129 @@ const ClusterDeploymentDetails: React.FC<ClusterDeploymentDetailsProps> = ({
|
|
|
60
61
|
);
|
|
61
62
|
const { t } = useTranslation();
|
|
62
63
|
return (
|
|
63
|
-
|
|
64
|
-
|
|
64
|
+
<>
|
|
65
|
+
<Stack hasGutter>
|
|
66
|
+
{shouldShowClusterInstallationProgress(agentClusterInstall) && (
|
|
67
|
+
<StackItem>
|
|
68
|
+
<Card id="cluster-installation-progress-card" isExpanded={progressCardExpanded}>
|
|
69
|
+
<CardHeader
|
|
70
|
+
onExpand={() => setProgressCardExpanded(!progressCardExpanded)}
|
|
71
|
+
toggleButtonProps={{
|
|
72
|
+
id: 'progress-card-toggle-button',
|
|
73
|
+
'aria-label': 'Cluster installation process',
|
|
74
|
+
'aria-labelledby': 'titleId progress-card-toggle-button',
|
|
75
|
+
'aria-expanded': progressCardExpanded,
|
|
76
|
+
}}
|
|
77
|
+
>
|
|
78
|
+
<CardTitle id="titleId">{t('ai:Cluster installation process')}</CardTitle>
|
|
79
|
+
</CardHeader>
|
|
80
|
+
<CardExpandableContent>
|
|
81
|
+
<CardBody>
|
|
82
|
+
<Stack hasGutter>
|
|
83
|
+
{shouldShowClusterCredentials(agentClusterInstall) && (
|
|
84
|
+
<StackItem>
|
|
85
|
+
<ClusterDeploymentCredentials
|
|
86
|
+
clusterDeployment={clusterDeployment}
|
|
87
|
+
agentClusterInstall={agentClusterInstall}
|
|
88
|
+
agents={clusterAgents}
|
|
89
|
+
fetchSecret={fetchSecret}
|
|
90
|
+
consoleUrl={getConsoleUrl(clusterDeployment)}
|
|
91
|
+
/>
|
|
92
|
+
</StackItem>
|
|
93
|
+
)}
|
|
94
|
+
<StackItem>
|
|
95
|
+
<ClusterDeploymentKubeconfigDownload
|
|
96
|
+
clusterDeployment={clusterDeployment}
|
|
97
|
+
agentClusterInstall={agentClusterInstall}
|
|
98
|
+
fetchSecret={fetchSecret}
|
|
99
|
+
/>{' '}
|
|
100
|
+
<Button
|
|
101
|
+
id="cluster-events-button"
|
|
102
|
+
variant={ButtonVariant.link}
|
|
103
|
+
style={{ textAlign: 'right' }}
|
|
104
|
+
onClick={() => setIsEventsModalOpen(true)}
|
|
105
|
+
>
|
|
106
|
+
{t('ai:View cluster events')}
|
|
107
|
+
</Button>
|
|
108
|
+
</StackItem>
|
|
109
|
+
</Stack>
|
|
110
|
+
</CardBody>
|
|
111
|
+
</CardExpandableContent>
|
|
112
|
+
</Card>
|
|
113
|
+
</StackItem>
|
|
114
|
+
)}
|
|
65
115
|
<StackItem>
|
|
66
|
-
<Card id="cluster-
|
|
116
|
+
<Card id="cluster-inventory-card" isExpanded={inventoryCardExpanded}>
|
|
67
117
|
<CardHeader
|
|
68
|
-
onExpand={() =>
|
|
118
|
+
onExpand={() => setInventoryCardExpanded(!inventoryCardExpanded)}
|
|
69
119
|
toggleButtonProps={{
|
|
70
|
-
id: '
|
|
71
|
-
'aria-label': '
|
|
72
|
-
'aria-labelledby': 'titleId
|
|
73
|
-
'aria-expanded':
|
|
120
|
+
id: 'inventory-card-toggle-button',
|
|
121
|
+
'aria-label': 'Hosts inventory',
|
|
122
|
+
'aria-labelledby': 'titleId inventory-card-toggle-button',
|
|
123
|
+
'aria-expanded': inventoryCardExpanded,
|
|
74
124
|
}}
|
|
75
125
|
>
|
|
76
|
-
<CardTitle id="titleId">{t('ai:
|
|
126
|
+
<CardTitle id="titleId">{t('ai:Hosts inventory')}</CardTitle>
|
|
77
127
|
</CardHeader>
|
|
78
128
|
<CardExpandableContent>
|
|
79
129
|
<CardBody>
|
|
80
|
-
<
|
|
81
|
-
{
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
130
|
+
<ClusterDeploymentDetailsTable
|
|
131
|
+
agents={clusterAgents}
|
|
132
|
+
agentClusterInstall={agentClusterInstall}
|
|
133
|
+
/>
|
|
134
|
+
</CardBody>
|
|
135
|
+
</CardExpandableContent>
|
|
136
|
+
</Card>
|
|
137
|
+
</StackItem>
|
|
138
|
+
<StackItem>
|
|
139
|
+
<Card id="cluster-details-card" isExpanded={detailsCardExpanded}>
|
|
140
|
+
<CardHeader
|
|
141
|
+
onExpand={() => setDetailsCardExpanded(!detailsCardExpanded)}
|
|
142
|
+
toggleButtonProps={{
|
|
143
|
+
id: 'details-card-toggle-button',
|
|
144
|
+
'aria-label': 'Details',
|
|
145
|
+
'aria-labelledby': 'titleId details-card-toggle-button',
|
|
146
|
+
'aria-expanded': detailsCardExpanded,
|
|
147
|
+
}}
|
|
148
|
+
>
|
|
149
|
+
<CardTitle id="titleId">{t('ai:Details')}</CardTitle>
|
|
150
|
+
</CardHeader>
|
|
151
|
+
<CardExpandableContent>
|
|
152
|
+
<CardBody>
|
|
153
|
+
<ClusterPropertiesList
|
|
154
|
+
leftItems={[
|
|
155
|
+
clusterProperties.name,
|
|
156
|
+
clusterProperties.openshiftVersion,
|
|
157
|
+
clusterProperties.clusterId,
|
|
158
|
+
clusterProperties.installedTimestamp,
|
|
159
|
+
clusterProperties.baseDnsDomain,
|
|
160
|
+
]}
|
|
161
|
+
rightItems={[
|
|
162
|
+
clusterProperties.apiVip,
|
|
163
|
+
clusterProperties.ingressVip,
|
|
164
|
+
clusterProperties.clusterNetworkCidr,
|
|
165
|
+
clusterProperties.clusterNetworkHostPrefix,
|
|
166
|
+
clusterProperties.serviceNetworkCidr,
|
|
167
|
+
]}
|
|
168
|
+
/>
|
|
113
169
|
</CardBody>
|
|
114
170
|
</CardExpandableContent>
|
|
115
171
|
</Card>
|
|
116
172
|
</StackItem>
|
|
173
|
+
</Stack>
|
|
174
|
+
{isEventsModalOpen && (
|
|
175
|
+
<EventsModal
|
|
176
|
+
entityKind="cluster"
|
|
177
|
+
cluster={cluster}
|
|
178
|
+
title={t('ai:Cluster Events')}
|
|
179
|
+
onFetchEvents={onFetchEvents}
|
|
180
|
+
hostId={undefined}
|
|
181
|
+
disablePagination
|
|
182
|
+
isOpen
|
|
183
|
+
onClose={() => setIsEventsModalOpen(false)}
|
|
184
|
+
/>
|
|
117
185
|
)}
|
|
118
|
-
|
|
119
|
-
<Card id="cluster-inventory-card" isExpanded={inventoryCardExpanded}>
|
|
120
|
-
<CardHeader
|
|
121
|
-
onExpand={() => setInventoryCardExpanded(!inventoryCardExpanded)}
|
|
122
|
-
toggleButtonProps={{
|
|
123
|
-
id: 'inventory-card-toggle-button',
|
|
124
|
-
'aria-label': 'Hosts inventory',
|
|
125
|
-
'aria-labelledby': 'titleId inventory-card-toggle-button',
|
|
126
|
-
'aria-expanded': inventoryCardExpanded,
|
|
127
|
-
}}
|
|
128
|
-
>
|
|
129
|
-
<CardTitle id="titleId">{t('ai:Hosts inventory')}</CardTitle>
|
|
130
|
-
</CardHeader>
|
|
131
|
-
<CardExpandableContent>
|
|
132
|
-
<CardBody>
|
|
133
|
-
<ClusterDeploymentDetailsTable
|
|
134
|
-
agents={clusterAgents}
|
|
135
|
-
agentClusterInstall={agentClusterInstall}
|
|
136
|
-
/>
|
|
137
|
-
</CardBody>
|
|
138
|
-
</CardExpandableContent>
|
|
139
|
-
</Card>
|
|
140
|
-
</StackItem>
|
|
141
|
-
<StackItem>
|
|
142
|
-
<Card id="cluster-details-card" isExpanded={detailsCardExpanded}>
|
|
143
|
-
<CardHeader
|
|
144
|
-
onExpand={() => setDetailsCardExpanded(!detailsCardExpanded)}
|
|
145
|
-
toggleButtonProps={{
|
|
146
|
-
id: 'details-card-toggle-button',
|
|
147
|
-
'aria-label': 'Details',
|
|
148
|
-
'aria-labelledby': 'titleId details-card-toggle-button',
|
|
149
|
-
'aria-expanded': detailsCardExpanded,
|
|
150
|
-
}}
|
|
151
|
-
>
|
|
152
|
-
<CardTitle id="titleId">{t('ai:Details')}</CardTitle>
|
|
153
|
-
</CardHeader>
|
|
154
|
-
<CardExpandableContent>
|
|
155
|
-
<CardBody>
|
|
156
|
-
<ClusterPropertiesList
|
|
157
|
-
leftItems={[
|
|
158
|
-
clusterProperties.name,
|
|
159
|
-
clusterProperties.openshiftVersion,
|
|
160
|
-
clusterProperties.clusterId,
|
|
161
|
-
clusterProperties.installedTimestamp,
|
|
162
|
-
clusterProperties.baseDnsDomain,
|
|
163
|
-
]}
|
|
164
|
-
rightItems={[
|
|
165
|
-
clusterProperties.apiVip,
|
|
166
|
-
clusterProperties.ingressVip,
|
|
167
|
-
clusterProperties.clusterNetworkCidr,
|
|
168
|
-
clusterProperties.clusterNetworkHostPrefix,
|
|
169
|
-
clusterProperties.serviceNetworkCidr,
|
|
170
|
-
]}
|
|
171
|
-
/>
|
|
172
|
-
</CardBody>
|
|
173
|
-
</CardExpandableContent>
|
|
174
|
-
</Card>
|
|
175
|
-
</StackItem>
|
|
176
|
-
</Stack>
|
|
186
|
+
</>
|
|
177
187
|
);
|
|
178
188
|
};
|
|
179
189
|
|
|
@@ -17,7 +17,7 @@ import { ClusterDeploymentDetailsStepProps, ClusterDeploymentDetailsValues } fro
|
|
|
17
17
|
import ClusterDeploymentWizardFooter from './ClusterDeploymentWizardFooter';
|
|
18
18
|
import ClusterDeploymentWizardContext from './ClusterDeploymentWizardContext';
|
|
19
19
|
import ClusterDeploymentWizardStep from './ClusterDeploymentWizardStep';
|
|
20
|
-
import { getAICluster, getOCPVersions } from '../helpers';
|
|
20
|
+
import { getAICluster, getNetworkType, getOCPVersions } from '../helpers';
|
|
21
21
|
import {
|
|
22
22
|
AgentClusterInstallK8sResource,
|
|
23
23
|
AgentK8sResource,
|
|
@@ -47,7 +47,10 @@ export const useDetailsFormik = ({
|
|
|
47
47
|
usedClusterNames,
|
|
48
48
|
infraEnv,
|
|
49
49
|
isNutanix,
|
|
50
|
-
}: UseDetailsFormikArgs): [
|
|
50
|
+
}: UseDetailsFormikArgs): [
|
|
51
|
+
ClusterDetailsValues & { networkType: 'OpenShiftSDN' | 'OVNKubernetes' },
|
|
52
|
+
Lazy,
|
|
53
|
+
] => {
|
|
51
54
|
const { t } = useTranslation();
|
|
52
55
|
const featureSupportLevels = useFeatureSupportLevel();
|
|
53
56
|
const ocpVersions = getOCPVersions(clusterImages, isNutanix);
|
|
@@ -64,12 +67,21 @@ export const useDetailsFormik = ({
|
|
|
64
67
|
[agentClusterInstall, clusterDeployment, agents, infraEnv],
|
|
65
68
|
);
|
|
66
69
|
const initialValues = React.useMemo(
|
|
67
|
-
() =>
|
|
68
|
-
getClusterDetailsInitialValues({
|
|
70
|
+
() => {
|
|
71
|
+
const initValues = getClusterDetailsInitialValues({
|
|
69
72
|
managedDomains: [], // not supported
|
|
70
73
|
cluster,
|
|
71
74
|
ocpVersions,
|
|
72
|
-
})
|
|
75
|
+
});
|
|
76
|
+
|
|
77
|
+
const ocpVersion = ocpVersions.find(
|
|
78
|
+
(ocpVersion) => ocpVersion.value === initValues.openshiftVersion,
|
|
79
|
+
);
|
|
80
|
+
return {
|
|
81
|
+
...initValues,
|
|
82
|
+
networkType: getNetworkType(ocpVersion),
|
|
83
|
+
};
|
|
84
|
+
},
|
|
73
85
|
[], // eslint-disable-line react-hooks/exhaustive-deps
|
|
74
86
|
);
|
|
75
87
|
|
|
@@ -15,6 +15,7 @@ import { ClusterDetailsValues } from '../../../common/components/clusterWizard/t
|
|
|
15
15
|
import { useTranslation } from '../../../common/hooks/use-translation-wrapper';
|
|
16
16
|
import ArmCheckbox from './ArmCheckbox';
|
|
17
17
|
import { SNOControlGroup } from '../../../common';
|
|
18
|
+
import { getNetworkType } from '../helpers';
|
|
18
19
|
|
|
19
20
|
export type ClusterDetailsFormFieldsProps = {
|
|
20
21
|
isEditFlow: boolean;
|
|
@@ -49,7 +50,7 @@ export const ClusterDetailsFormFields: React.FC<ClusterDetailsFormFieldsProps> =
|
|
|
49
50
|
extensionAfter,
|
|
50
51
|
isNutanix,
|
|
51
52
|
}) => {
|
|
52
|
-
const { values } = useFormikContext<ClusterDetailsValues>();
|
|
53
|
+
const { values, setFieldValue } = useFormikContext<ClusterDetailsValues>();
|
|
53
54
|
const { name, baseDnsDomain, highAvailabilityMode } = values;
|
|
54
55
|
const nameInputRef = React.useRef<HTMLInputElement>();
|
|
55
56
|
React.useEffect(() => {
|
|
@@ -99,7 +100,13 @@ export const ClusterDetailsFormFields: React.FC<ClusterDetailsFormFieldsProps> =
|
|
|
99
100
|
{t('ai:OpenShift')} {forceOpenshiftVersion}
|
|
100
101
|
</StaticTextField>
|
|
101
102
|
) : (
|
|
102
|
-
<OpenShiftVersionSelect
|
|
103
|
+
<OpenShiftVersionSelect
|
|
104
|
+
versions={versions}
|
|
105
|
+
onChange={(value) => {
|
|
106
|
+
const ocpVersion = versions.find((v) => v.value === value);
|
|
107
|
+
setFieldValue('networkType', getNetworkType(ocpVersion));
|
|
108
|
+
}}
|
|
109
|
+
/>
|
|
103
110
|
)}
|
|
104
111
|
{!isNutanix && (
|
|
105
112
|
<>
|
|
@@ -38,16 +38,19 @@ export const shouldShowClusterInstallationProgress = (
|
|
|
38
38
|
agentClusterInstall?: AgentClusterInstallK8sResource,
|
|
39
39
|
) => {
|
|
40
40
|
const [clusterStatus] = getClusterStatus(agentClusterInstall);
|
|
41
|
-
return
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
41
|
+
return (
|
|
42
|
+
[
|
|
43
|
+
'preparing-for-installation',
|
|
44
|
+
'installing',
|
|
45
|
+
'installing-pending-user-action',
|
|
46
|
+
'finalizing',
|
|
47
|
+
'installed',
|
|
48
|
+
'error',
|
|
49
|
+
'cancelled',
|
|
50
|
+
'adding-hosts',
|
|
51
|
+
'ready',
|
|
52
|
+
].includes(clusterStatus) && !agentClusterInstall?.spec?.holdInstallation
|
|
53
|
+
);
|
|
51
54
|
};
|
|
52
55
|
|
|
53
56
|
export const isInstallationInProgress = (agentClusterInstall: AgentClusterInstallK8sResource) => {
|
|
@@ -2,7 +2,7 @@ import { AgentK8sResource } from '../../../types';
|
|
|
2
2
|
import { AgentMachineK8sResource, HostedClusterK8sResource, NodePoolK8sResource } from '../types';
|
|
3
3
|
|
|
4
4
|
const CLUSTER_NAME_LABEL = 'cluster.x-k8s.io/cluster-name';
|
|
5
|
-
const NODEPOOL_NAME_ANNOTATION = '
|
|
5
|
+
const NODEPOOL_NAME_ANNOTATION = 'hypershift.openshift.io/nodePool';
|
|
6
6
|
|
|
7
7
|
export const getNodepoolAgents = (
|
|
8
8
|
nodePool: NodePoolK8sResource,
|
|
@@ -16,7 +16,8 @@ export const getNodepoolAgents = (
|
|
|
16
16
|
am.metadata?.namespace ===
|
|
17
17
|
`${hostedCluster.metadata?.namespace || ''}-${hostedCluster.metadata?.name || ''}` &&
|
|
18
18
|
am.metadata?.labels?.[CLUSTER_NAME_LABEL] === hostedCluster.spec.infraID &&
|
|
19
|
-
am.metadata?.annotations?.[NODEPOOL_NAME_ANNOTATION] ===
|
|
19
|
+
am.metadata?.annotations?.[NODEPOOL_NAME_ANNOTATION] ===
|
|
20
|
+
`${nodePool.metadata?.namespace || ''}/${nodePool.metadata?.name || ''}` &&
|
|
20
21
|
am.status?.agentRef?.name &&
|
|
21
22
|
am.status?.agentRef?.namespace,
|
|
22
23
|
)
|
|
@@ -31,7 +31,6 @@ import {
|
|
|
31
31
|
RadioField,
|
|
32
32
|
PopoverIcon,
|
|
33
33
|
pullSecretValidationSchema,
|
|
34
|
-
OCP_STATIC_IP_DOC,
|
|
35
34
|
CheckboxField,
|
|
36
35
|
AdditionalNTPSourcesField,
|
|
37
36
|
richNameValidationSchema,
|
|
@@ -42,6 +41,7 @@ import {
|
|
|
42
41
|
locationValidationMessages,
|
|
43
42
|
ntpSourceValidationSchema,
|
|
44
43
|
CpuArchitecture,
|
|
44
|
+
getOCPStaticIPDocLink,
|
|
45
45
|
} from '../../../common';
|
|
46
46
|
|
|
47
47
|
import './infra-env.css';
|
|
@@ -118,6 +118,7 @@ type InfraEnvFormProps = {
|
|
|
118
118
|
onValuesChanged?: (values: EnvironmentStepFormValues) => void;
|
|
119
119
|
pullSecret?: string;
|
|
120
120
|
sshPublicKey?: string;
|
|
121
|
+
docVersion: string;
|
|
121
122
|
};
|
|
122
123
|
|
|
123
124
|
const InfraEnvForm: React.FC<InfraEnvFormProps> = ({
|
|
@@ -125,6 +126,7 @@ const InfraEnvForm: React.FC<InfraEnvFormProps> = ({
|
|
|
125
126
|
children,
|
|
126
127
|
pullSecret,
|
|
127
128
|
sshPublicKey,
|
|
129
|
+
docVersion,
|
|
128
130
|
}) => {
|
|
129
131
|
const { values, setFieldValue } = useFormikContext<EnvironmentStepFormValues>();
|
|
130
132
|
const { t } = useTranslation();
|
|
@@ -194,7 +196,13 @@ const InfraEnvForm: React.FC<InfraEnvFormProps> = ({
|
|
|
194
196
|
icon={<ExternalLinkAltIcon />}
|
|
195
197
|
iconPosition="right"
|
|
196
198
|
isInline
|
|
197
|
-
onClick={() =>
|
|
199
|
+
onClick={() =>
|
|
200
|
+
window.open(
|
|
201
|
+
getOCPStaticIPDocLink(docVersion),
|
|
202
|
+
'_blank',
|
|
203
|
+
'noopener',
|
|
204
|
+
)
|
|
205
|
+
}
|
|
198
206
|
>
|
|
199
207
|
{t('ai:View documentation')}
|
|
200
208
|
</Button>
|
|
@@ -282,6 +290,7 @@ type InfraEnvFormPageProps = InfraEnvFormProps & {
|
|
|
282
290
|
formRef: React.Ref<FormikProps<EnvironmentStepFormValues>>;
|
|
283
291
|
pullSecret?: string;
|
|
284
292
|
sshPublicKey?: string;
|
|
293
|
+
docVersion: string;
|
|
285
294
|
};
|
|
286
295
|
|
|
287
296
|
export const InfraEnvFormPage: React.FC<InfraEnvFormPageProps> = ({
|
|
@@ -88,3 +88,8 @@ export const getMajorMinorVersion = (version = '') => {
|
|
|
88
88
|
const match = /[0-9].[0-9][0-9]?/g.exec(version);
|
|
89
89
|
return match?.[0] || '';
|
|
90
90
|
};
|
|
91
|
+
|
|
92
|
+
export const getNetworkType = (
|
|
93
|
+
ocpVersion: OpenshiftVersionOptionType | undefined,
|
|
94
|
+
): 'OVNKubernetes' | 'OpenShiftSDN' =>
|
|
95
|
+
parseFloat(getMajorMinorVersion(ocpVersion?.version)) >= 4.12 ? 'OVNKubernetes' : 'OpenShiftSDN';
|
|
@@ -74,6 +74,7 @@ const AddHostModal: React.FC<AddHostModalProps> = ({
|
|
|
74
74
|
hasDHCP={hasDHCP}
|
|
75
75
|
isIPXE={isIPXE}
|
|
76
76
|
allowEmpty
|
|
77
|
+
docVersion={docVersion}
|
|
77
78
|
/>
|
|
78
79
|
)}
|
|
79
80
|
{dialogType === 'download' && (
|
|
@@ -90,6 +91,7 @@ const AddHostModal: React.FC<AddHostModalProps> = ({
|
|
|
90
91
|
infraEnv={infraEnv}
|
|
91
92
|
onReset={agentClusterInstall ? () => setDialogType('config') : undefined}
|
|
92
93
|
hasDHCP={hasDHCP}
|
|
94
|
+
docVersion={docVersion}
|
|
93
95
|
/>
|
|
94
96
|
)}
|
|
95
97
|
</>
|
|
@@ -104,11 +106,13 @@ const GeneratingIsoDownload = ({
|
|
|
104
106
|
onClose,
|
|
105
107
|
onReset,
|
|
106
108
|
hasDHCP,
|
|
109
|
+
docVersion,
|
|
107
110
|
}: {
|
|
108
111
|
infraEnv: InfraEnvK8sResource;
|
|
109
112
|
onClose: VoidFunction;
|
|
110
113
|
onReset?: VoidFunction;
|
|
111
114
|
hasDHCP: boolean;
|
|
115
|
+
docVersion: string;
|
|
112
116
|
}) => {
|
|
113
117
|
const { t } = useTranslation();
|
|
114
118
|
return infraEnv.status?.isoDownloadURL ? (
|
|
@@ -117,6 +121,7 @@ const GeneratingIsoDownload = ({
|
|
|
117
121
|
downloadUrl={infraEnv.status.isoDownloadURL}
|
|
118
122
|
onReset={onReset}
|
|
119
123
|
hasDHCP={hasDHCP}
|
|
124
|
+
docVersion={docVersion}
|
|
120
125
|
/>
|
|
121
126
|
) : (
|
|
122
127
|
<EmptyState>
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ocmClient as client } from '../axiosClient';
|
|
2
|
+
import { Account } from '@openshift-assisted/types/accounts-management-service';
|
|
3
|
+
|
|
4
|
+
export const CurrentAccountApi = {
|
|
5
|
+
makeBaseURI() {
|
|
6
|
+
return '/api/accounts_mgmt/v1/current_account';
|
|
7
|
+
},
|
|
8
|
+
|
|
9
|
+
async getCurrentAccount() {
|
|
10
|
+
const response = await client?.get<Account>(CurrentAccountApi.makeBaseURI());
|
|
11
|
+
return response?.data;
|
|
12
|
+
},
|
|
13
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ocmClient as client } from '../axiosClient';
|
|
2
|
+
import { Organization } from '@openshift-assisted/types/accounts-management-service';
|
|
3
|
+
|
|
4
|
+
export const OrganizationsApi = {
|
|
5
|
+
makeBaseURI() {
|
|
6
|
+
return '/api/accounts_mgmt/v1/organizations';
|
|
7
|
+
},
|
|
8
|
+
|
|
9
|
+
async getOrganization(orgId: string, fetchCapabilities = true, fetchLabels = false) {
|
|
10
|
+
const response = await client?.get<Organization>(`${OrganizationsApi.makeBaseURI()}/${orgId}`, {
|
|
11
|
+
params: { fetchCapabilities, fetchLabels },
|
|
12
|
+
});
|
|
13
|
+
return response?.data;
|
|
14
|
+
},
|
|
15
|
+
};
|
|
@@ -9,12 +9,16 @@ const NewFeatureSupportLevelsAPI = {
|
|
|
9
9
|
return `/v2/support-levels`;
|
|
10
10
|
},
|
|
11
11
|
|
|
12
|
-
featuresSupportLevel(openshiftVersion: string, cpuArchitecture?: string) {
|
|
13
|
-
let queryParams = '?';
|
|
14
|
-
queryParams += openshiftVersion ? `openshift_version=${openshiftVersion}&` : '';
|
|
15
|
-
queryParams += cpuArchitecture ? `cpu_architecture=${cpuArchitecture}` : '';
|
|
12
|
+
featuresSupportLevel(openshiftVersion: string, cpuArchitecture?: string, platformType?: string) {
|
|
16
13
|
return clientWithoutCaseConverter.get<FeaturesSupportsLevel>(
|
|
17
|
-
`${NewFeatureSupportLevelsAPI.makeBaseURI()}/features
|
|
14
|
+
`${NewFeatureSupportLevelsAPI.makeBaseURI()}/features`,
|
|
15
|
+
{
|
|
16
|
+
params: {
|
|
17
|
+
openshift_version: openshiftVersion,
|
|
18
|
+
cpu_architecture: cpuArchitecture,
|
|
19
|
+
platform_type: platformType,
|
|
20
|
+
},
|
|
21
|
+
},
|
|
18
22
|
);
|
|
19
23
|
},
|
|
20
24
|
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { clientWithoutCaseConverter as client } from '../../api/axiosClient';
|
|
2
|
+
import { Cluster } from '@openshift-assisted/types/./assisted-installer-service';
|
|
3
|
+
|
|
4
|
+
const config = {
|
|
5
|
+
headers: {
|
|
6
|
+
'Content-Type': 'application/json',
|
|
7
|
+
},
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
const UISettingsAPI = {
|
|
11
|
+
makeBaseURI(clusterId: Cluster['id']) {
|
|
12
|
+
return `/v2/clusters/${clusterId ? clusterId : ''}/ui-settings`;
|
|
13
|
+
},
|
|
14
|
+
|
|
15
|
+
get(clusterId: Cluster['id']) {
|
|
16
|
+
return client.get<string>(UISettingsAPI.makeBaseURI(clusterId));
|
|
17
|
+
},
|
|
18
|
+
|
|
19
|
+
put(clusterId: Cluster['id'], data: string) {
|
|
20
|
+
return client.put<string>(UISettingsAPI.makeBaseURI(clusterId), data, config);
|
|
21
|
+
},
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
export default UISettingsAPI;
|
|
@@ -6,3 +6,4 @@ export { default as HostsAPI } from './HostsAPI';
|
|
|
6
6
|
export { default as InfraEnvsAPI } from './InfraEnvsAPI';
|
|
7
7
|
export { default as EventsAPI } from './EventsAPI';
|
|
8
8
|
export { default as NewFeatureSupportLevelsAPI } from './NewFeatureSupportLevelsAPI';
|
|
9
|
+
export { default as UISettingsAPI } from './UISettingsAPI';
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { ocmClient as client } from '../axiosClient';
|
|
2
|
+
import {
|
|
3
|
+
AccessReviewResponse,
|
|
4
|
+
FeatureReviewResponse,
|
|
5
|
+
SelfAccessReview,
|
|
6
|
+
} from '@openshift-assisted/types/authorization-service';
|
|
7
|
+
|
|
8
|
+
export const AuthorizationApi = {
|
|
9
|
+
makeBaseURI() {
|
|
10
|
+
return '/api/authorizations/v1/';
|
|
11
|
+
},
|
|
12
|
+
|
|
13
|
+
async selfFeatureReview(featureId: string) {
|
|
14
|
+
const response = await client?.post<FeatureReviewResponse>(
|
|
15
|
+
`${AuthorizationApi.makeBaseURI()}/self_feature_review`,
|
|
16
|
+
{ feature: featureId },
|
|
17
|
+
);
|
|
18
|
+
return response?.data;
|
|
19
|
+
},
|
|
20
|
+
|
|
21
|
+
async selfAccessReview(params: SelfAccessReview) {
|
|
22
|
+
const response = await client?.post<AccessReviewResponse>(
|
|
23
|
+
`${AuthorizationApi.makeBaseURI()}/self_access_review`,
|
|
24
|
+
params,
|
|
25
|
+
);
|
|
26
|
+
return response?.data;
|
|
27
|
+
},
|
|
28
|
+
};
|
|
@@ -27,10 +27,10 @@ import { ProxyFieldsType, StatusErrorType } from '../../types';
|
|
|
27
27
|
import ProxyFields from './ProxyFields';
|
|
28
28
|
import UploadSSH from './UploadSSH';
|
|
29
29
|
import DiscoveryImageTypeControlGroup from './DiscoveryImageTypeControlGroup';
|
|
30
|
-
import {
|
|
30
|
+
import { getOCPStaticIPDocLink } from '../../config/constants';
|
|
31
31
|
import { useTranslation } from '../../hooks/use-translation-wrapper';
|
|
32
32
|
|
|
33
|
-
export const StaticIPInfo:
|
|
33
|
+
export const StaticIPInfo = ({ docVersion }: { docVersion?: string }) => {
|
|
34
34
|
const { t } = useTranslation();
|
|
35
35
|
return (
|
|
36
36
|
<Alert
|
|
@@ -45,7 +45,7 @@ export const StaticIPInfo: React.FC = () => {
|
|
|
45
45
|
icon={<ExternalLinkAltIcon />}
|
|
46
46
|
iconPosition="right"
|
|
47
47
|
isInline
|
|
48
|
-
onClick={() => window.open(
|
|
48
|
+
onClick={() => window.open(getOCPStaticIPDocLink(docVersion), '_blank', 'noopener')}
|
|
49
49
|
>
|
|
50
50
|
{t('ai:View documentation')}
|
|
51
51
|
</Button>
|
|
@@ -77,6 +77,7 @@ type DiscoveryImageConfigFormProps = Proxy & {
|
|
|
77
77
|
imageType?: ImageType;
|
|
78
78
|
isIPXE?: boolean;
|
|
79
79
|
allowEmpty?: boolean;
|
|
80
|
+
docVersion: string;
|
|
80
81
|
};
|
|
81
82
|
|
|
82
83
|
export const DiscoveryImageConfigForm: React.FC<DiscoveryImageConfigFormProps> = ({
|
|
@@ -91,6 +92,7 @@ export const DiscoveryImageConfigForm: React.FC<DiscoveryImageConfigFormProps> =
|
|
|
91
92
|
hasDHCP,
|
|
92
93
|
isIPXE,
|
|
93
94
|
allowEmpty,
|
|
95
|
+
docVersion,
|
|
94
96
|
}) => {
|
|
95
97
|
const initialValues: DiscoveryImageFormValues = {
|
|
96
98
|
sshPublicKey: sshPublicKey || '',
|
|
@@ -127,7 +129,7 @@ export const DiscoveryImageConfigForm: React.FC<DiscoveryImageConfigFormProps> =
|
|
|
127
129
|
</StackItem>
|
|
128
130
|
{hasDHCP === false && (
|
|
129
131
|
<StackItem>
|
|
130
|
-
<StaticIPInfo />
|
|
132
|
+
<StaticIPInfo docVersion={docVersion} />
|
|
131
133
|
</StackItem>
|
|
132
134
|
)}
|
|
133
135
|
<StackItem>
|
|
@@ -104,7 +104,11 @@ const DiskEncryptionControlGroup = ({
|
|
|
104
104
|
condition={enableDiskEncryptionOnMasters || (enableDiskEncryptionOnWorkers && !isSNO)}
|
|
105
105
|
>
|
|
106
106
|
<StackItem>
|
|
107
|
-
<DiskEncryptionMode
|
|
107
|
+
<DiskEncryptionMode
|
|
108
|
+
diskEncryptionMode={diskEncryptionMode}
|
|
109
|
+
isDisabled={isDisabled}
|
|
110
|
+
tooltipProps={tooltipProps}
|
|
111
|
+
/>
|
|
108
112
|
</StackItem>
|
|
109
113
|
</RenderIf>
|
|
110
114
|
</Stack>
|