@openshift-assisted/ui-lib 2.15.2-cim → 2.16.0-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/Agent/tableUtils.d.ts +6 -2
- package/build/@types/cim/components/Agent/tableUtils.d.ts.map +1 -1
- package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentWizard.d.ts.map +1 -1
- package/build/@types/cim/components/ClusterDeployment/{ACMClusterDeploymentDetailsStep.d.ts → clusterDetails/ACMClusterDeploymentDetailsStep.d.ts} +5 -5
- package/build/@types/cim/components/ClusterDeployment/clusterDetails/ACMClusterDeploymentDetailsStep.d.ts.map +1 -0
- package/build/@types/cim/components/ClusterDeployment/{ClusterDeploymentDetailsForm.d.ts → clusterDetails/ClusterDeploymentDetailsForm.d.ts} +4 -4
- package/build/@types/cim/components/ClusterDeployment/clusterDetails/ClusterDeploymentDetailsForm.d.ts.map +1 -0
- package/build/@types/cim/components/ClusterDeployment/{ClusterDeploymentDetailsStep.d.ts → clusterDetails/ClusterDeploymentDetailsStep.d.ts} +5 -5
- package/build/@types/cim/components/ClusterDeployment/clusterDetails/ClusterDeploymentDetailsStep.d.ts.map +1 -0
- package/build/@types/cim/components/ClusterDeployment/{ClusterDetailsFormFields.d.ts → clusterDetails/ClusterDetailsFormFields.d.ts} +1 -1
- package/build/@types/cim/components/ClusterDeployment/clusterDetails/ClusterDetailsFormFields.d.ts.map +1 -0
- package/build/@types/cim/components/ClusterDeployment/clusterDetails/index.d.ts +5 -0
- package/build/@types/cim/components/ClusterDeployment/clusterDetails/index.d.ts.map +1 -0
- package/build/@types/cim/components/ClusterDeployment/components/AdditionalNTPSourcesDialogToggle.d.ts.map +1 -0
- package/build/@types/cim/components/ClusterDeployment/components/index.d.ts +2 -0
- package/build/@types/cim/components/ClusterDeployment/components/index.d.ts.map +1 -0
- package/build/@types/cim/components/ClusterDeployment/constants.d.ts +1 -0
- package/build/@types/cim/components/ClusterDeployment/constants.d.ts.map +1 -1
- package/build/@types/cim/components/ClusterDeployment/customManifests/ClusterDeploymentCustomManifestsStep.d.ts +6 -0
- package/build/@types/cim/components/ClusterDeployment/customManifests/ClusterDeploymentCustomManifestsStep.d.ts.map +1 -0
- package/build/@types/cim/components/ClusterDeployment/customManifests/ConfigMapDetail.d.ts +10 -0
- package/build/@types/cim/components/ClusterDeployment/customManifests/ConfigMapDetail.d.ts.map +1 -0
- package/build/@types/cim/components/ClusterDeployment/customManifests/ConfigMapForm.d.ts +12 -0
- package/build/@types/cim/components/ClusterDeployment/customManifests/ConfigMapForm.d.ts.map +1 -0
- package/build/@types/cim/components/ClusterDeployment/customManifests/index.d.ts +2 -0
- package/build/@types/cim/components/ClusterDeployment/customManifests/index.d.ts.map +1 -0
- package/build/@types/cim/components/ClusterDeployment/{ClusterDeploymentHostDiscoveryTable.d.ts → hostDiscovery/ClusterDeploymentHostDiscoveryTable.d.ts} +1 -1
- package/build/@types/cim/components/ClusterDeployment/hostDiscovery/ClusterDeploymentHostDiscoveryTable.d.ts.map +1 -0
- package/build/@types/cim/components/ClusterDeployment/{ClusterDeploymentHostsDiscovery.d.ts → hostDiscovery/ClusterDeploymentHostsDiscovery.d.ts} +1 -1
- package/build/@types/cim/components/ClusterDeployment/hostDiscovery/ClusterDeploymentHostsDiscovery.d.ts.map +1 -0
- package/build/@types/cim/components/ClusterDeployment/hostDiscovery/ClusterDeploymentHostsDiscoveryStep.d.ts +4 -0
- package/build/@types/cim/components/ClusterDeployment/hostDiscovery/ClusterDeploymentHostsDiscoveryStep.d.ts.map +1 -0
- package/build/@types/cim/components/ClusterDeployment/hostDiscovery/index.d.ts +2 -0
- package/build/@types/cim/components/ClusterDeployment/hostDiscovery/index.d.ts.map +1 -0
- package/build/@types/cim/components/ClusterDeployment/{ClusterDeploymentHostSelectionStep.d.ts → hostSelection/ClusterDeploymentHostSelectionStep.d.ts} +4 -4
- package/build/@types/cim/components/ClusterDeployment/hostSelection/ClusterDeploymentHostSelectionStep.d.ts.map +1 -0
- package/build/@types/cim/components/ClusterDeployment/{ClusterDeploymentHostsSelection.d.ts → hostSelection/ClusterDeploymentHostsSelection.d.ts} +1 -1
- package/build/@types/cim/components/ClusterDeployment/hostSelection/ClusterDeploymentHostsSelection.d.ts.map +1 -0
- package/build/@types/cim/components/ClusterDeployment/{ClusterDeploymentHostsSelectionAdvanced.d.ts → hostSelection/ClusterDeploymentHostsSelectionAdvanced.d.ts} +6 -6
- package/build/@types/cim/components/ClusterDeployment/hostSelection/ClusterDeploymentHostsSelectionAdvanced.d.ts.map +1 -0
- package/build/@types/cim/components/ClusterDeployment/{ClusterDeploymentHostsSelectionBasic.d.ts → hostSelection/ClusterDeploymentHostsSelectionBasic.d.ts} +1 -1
- package/build/@types/cim/components/ClusterDeployment/hostSelection/ClusterDeploymentHostsSelectionBasic.d.ts.map +1 -0
- package/build/@types/cim/components/ClusterDeployment/hostSelection/index.d.ts +3 -0
- package/build/@types/cim/components/ClusterDeployment/hostSelection/index.d.ts.map +1 -0
- package/build/@types/cim/components/ClusterDeployment/index.d.ts +2 -2
- package/build/@types/cim/components/ClusterDeployment/index.d.ts.map +1 -1
- package/build/@types/cim/components/ClusterDeployment/{ClusterDeploymentHostsNetworkTable.d.ts → networking/ClusterDeploymentHostsNetworkTable.d.ts} +2 -2
- package/build/@types/cim/components/ClusterDeployment/networking/ClusterDeploymentHostsNetworkTable.d.ts.map +1 -0
- package/build/@types/cim/components/ClusterDeployment/{ClusterDeploymentNetworkingForm.d.ts → networking/ClusterDeploymentNetworkingForm.d.ts} +2 -4
- package/build/@types/cim/components/ClusterDeployment/networking/ClusterDeploymentNetworkingForm.d.ts.map +1 -0
- package/build/@types/cim/components/ClusterDeployment/{ClusterDeploymentNetworkingStep.d.ts → networking/ClusterDeploymentNetworkingStep.d.ts} +4 -4
- package/build/@types/cim/components/ClusterDeployment/networking/ClusterDeploymentNetworkingStep.d.ts.map +1 -0
- package/build/@types/cim/components/ClusterDeployment/networking/index.d.ts +2 -0
- package/build/@types/cim/components/ClusterDeployment/networking/index.d.ts.map +1 -0
- package/build/@types/cim/components/ClusterDeployment/{ClusterDeploymentReviewStep.d.ts → review/ClusterDeploymentReviewStep.d.ts} +3 -3
- package/build/@types/cim/components/ClusterDeployment/review/ClusterDeploymentReviewStep.d.ts.map +1 -0
- package/build/@types/cim/components/ClusterDeployment/review/ReviewConfigMapsTable.d.ts +6 -0
- package/build/@types/cim/components/ClusterDeployment/review/ReviewConfigMapsTable.d.ts.map +1 -0
- package/build/@types/cim/components/ClusterDeployment/review/index.d.ts +2 -0
- package/build/@types/cim/components/ClusterDeployment/review/index.d.ts.map +1 -0
- package/build/@types/cim/components/ClusterDeployment/types.d.ts +1 -1
- package/build/@types/cim/components/ClusterDeployment/types.d.ts.map +1 -1
- package/build/@types/cim/components/ClusterDeployment/wizardTransition.d.ts +2 -2
- package/build/@types/cim/components/ClusterDeployment/wizardTransition.d.ts.map +1 -1
- package/build/@types/cim/components/Hypershift/HostedClusterWizard/DetailsStep/DetailsForm.d.ts.map +1 -1
- package/build/@types/cim/components/Hypershift/HostedClusterWizard/DetailsStep/DetailsStep.d.ts.map +1 -1
- package/build/@types/cim/components/Hypershift/HostedClusterWizard/DetailsStep/types.d.ts +6 -1
- package/build/@types/cim/components/Hypershift/HostedClusterWizard/DetailsStep/types.d.ts.map +1 -1
- package/build/@types/cim/components/Hypershift/HostedClusterWizard/HostsStep/NodePoolForm.d.ts.map +1 -1
- package/build/@types/cim/components/Hypershift/forms/NodePoolAgentsForm.d.ts.map +1 -1
- package/build/@types/cim/components/Hypershift/hooks/useSupportedOCPVersions.d.ts +1 -1
- package/build/@types/cim/components/Hypershift/hooks/useSupportedOCPVersions.d.ts.map +1 -1
- package/build/@types/cim/components/InfraEnv/InfraEnvAgentTable.d.ts.map +1 -1
- package/build/@types/cim/components/helpers/toAssisted.d.ts.map +1 -1
- package/build/@types/cim/components/helpers/versions.d.ts.map +1 -1
- package/build/@types/cim/hooks/index.d.ts +2 -0
- package/build/@types/cim/hooks/index.d.ts.map +1 -0
- package/build/@types/cim/hooks/types.d.ts +4 -0
- package/build/@types/cim/hooks/types.d.ts.map +1 -0
- package/build/@types/cim/hooks/useConfigMaps.d.ts +4 -0
- package/build/@types/cim/hooks/useConfigMaps.d.ts.map +1 -0
- package/build/@types/cim/hooks/useK8sWatchResource.d.ts +8 -0
- package/build/@types/cim/hooks/useK8sWatchResource.d.ts.map +1 -0
- package/build/@types/cim/index.d.ts +1 -0
- package/build/@types/cim/index.d.ts.map +1 -1
- package/build/@types/cim/types/index.d.ts +1 -0
- package/build/@types/cim/types/index.d.ts.map +1 -1
- package/build/@types/cim/types/k8s/agent-cluster-install.d.ts +3 -0
- package/build/@types/cim/types/k8s/agent-cluster-install.d.ts.map +1 -1
- package/build/@types/cim/types/models.d.ts +3 -0
- package/build/@types/cim/types/models.d.ts.map +1 -0
- package/build/@types/cim/utils.d.ts +2 -0
- package/build/@types/cim/utils.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/DiskEncryptionValues.d.ts +1 -0
- package/build/@types/common/components/clusterConfiguration/DiskEncryptionFields/DiskEncryptionValues.d.ts.map +1 -1
- package/build/@types/common/components/clusterConfiguration/ExternalPlatformsDropdown.d.ts +14 -0
- package/build/@types/common/components/clusterConfiguration/ExternalPlatformsDropdown.d.ts.map +1 -0
- package/build/@types/common/components/clusterConfiguration/index.d.ts +1 -3
- package/build/@types/common/components/clusterConfiguration/index.d.ts.map +1 -1
- package/build/@types/common/components/clusterWizard/clusterDetailsValidation.d.ts +1 -4
- package/build/@types/common/components/clusterWizard/clusterDetailsValidation.d.ts.map +1 -1
- package/build/@types/common/components/clusterWizard/types.d.ts +2 -4
- package/build/@types/common/components/clusterWizard/types.d.ts.map +1 -1
- package/build/@types/common/components/hosts/AITable.d.ts +3 -1
- package/build/@types/common/components/hosts/AITable.d.ts.map +1 -1
- package/build/@types/common/components/hosts/DiskRole.d.ts.map +1 -1
- package/build/@types/common/components/hosts/HostsTable.d.ts +2 -1
- package/build/@types/common/components/hosts/HostsTable.d.ts.map +1 -1
- package/build/@types/common/components/hosts/TableToolbar.d.ts.map +1 -1
- package/build/@types/common/components/hosts/types.d.ts +1 -1
- package/build/@types/common/components/hosts/types.d.ts.map +1 -1
- package/build/@types/common/components/hosts/utils.d.ts +5 -2
- package/build/@types/common/components/hosts/utils.d.ts.map +1 -1
- package/build/@types/common/components/newFeatureSupportLevels/types.d.ts +1 -1
- package/build/@types/common/components/newFeatureSupportLevels/types.d.ts.map +1 -1
- package/build/@types/common/components/operators/operatorDescriptions.d.ts +27 -0
- package/build/@types/common/components/operators/operatorDescriptions.d.ts.map +1 -0
- package/build/@types/common/components/operators/operatorSpecs.d.ts +34 -4
- package/build/@types/common/components/operators/operatorSpecs.d.ts.map +1 -1
- package/build/@types/common/components/ui/ClusterEventsToolbar.d.ts.map +1 -1
- package/build/@types/common/components/ui/OpenShiftSelectWithSearch.d.ts +1 -2
- package/build/@types/common/components/ui/OpenShiftSelectWithSearch.d.ts.map +1 -1
- package/build/@types/common/components/ui/OpenShiftVersionDropdown.d.ts +3 -3
- package/build/@types/common/components/ui/OpenShiftVersionDropdown.d.ts.map +1 -1
- package/build/@types/common/components/ui/OpenShiftVersionModal.d.ts.map +1 -1
- package/build/@types/common/components/ui/SimpleDropdown.d.ts.map +1 -1
- package/build/@types/common/components/ui/formik/SelectFieldWithSearch.d.ts +16 -0
- package/build/@types/common/components/ui/formik/SelectFieldWithSearch.d.ts.map +1 -0
- package/build/@types/common/components/ui/formik/TextAreaField.d.ts.map +1 -1
- package/build/@types/common/components/ui/formik/index.d.ts +1 -1
- package/build/@types/common/components/ui/formik/index.d.ts.map +1 -1
- package/build/@types/common/config/constants.d.ts +19 -2
- package/build/@types/common/config/constants.d.ts.map +1 -1
- package/build/@types/common/config/docs_links.d.ts +9 -6
- package/build/@types/common/config/docs_links.d.ts.map +1 -1
- package/build/@types/common/selectors/clusterSelectors.d.ts +1 -1
- package/build/@types/common/selectors/clusterSelectors.d.ts.map +1 -1
- package/build/@types/common/types/cpuArchitecture.d.ts.map +1 -1
- package/build/@types/common/types/ui-settings.d.ts +1 -0
- package/build/@types/common/types/ui-settings.d.ts.map +1 -1
- package/build/@types/common/utils.d.ts +9 -0
- package/build/@types/common/utils.d.ts.map +1 -1
- package/build/@types/ocm/components/Routes.d.ts +7 -4
- package/build/@types/ocm/components/Routes.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/ControlPlaneNodesDropdown.d.ts +2 -0
- package/build/@types/ocm/components/clusterConfiguration/ControlPlaneNodesDropdown.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/OcmClusterDetailsFormFields.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/OcmOpenShiftVersion.d.ts +3 -3
- package/build/@types/ocm/components/clusterConfiguration/OcmOpenShiftVersion.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/OcmOpenShiftVersionSelect.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/OcmSNODisclaimer.d.ts +1 -4
- package/build/@types/ocm/components/clusterConfiguration/OcmSNODisclaimer.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/OcmTNADisclaimer.d.ts +4 -0
- package/build/@types/ocm/components/clusterConfiguration/OcmTNADisclaimer.d.ts.map +1 -0
- package/build/@types/ocm/components/clusterConfiguration/OpenshiftVersionHelperText.d.ts +1 -1
- package/build/@types/ocm/components/clusterConfiguration/OpenshiftVersionHelperText.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/manifestsConfiguration/components/FolderDropdown.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfigurationForm.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/networkConfiguration/SubnetsDropdown.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/operators/OperatorCheckbox.d.ts +2 -1
- package/build/@types/ocm/components/clusterConfiguration/operators/OperatorCheckbox.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/operators/utils.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/review/ReviewOperatorsTable.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/staticIp/commonValidationSchemas.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/staticIp/components/FormViewNetworkWide/formViewNetworkWideValidationSchema.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 +0 -1
- package/build/@types/ocm/components/clusterWizard/ClusterDetailsForm.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterWizard/ClusterWizardContext.d.ts +4 -2
- 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/clusterWizard/CredentialsDownload.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterWizard/NewClusterWizard.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterWizard/Operators.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterWizard/OperatorsBundle.d.ts +2 -1
- package/build/@types/ocm/components/clusterWizard/OperatorsBundle.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterWizard/OperatorsSelect.d.ts +2 -1
- package/build/@types/ocm/components/clusterWizard/OperatorsSelect.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterWizard/OperatorsStep.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterWizard/constants.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterWizard/disconnected/BasicStep.d.ts +4 -0
- package/build/@types/ocm/components/clusterWizard/disconnected/BasicStep.d.ts.map +1 -0
- package/build/@types/ocm/components/clusterWizard/disconnected/InstallDisconnectedSwitch.d.ts +6 -0
- package/build/@types/ocm/components/clusterWizard/disconnected/InstallDisconnectedSwitch.d.ts.map +1 -0
- package/build/@types/ocm/components/clusterWizard/disconnected/ReviewStep.d.ts +4 -0
- package/build/@types/ocm/components/clusterWizard/disconnected/ReviewStep.d.ts.map +1 -0
- package/build/@types/ocm/components/clusterWizard/wizardTransition.d.ts +3 -2
- package/build/@types/ocm/components/clusterWizard/wizardTransition.d.ts.map +1 -1
- package/build/@types/ocm/components/clusters/AssistedInstallerHeader.d.ts.map +1 -1
- package/build/@types/ocm/components/clusters/ClusterPage.d.ts.map +1 -1
- package/build/@types/ocm/components/clusters/Clusters.d.ts.map +1 -1
- package/build/@types/ocm/components/clusters/NewClusterPage.d.ts.map +1 -1
- package/build/@types/ocm/components/clusters/clusterPolling.d.ts.map +1 -1
- package/build/@types/ocm/components/featureSupportLevels/featureStateUtils.d.ts.map +1 -1
- package/build/@types/ocm/components/hosts/use-hosts-table.d.ts +1 -1
- package/build/@types/ocm/components/hosts/use-hosts-table.d.ts.map +1 -1
- package/build/@types/ocm/services/DiskEncryptionService.d.ts +1 -1
- package/build/@types/ocm/services/DiskEncryptionService.d.ts.map +1 -1
- package/build/@types/ocm/store/slices/current-cluster/selectors.d.ts.map +1 -1
- package/build/@types/ocm/store/slices/current-cluster/slice.d.ts +2 -2
- package/build/cjs/cim/components/Agent/AgentStatus.js +2 -2
- package/build/cjs/cim/components/Agent/AgentStatus.js.map +1 -1
- package/build/cjs/cim/components/Agent/tableUtils.js +4 -3
- package/build/cjs/cim/components/Agent/tableUtils.js.map +1 -1
- package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentWizard.js +12 -9
- package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentWizard.js.map +1 -1
- package/build/cjs/cim/components/ClusterDeployment/ScaleUpForm.js +2 -2
- package/build/cjs/cim/components/ClusterDeployment/ScaleUpForm.js.map +1 -1
- package/build/cjs/cim/components/ClusterDeployment/{ACMClusterDeploymentDetailsStep.js → clusterDetails/ACMClusterDeploymentDetailsStep.js} +6 -5
- package/build/cjs/cim/components/ClusterDeployment/clusterDetails/ACMClusterDeploymentDetailsStep.js.map +1 -0
- package/build/cjs/cim/components/ClusterDeployment/{ClusterDeploymentDetailsForm.js → clusterDetails/ClusterDeploymentDetailsForm.js} +8 -8
- package/build/cjs/cim/components/ClusterDeployment/clusterDetails/ClusterDeploymentDetailsForm.js.map +1 -0
- package/build/cjs/cim/components/ClusterDeployment/{ClusterDeploymentDetailsStep.js → clusterDetails/ClusterDeploymentDetailsStep.js} +9 -12
- package/build/cjs/cim/components/ClusterDeployment/clusterDetails/ClusterDeploymentDetailsStep.js.map +1 -0
- package/build/cjs/cim/components/ClusterDeployment/{ClusterDetailsFormFields.js → clusterDetails/ClusterDetailsFormFields.js} +29 -31
- package/build/cjs/cim/components/ClusterDeployment/clusterDetails/ClusterDetailsFormFields.js.map +1 -0
- package/build/cjs/cim/components/ClusterDeployment/clusterDetails/index.js +8 -0
- package/build/cjs/cim/components/ClusterDeployment/clusterDetails/index.js.map +1 -0
- package/build/cjs/cim/components/ClusterDeployment/{AdditionalNTPSourcesDialogToggle.js → components/AdditionalNTPSourcesDialogToggle.js} +1 -1
- package/build/cjs/cim/components/ClusterDeployment/components/AdditionalNTPSourcesDialogToggle.js.map +1 -0
- package/build/cjs/cim/components/ClusterDeployment/components/index.js +5 -0
- package/build/cjs/cim/components/ClusterDeployment/components/index.js.map +1 -0
- package/build/cjs/cim/components/ClusterDeployment/constants.js +1 -0
- package/build/cjs/cim/components/ClusterDeployment/constants.js.map +1 -1
- package/build/cjs/cim/components/ClusterDeployment/customManifests/ClusterDeploymentCustomManifestsStep.js +71 -0
- package/build/cjs/cim/components/ClusterDeployment/customManifests/ClusterDeploymentCustomManifestsStep.js.map +1 -0
- package/build/cjs/cim/components/ClusterDeployment/customManifests/ConfigMapDetail.js +64 -0
- package/build/cjs/cim/components/ClusterDeployment/customManifests/ConfigMapDetail.js.map +1 -0
- package/build/cjs/cim/components/ClusterDeployment/customManifests/ConfigMapForm.js +134 -0
- package/build/cjs/cim/components/ClusterDeployment/customManifests/ConfigMapForm.js.map +1 -0
- package/build/cjs/cim/components/ClusterDeployment/customManifests/index.js +5 -0
- package/build/cjs/cim/components/ClusterDeployment/customManifests/index.js.map +1 -0
- package/build/cjs/cim/components/ClusterDeployment/{ClusterDeploymentHostDiscoveryTable.js → hostDiscovery/ClusterDeploymentHostDiscoveryTable.js} +12 -12
- package/build/cjs/cim/components/ClusterDeployment/hostDiscovery/ClusterDeploymentHostDiscoveryTable.js.map +1 -0
- package/build/cjs/cim/components/ClusterDeployment/{ClusterDeploymentHostsDiscovery.js → hostDiscovery/ClusterDeploymentHostsDiscovery.js} +6 -6
- package/build/cjs/cim/components/ClusterDeployment/hostDiscovery/ClusterDeploymentHostsDiscovery.js.map +1 -0
- package/build/cjs/cim/components/ClusterDeployment/{ClusterDeploymentHostsDiscoveryStep.js → hostDiscovery/ClusterDeploymentHostsDiscoveryStep.js} +10 -9
- package/build/cjs/cim/components/ClusterDeployment/hostDiscovery/ClusterDeploymentHostsDiscoveryStep.js.map +1 -0
- package/build/cjs/cim/components/ClusterDeployment/hostDiscovery/index.js +5 -0
- package/build/cjs/cim/components/ClusterDeployment/hostDiscovery/index.js.map +1 -0
- package/build/cjs/cim/components/ClusterDeployment/{ClusterDeploymentHostSelectionStep.js → hostSelection/ClusterDeploymentHostSelectionStep.js} +10 -10
- package/build/cjs/cim/components/ClusterDeployment/hostSelection/ClusterDeploymentHostSelectionStep.js.map +1 -0
- package/build/cjs/cim/components/ClusterDeployment/{ClusterDeploymentHostsSelection.js → hostSelection/ClusterDeploymentHostsSelection.js} +7 -7
- package/build/cjs/cim/components/ClusterDeployment/hostSelection/ClusterDeploymentHostsSelection.js.map +1 -0
- package/build/cjs/cim/components/ClusterDeployment/{ClusterDeploymentHostsSelectionAdvanced.js → hostSelection/ClusterDeploymentHostsSelectionAdvanced.js} +7 -6
- package/build/cjs/cim/components/ClusterDeployment/hostSelection/ClusterDeploymentHostsSelectionAdvanced.js.map +1 -0
- package/build/cjs/cim/components/ClusterDeployment/{ClusterDeploymentHostsSelectionBasic.js → hostSelection/ClusterDeploymentHostsSelectionBasic.js} +7 -7
- package/build/cjs/cim/components/ClusterDeployment/hostSelection/ClusterDeploymentHostsSelectionBasic.js.map +1 -0
- package/build/cjs/cim/components/ClusterDeployment/hostSelection/index.js +6 -0
- package/build/cjs/cim/components/ClusterDeployment/hostSelection/index.js.map +1 -0
- package/build/cjs/cim/components/ClusterDeployment/index.js +4 -4
- package/build/cjs/cim/components/ClusterDeployment/index.js.map +1 -1
- package/build/cjs/cim/components/ClusterDeployment/{ClusterDeploymentHostsNetworkTable.js → networking/ClusterDeploymentHostsNetworkTable.js} +10 -10
- package/build/cjs/cim/components/ClusterDeployment/networking/ClusterDeploymentHostsNetworkTable.js.map +1 -0
- package/build/cjs/cim/components/ClusterDeployment/{ClusterDeploymentNetworkingForm.js → networking/ClusterDeploymentNetworkingForm.js} +6 -9
- package/build/cjs/cim/components/ClusterDeployment/networking/ClusterDeploymentNetworkingForm.js.map +1 -0
- package/build/cjs/cim/components/ClusterDeployment/{ClusterDeploymentNetworkingStep.js → networking/ClusterDeploymentNetworkingStep.js} +10 -10
- package/build/cjs/cim/components/ClusterDeployment/networking/ClusterDeploymentNetworkingStep.js.map +1 -0
- package/build/cjs/cim/components/ClusterDeployment/networking/index.js +5 -0
- package/build/cjs/cim/components/ClusterDeployment/networking/index.js.map +1 -0
- package/build/cjs/cim/components/ClusterDeployment/{ClusterDeploymentReviewStep.js → review/ClusterDeploymentReviewStep.js} +21 -16
- package/build/cjs/cim/components/ClusterDeployment/review/ClusterDeploymentReviewStep.js.map +1 -0
- package/build/cjs/cim/components/ClusterDeployment/review/ReviewConfigMapsTable.js +51 -0
- package/build/cjs/cim/components/ClusterDeployment/review/ReviewConfigMapsTable.js.map +1 -0
- package/build/cjs/cim/components/ClusterDeployment/review/index.js +5 -0
- package/build/cjs/cim/components/ClusterDeployment/review/index.js.map +1 -0
- package/build/cjs/cim/components/ClusterDeployment/use-networking-formik.js +1 -2
- package/build/cjs/cim/components/ClusterDeployment/use-networking-formik.js.map +1 -1
- package/build/cjs/cim/components/ClusterDeployment/wizardTransition.js +1 -0
- package/build/cjs/cim/components/ClusterDeployment/wizardTransition.js.map +1 -1
- package/build/cjs/cim/components/Hypershift/HostedClusterWizard/DetailsStep/DetailsForm.js +17 -4
- package/build/cjs/cim/components/Hypershift/HostedClusterWizard/DetailsStep/DetailsForm.js.map +1 -1
- package/build/cjs/cim/components/Hypershift/HostedClusterWizard/DetailsStep/DetailsStep.js +3 -1
- package/build/cjs/cim/components/Hypershift/HostedClusterWizard/DetailsStep/DetailsStep.js.map +1 -1
- package/build/cjs/cim/components/Hypershift/HostedClusterWizard/HostsStep/NodePoolForm.js +0 -28
- package/build/cjs/cim/components/Hypershift/HostedClusterWizard/HostsStep/NodePoolForm.js.map +1 -1
- package/build/cjs/cim/components/Hypershift/forms/NodePoolAgentsForm.js +8 -3
- package/build/cjs/cim/components/Hypershift/forms/NodePoolAgentsForm.js.map +1 -1
- package/build/cjs/cim/components/Hypershift/hooks/useSupportedOCPVersions.js +3 -3
- package/build/cjs/cim/components/Hypershift/hooks/useSupportedOCPVersions.js.map +1 -1
- package/build/cjs/cim/components/Hypershift/modals/AddNodePoolModal.js +1 -1
- package/build/cjs/cim/components/Hypershift/modals/AddNodePoolModal.js.map +1 -1
- package/build/cjs/cim/components/Hypershift/modals/ManageHostsModal.js +2 -2
- package/build/cjs/cim/components/Hypershift/modals/ManageHostsModal.js.map +1 -1
- package/build/cjs/cim/components/InfraEnv/InfraEnvAgentTable.js +2 -2
- package/build/cjs/cim/components/InfraEnv/InfraEnvAgentTable.js.map +1 -1
- package/build/cjs/cim/components/helpers/toAssisted.js +4 -1
- package/build/cjs/cim/components/helpers/toAssisted.js.map +1 -1
- package/build/cjs/cim/components/helpers/versions.js +5 -1
- package/build/cjs/cim/components/helpers/versions.js.map +1 -1
- package/build/cjs/cim/components/modals/EditProxyModal.js +1 -1
- package/build/cjs/cim/components/modals/EditProxyModal.js.map +1 -1
- package/build/cjs/cim/components/modals/EditSSHKeyModal.js +1 -1
- package/build/cjs/cim/components/modals/EditSSHKeyModal.js.map +1 -1
- package/build/cjs/cim/components/modals/MassApproveAgentModal.js +1 -1
- package/build/cjs/cim/components/modals/MassApproveAgentModal.js.map +1 -1
- package/build/cjs/cim/global.css +12 -0
- package/build/cjs/cim/hooks/index.js +5 -0
- package/build/cjs/cim/hooks/index.js.map +1 -0
- package/build/cjs/cim/hooks/types.js +3 -0
- package/build/cjs/cim/hooks/types.js.map +1 -0
- package/build/cjs/cim/hooks/useConfigMaps.js +12 -0
- package/build/cjs/cim/hooks/useConfigMaps.js.map +1 -0
- package/build/cjs/cim/hooks/useK8sWatchResource.js +12 -0
- package/build/cjs/cim/hooks/useK8sWatchResource.js.map +1 -0
- package/build/cjs/cim/index.js +2 -0
- package/build/cjs/cim/index.js.map +1 -1
- package/build/cjs/cim/types/index.js +1 -0
- package/build/cjs/cim/types/index.js.map +1 -1
- package/build/cjs/cim/types/models.js +14 -0
- package/build/cjs/cim/types/models.js.map +1 -0
- package/build/cjs/cim/utils.js +12 -1
- package/build/cjs/cim/utils.js.map +1 -1
- package/build/cjs/common/components/clusterConfiguration/DiskEncryptionFields/DiskEncryptionControlGroup.js +11 -6
- package/build/cjs/common/components/clusterConfiguration/DiskEncryptionFields/DiskEncryptionControlGroup.js.map +1 -1
- package/build/cjs/common/components/clusterConfiguration/ExternalPlatformsDropdown.js +34 -0
- package/build/cjs/common/components/clusterConfiguration/ExternalPlatformsDropdown.js.map +1 -0
- package/build/cjs/common/components/clusterConfiguration/index.js +2 -7
- package/build/cjs/common/components/clusterConfiguration/index.js.map +1 -1
- package/build/cjs/common/components/clusterDetail/OperatorsProgressItem.js +1 -1
- package/build/cjs/common/components/clusterDetail/OperatorsProgressItem.js.map +1 -1
- package/build/cjs/common/components/clusterWizard/clusterDetailsValidation.js +6 -25
- package/build/cjs/common/components/clusterWizard/clusterDetailsValidation.js.map +1 -1
- package/build/cjs/common/components/fetching/EventListFetch.js +1 -1
- package/build/cjs/common/components/fetching/EventListFetch.js.map +1 -1
- package/build/cjs/common/components/hosts/AITable.js +54 -38
- package/build/cjs/common/components/hosts/AITable.js.map +1 -1
- package/build/cjs/common/components/hosts/DiskRole.js +1 -1
- package/build/cjs/common/components/hosts/DiskRole.js.map +1 -1
- package/build/cjs/common/components/hosts/HostsTable.js +8 -5
- package/build/cjs/common/components/hosts/HostsTable.js.map +1 -1
- package/build/cjs/common/components/hosts/TableToolbar.js +3 -3
- package/build/cjs/common/components/hosts/TableToolbar.js.map +1 -1
- package/build/cjs/common/components/hosts/tableUtils.js +1 -1
- package/build/cjs/common/components/hosts/tableUtils.js.map +1 -1
- package/build/cjs/common/components/hosts/utils.js +23 -3
- package/build/cjs/common/components/hosts/utils.js.map +1 -1
- package/build/cjs/common/components/operators/operatorDescriptions.js +30 -0
- package/build/cjs/common/components/operators/operatorDescriptions.js.map +1 -0
- package/build/cjs/common/components/operators/operatorSpecs.js +384 -189
- package/build/cjs/common/components/operators/operatorSpecs.js.map +1 -1
- package/build/cjs/common/components/ui/ClusterEventsToolbar.js +5 -5
- package/build/cjs/common/components/ui/ClusterEventsToolbar.js.map +1 -1
- package/build/cjs/common/components/ui/OpenShiftSelectWithSearch.js +20 -140
- package/build/cjs/common/components/ui/OpenShiftSelectWithSearch.js.map +1 -1
- package/build/cjs/common/components/ui/OpenShiftVersionDropdown.js +10 -15
- package/build/cjs/common/components/ui/OpenShiftVersionDropdown.js.map +1 -1
- package/build/cjs/common/components/ui/OpenShiftVersionModal.js +8 -12
- package/build/cjs/common/components/ui/OpenShiftVersionModal.js.map +1 -1
- package/build/cjs/common/components/ui/SimpleDropdown.js +1 -1
- package/build/cjs/common/components/ui/SimpleDropdown.js.map +1 -1
- package/build/cjs/common/components/ui/formik/SelectFieldWithSearch.js +153 -0
- package/build/cjs/common/components/ui/formik/SelectFieldWithSearch.js.map +1 -0
- package/build/cjs/common/components/ui/formik/TextAreaField.js +2 -1
- package/build/cjs/common/components/ui/formik/TextAreaField.js.map +1 -1
- package/build/cjs/common/components/ui/formik/index.js +3 -3
- package/build/cjs/common/components/ui/formik/index.js.map +1 -1
- package/build/cjs/common/config/constants.js +30 -5
- package/build/cjs/common/config/constants.js.map +1 -1
- package/build/cjs/common/config/docs_links.js +57 -29
- package/build/cjs/common/config/docs_links.js.map +1 -1
- package/build/cjs/common/selectors/clusterSelectors.js +1 -1
- package/build/cjs/common/selectors/clusterSelectors.js.map +1 -1
- package/build/cjs/common/types/cpuArchitecture.js +3 -5
- package/build/cjs/common/types/cpuArchitecture.js.map +1 -1
- package/build/cjs/common/utils.js +28 -1
- package/build/cjs/common/utils.js.map +1 -1
- package/build/cjs/ocm/components/HostsClusterDetailTab/HostsClusterDetailTabContent.js +1 -1
- package/build/cjs/ocm/components/HostsClusterDetailTab/HostsClusterDetailTabContent.js.map +1 -1
- package/build/cjs/ocm/components/Routes.js +10 -8
- package/build/cjs/ocm/components/Routes.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/ControlPlaneNodesDropdown.js +27 -12
- package/build/cjs/ocm/components/clusterConfiguration/ControlPlaneNodesDropdown.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/OcmClusterDetailsFormFields.js +16 -0
- package/build/cjs/ocm/components/clusterConfiguration/OcmClusterDetailsFormFields.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/OcmOpenShiftVersion.js +14 -10
- package/build/cjs/ocm/components/clusterConfiguration/OcmOpenShiftVersion.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/OcmOpenShiftVersionSelect.js +10 -15
- package/build/cjs/ocm/components/clusterConfiguration/OcmOpenShiftVersionSelect.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/OcmOperatorProgressItem.js +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/OcmOperatorProgressItem.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/OcmSNODisclaimer.js +5 -21
- package/build/cjs/ocm/components/clusterConfiguration/OcmSNODisclaimer.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/OcmTNADisclaimer.js +14 -0
- package/build/cjs/ocm/components/clusterConfiguration/OcmTNADisclaimer.js.map +1 -0
- package/build/cjs/ocm/components/clusterConfiguration/OpenshiftVersionHelperText.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/manifestsConfiguration/components/FolderDropdown.js +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/manifestsConfiguration/components/FolderDropdown.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfigurationForm.js +4 -1
- package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfigurationForm.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/SubnetsDropdown.js +14 -20
- package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/SubnetsDropdown.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/operators/OperatorCheckbox.js +4 -4
- package/build/cjs/ocm/components/clusterConfiguration/operators/OperatorCheckbox.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/operators/utils.js +2 -1
- package/build/cjs/ocm/components/clusterConfiguration/operators/utils.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/review/ReviewOperatorsTable.js +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/review/ReviewOperatorsTable.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/staticIp/commonValidationSchemas.js +5 -1
- package/build/cjs/ocm/components/clusterConfiguration/staticIp/commonValidationSchemas.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/staticIp/components/FormViewNetworkWide/FormViewNetworkWideFields.js +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/staticIp/components/FormViewNetworkWide/FormViewNetworkWideFields.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/staticIp/components/FormViewNetworkWide/formViewNetworkWideValidationSchema.js +0 -1
- package/build/cjs/ocm/components/clusterConfiguration/staticIp/components/FormViewNetworkWide/formViewNetworkWideValidationSchema.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/staticIp/components/staticIp.css +3 -3
- package/build/cjs/ocm/components/clusterConfiguration/staticIp/data/formDataToInfraEnvField.js +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/staticIp/data/formDataToInfraEnvField.js.map +1 -1
- package/build/cjs/ocm/components/clusterDetail/ProgressBarAlerts.js +2 -2
- package/build/cjs/ocm/components/clusterDetail/ProgressBarAlerts.js.map +1 -1
- package/build/cjs/ocm/components/clusterWizard/ClusterDetails.js +8 -5
- package/build/cjs/ocm/components/clusterWizard/ClusterDetails.js.map +1 -1
- package/build/cjs/ocm/components/clusterWizard/ClusterDetailsForm.js +11 -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 +17 -2
- package/build/cjs/ocm/components/clusterWizard/ClusterWizardContextProvider.js.map +1 -1
- package/build/cjs/ocm/components/clusterWizard/CredentialsDownload.js +2 -1
- package/build/cjs/ocm/components/clusterWizard/CredentialsDownload.js.map +1 -1
- package/build/cjs/ocm/components/clusterWizard/NewClusterWizard.js +15 -2
- package/build/cjs/ocm/components/clusterWizard/NewClusterWizard.js.map +1 -1
- package/build/cjs/ocm/components/clusterWizard/Operators.js +4 -1
- package/build/cjs/ocm/components/clusterWizard/Operators.js.map +1 -1
- package/build/cjs/ocm/components/clusterWizard/OperatorsBundle.js +22 -18
- package/build/cjs/ocm/components/clusterWizard/OperatorsBundle.js.map +1 -1
- package/build/cjs/ocm/components/clusterWizard/OperatorsSelect.js +36 -19
- package/build/cjs/ocm/components/clusterWizard/OperatorsSelect.js.map +1 -1
- package/build/cjs/ocm/components/clusterWizard/OperatorsStep.js +13 -3
- package/build/cjs/ocm/components/clusterWizard/OperatorsStep.js.map +1 -1
- package/build/cjs/ocm/components/clusterWizard/constants.js +2 -0
- package/build/cjs/ocm/components/clusterWizard/constants.js.map +1 -1
- package/build/cjs/ocm/components/clusterWizard/disconnected/BasicStep.js +40 -0
- package/build/cjs/ocm/components/clusterWizard/disconnected/BasicStep.js.map +1 -0
- package/build/cjs/ocm/components/clusterWizard/disconnected/InstallDisconnectedSwitch.js +15 -0
- package/build/cjs/ocm/components/clusterWizard/disconnected/InstallDisconnectedSwitch.js.map +1 -0
- package/build/cjs/ocm/components/clusterWizard/disconnected/ReviewStep.js +63 -0
- package/build/cjs/ocm/components/clusterWizard/disconnected/ReviewStep.js.map +1 -0
- package/build/cjs/ocm/components/clusterWizard/wizardTransition.js +15 -2
- package/build/cjs/ocm/components/clusterWizard/wizardTransition.js.map +1 -1
- package/build/cjs/ocm/components/clusters/AssistedInstallerHeader.js +3 -0
- package/build/cjs/ocm/components/clusters/AssistedInstallerHeader.js.map +1 -1
- package/build/cjs/ocm/components/clusters/ClusterPage.js +2 -0
- package/build/cjs/ocm/components/clusters/ClusterPage.js.map +1 -1
- package/build/cjs/ocm/components/clusters/Clusters.js +6 -0
- package/build/cjs/ocm/components/clusters/Clusters.js.map +1 -1
- package/build/cjs/ocm/components/clusters/ClustersListToolbar.js +1 -1
- package/build/cjs/ocm/components/clusters/ClustersListToolbar.js.map +1 -1
- package/build/cjs/ocm/components/clusters/NewClusterPage.js +6 -7
- package/build/cjs/ocm/components/clusters/NewClusterPage.js.map +1 -1
- package/build/cjs/ocm/components/clusters/clusterPolling.js +1 -1
- package/build/cjs/ocm/components/clusters/clusterPolling.js.map +1 -1
- package/build/cjs/ocm/components/featureSupportLevels/featureStateUtils.js +5 -15
- package/build/cjs/ocm/components/featureSupportLevels/featureStateUtils.js.map +1 -1
- package/build/cjs/ocm/components/hosts/use-hosts-table.js +18 -4
- package/build/cjs/ocm/components/hosts/use-hosts-table.js.map +1 -1
- package/build/cjs/ocm/services/DiskEncryptionService.js +12 -4
- package/build/cjs/ocm/services/DiskEncryptionService.js.map +1 -1
- package/build/cjs/ocm/store/slices/current-cluster/selectors.js +1 -1
- package/build/cjs/ocm/store/slices/current-cluster/selectors.js.map +1 -1
- package/lib/cim/components/Agent/AgentStatus.tsx +1 -1
- package/lib/cim/components/Agent/tableUtils.tsx +5 -4
- package/lib/cim/components/ClusterDeployment/ClusterDeploymentWizard.tsx +15 -5
- package/lib/cim/components/ClusterDeployment/ScaleUpForm.tsx +1 -1
- package/lib/cim/components/ClusterDeployment/{ACMClusterDeploymentDetailsStep.tsx → clusterDetails/ACMClusterDeploymentDetailsStep.tsx} +6 -8
- package/lib/cim/components/ClusterDeployment/{ClusterDeploymentDetailsForm.tsx → clusterDetails/ClusterDeploymentDetailsForm.tsx} +17 -11
- package/lib/cim/components/ClusterDeployment/{ClusterDeploymentDetailsStep.tsx → clusterDetails/ClusterDeploymentDetailsStep.tsx} +10 -15
- package/lib/cim/components/ClusterDeployment/{ClusterDetailsFormFields.tsx → clusterDetails/ClusterDetailsFormFields.tsx} +44 -39
- package/lib/cim/components/ClusterDeployment/clusterDetails/index.tsx +4 -0
- package/lib/cim/components/ClusterDeployment/{AdditionalNTPSourcesDialogToggle.tsx → components/AdditionalNTPSourcesDialogToggle.tsx} +1 -1
- package/lib/cim/components/ClusterDeployment/components/index.tsx +1 -0
- package/lib/cim/components/ClusterDeployment/constants.ts +1 -0
- package/lib/cim/components/ClusterDeployment/customManifests/ClusterDeploymentCustomManifestsStep.tsx +121 -0
- package/lib/cim/components/ClusterDeployment/customManifests/ConfigMapDetail.tsx +191 -0
- package/lib/cim/components/ClusterDeployment/customManifests/ConfigMapForm.tsx +247 -0
- package/lib/cim/components/ClusterDeployment/customManifests/index.tsx +1 -0
- package/lib/cim/components/ClusterDeployment/{ClusterDeploymentHostDiscoveryTable.tsx → hostDiscovery/ClusterDeploymentHostDiscoveryTable.tsx} +13 -13
- package/lib/cim/components/ClusterDeployment/{ClusterDeploymentHostsDiscovery.tsx → hostDiscovery/ClusterDeploymentHostsDiscovery.tsx} +8 -8
- package/lib/cim/components/ClusterDeployment/{ClusterDeploymentHostsDiscoveryStep.tsx → hostDiscovery/ClusterDeploymentHostsDiscoveryStep.tsx} +10 -11
- package/lib/cim/components/ClusterDeployment/hostDiscovery/index.tsx +1 -0
- package/lib/cim/components/ClusterDeployment/{ClusterDeploymentHostSelectionStep.tsx → hostSelection/ClusterDeploymentHostSelectionStep.tsx} +13 -16
- package/lib/cim/components/ClusterDeployment/{ClusterDeploymentHostsSelection.tsx → hostSelection/ClusterDeploymentHostsSelection.tsx} +7 -7
- package/lib/cim/components/ClusterDeployment/{ClusterDeploymentHostsSelectionAdvanced.tsx → hostSelection/ClusterDeploymentHostsSelectionAdvanced.tsx} +10 -12
- package/lib/cim/components/ClusterDeployment/{ClusterDeploymentHostsSelectionBasic.tsx → hostSelection/ClusterDeploymentHostsSelectionBasic.tsx} +9 -9
- package/lib/cim/components/ClusterDeployment/hostSelection/index.tsx +2 -0
- package/lib/cim/components/ClusterDeployment/index.ts +2 -2
- package/lib/cim/components/ClusterDeployment/{ClusterDeploymentHostsNetworkTable.tsx → networking/ClusterDeploymentHostsNetworkTable.tsx} +12 -12
- package/lib/cim/components/ClusterDeployment/{ClusterDeploymentNetworkingForm.tsx → networking/ClusterDeploymentNetworkingForm.tsx} +8 -12
- package/lib/cim/components/ClusterDeployment/{ClusterDeploymentNetworkingStep.tsx → networking/ClusterDeploymentNetworkingStep.tsx} +11 -13
- package/lib/cim/components/ClusterDeployment/networking/index.tsx +1 -0
- package/lib/cim/components/ClusterDeployment/{ClusterDeploymentReviewStep.tsx → review/ClusterDeploymentReviewStep.tsx} +36 -15
- package/lib/cim/components/ClusterDeployment/review/ReviewConfigMapsTable.tsx +70 -0
- package/lib/cim/components/ClusterDeployment/review/index.tsx +1 -0
- package/lib/cim/components/ClusterDeployment/types.ts +1 -0
- package/lib/cim/components/ClusterDeployment/use-networking-formik.ts +2 -2
- package/lib/cim/components/ClusterDeployment/wizardTransition.ts +2 -0
- package/lib/cim/components/Hypershift/HostedClusterWizard/DetailsStep/DetailsForm.tsx +44 -4
- package/lib/cim/components/Hypershift/HostedClusterWizard/DetailsStep/DetailsStep.tsx +4 -0
- package/lib/cim/components/Hypershift/HostedClusterWizard/DetailsStep/types.ts +6 -1
- package/lib/cim/components/Hypershift/HostedClusterWizard/HostsStep/NodePoolForm.tsx +1 -33
- package/lib/cim/components/Hypershift/forms/NodePoolAgentsForm.tsx +24 -12
- package/lib/cim/components/Hypershift/hooks/useSupportedOCPVersions.ts +3 -2
- package/lib/cim/components/Hypershift/modals/AddNodePoolModal.tsx +1 -1
- package/lib/cim/components/Hypershift/modals/ManageHostsModal.tsx +2 -2
- package/lib/cim/components/InfraEnv/InfraEnvAgentTable.tsx +2 -0
- package/lib/cim/components/helpers/toAssisted.ts +9 -1
- package/lib/cim/components/helpers/versions.ts +7 -3
- package/lib/cim/components/modals/EditProxyModal.tsx +1 -1
- package/lib/cim/components/modals/EditSSHKeyModal.tsx +1 -1
- package/lib/cim/components/modals/MassApproveAgentModal.tsx +1 -1
- package/lib/cim/global.css +12 -0
- package/lib/cim/hooks/index.tsx +1 -0
- package/lib/cim/hooks/types.tsx +8 -0
- package/lib/cim/hooks/useConfigMaps.tsx +14 -0
- package/lib/cim/hooks/useK8sWatchResource.tsx +27 -0
- package/lib/cim/index.ts +3 -0
- package/lib/cim/types/index.ts +1 -0
- package/lib/cim/types/k8s/agent-cluster-install.ts +1 -0
- package/lib/cim/types/models.tsx +12 -0
- package/lib/cim/utils.ts +12 -0
- package/lib/common/components/clusterConfiguration/DiskEncryptionFields/DiskEncryptionControlGroup.tsx +20 -5
- package/lib/common/components/clusterConfiguration/DiskEncryptionFields/DiskEncryptionValues.ts +1 -0
- package/lib/common/components/clusterConfiguration/ExternalPlatformsDropdown.tsx +74 -0
- package/lib/common/components/clusterConfiguration/index.ts +1 -3
- package/lib/common/components/clusterDetail/OperatorsProgressItem.tsx +1 -1
- package/lib/common/components/clusterWizard/clusterDetailsValidation.ts +6 -34
- package/lib/common/components/clusterWizard/types.ts +2 -4
- package/lib/common/components/fetching/EventListFetch.tsx +2 -2
- package/lib/common/components/hosts/AITable.tsx +61 -37
- package/lib/common/components/hosts/DiskRole.tsx +0 -1
- package/lib/common/components/hosts/HostsTable.tsx +21 -9
- package/lib/common/components/hosts/TableToolbar.tsx +9 -10
- package/lib/common/components/hosts/tableUtils.tsx +1 -1
- package/lib/common/components/hosts/types.ts +1 -1
- package/lib/common/components/hosts/utils.ts +31 -4
- package/lib/common/components/newFeatureSupportLevels/types.ts +1 -0
- package/lib/common/components/operators/operatorDescriptions.tsx +70 -0
- package/lib/common/components/operators/operatorSpecs.tsx +505 -261
- package/lib/common/components/ui/ClusterEventsToolbar.tsx +6 -0
- package/lib/common/components/ui/OpenShiftSelectWithSearch.tsx +38 -239
- package/lib/common/components/ui/OpenShiftVersionDropdown.tsx +14 -23
- package/lib/common/components/ui/OpenShiftVersionModal.tsx +12 -16
- package/lib/common/components/ui/SimpleDropdown.tsx +0 -1
- package/lib/common/components/ui/formik/SelectFieldWithSearch.tsx +278 -0
- package/lib/common/components/ui/formik/TextAreaField.tsx +14 -7
- package/lib/common/components/ui/formik/index.tsx +1 -1
- package/lib/common/config/constants.ts +29 -4
- package/lib/common/config/docs_links.ts +76 -41
- package/lib/common/selectors/clusterSelectors.ts +1 -2
- package/lib/common/types/cpuArchitecture.ts +3 -9
- package/lib/common/types/ui-settings.ts +1 -0
- package/lib/common/utils.ts +30 -0
- package/lib/ocm/components/HostsClusterDetailTab/HostsClusterDetailTabContent.tsx +2 -2
- package/lib/ocm/components/Routes.tsx +22 -15
- package/lib/ocm/components/clusterConfiguration/ControlPlaneNodesDropdown.tsx +39 -24
- package/lib/ocm/components/clusterConfiguration/OcmClusterDetailsFormFields.tsx +33 -1
- package/lib/ocm/components/clusterConfiguration/OcmOpenShiftVersion.tsx +18 -11
- package/lib/ocm/components/clusterConfiguration/OcmOpenShiftVersionSelect.tsx +13 -18
- package/lib/ocm/components/clusterConfiguration/OcmOperatorProgressItem.tsx +1 -1
- package/lib/ocm/components/clusterConfiguration/OcmSNODisclaimer.tsx +14 -60
- package/lib/ocm/components/clusterConfiguration/OcmTNADisclaimer.tsx +23 -0
- package/lib/ocm/components/clusterConfiguration/OpenshiftVersionHelperText.tsx +1 -1
- package/lib/ocm/components/clusterConfiguration/manifestsConfiguration/components/FolderDropdown.tsx +1 -0
- package/lib/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfigurationForm.tsx +6 -1
- package/lib/ocm/components/clusterConfiguration/networkConfiguration/SubnetsDropdown.tsx +20 -26
- package/lib/ocm/components/clusterConfiguration/operators/OperatorCheckbox.tsx +6 -3
- package/lib/ocm/components/clusterConfiguration/operators/utils.tsx +2 -1
- package/lib/ocm/components/clusterConfiguration/review/ReviewOperatorsTable.tsx +2 -1
- package/lib/ocm/components/clusterConfiguration/staticIp/commonValidationSchemas.tsx +5 -1
- package/lib/ocm/components/clusterConfiguration/staticIp/components/FormViewNetworkWide/FormViewNetworkWideFields.tsx +2 -2
- package/lib/ocm/components/clusterConfiguration/staticIp/components/FormViewNetworkWide/formViewNetworkWideValidationSchema.tsx +0 -1
- package/lib/ocm/components/clusterConfiguration/staticIp/components/staticIp.css +3 -3
- package/lib/ocm/components/clusterConfiguration/staticIp/data/formDataToInfraEnvField.ts +1 -1
- package/lib/ocm/components/clusterDetail/ProgressBarAlerts.tsx +2 -2
- package/lib/ocm/components/clusterWizard/ClusterDetails.tsx +15 -6
- package/lib/ocm/components/clusterWizard/ClusterDetailsForm.tsx +18 -15
- package/lib/ocm/components/clusterWizard/ClusterWizardContext.tsx +4 -2
- package/lib/ocm/components/clusterWizard/ClusterWizardContextProvider.tsx +18 -2
- package/lib/ocm/components/clusterWizard/CredentialsDownload.tsx +2 -1
- package/lib/ocm/components/clusterWizard/NewClusterWizard.tsx +17 -1
- package/lib/ocm/components/clusterWizard/Operators.tsx +5 -1
- package/lib/ocm/components/clusterWizard/OperatorsBundle.tsx +29 -23
- package/lib/ocm/components/clusterWizard/OperatorsSelect.tsx +68 -41
- package/lib/ocm/components/clusterWizard/OperatorsStep.tsx +30 -3
- package/lib/ocm/components/clusterWizard/constants.ts +2 -0
- package/lib/ocm/components/clusterWizard/disconnected/BasicStep.tsx +81 -0
- package/lib/ocm/components/clusterWizard/disconnected/InstallDisconnectedSwitch.tsx +32 -0
- package/lib/ocm/components/clusterWizard/disconnected/ReviewStep.tsx +123 -0
- package/lib/ocm/components/clusterWizard/wizardTransition.ts +18 -2
- package/lib/ocm/components/clusters/AssistedInstallerHeader.tsx +9 -1
- package/lib/ocm/components/clusters/ClusterPage.tsx +3 -0
- package/lib/ocm/components/clusters/Clusters.tsx +10 -0
- package/lib/ocm/components/clusters/ClustersListToolbar.tsx +1 -1
- package/lib/ocm/components/clusters/NewClusterPage.tsx +9 -13
- package/lib/ocm/components/clusters/clusterPolling.ts +2 -2
- package/lib/ocm/components/featureSupportLevels/featureStateUtils.ts +7 -18
- package/lib/ocm/components/hosts/use-hosts-table.tsx +18 -5
- package/lib/ocm/services/DiskEncryptionService.ts +8 -2
- package/lib/ocm/store/slices/current-cluster/selectors.ts +1 -1
- package/package.json +4 -4
- package/build/@types/cim/components/ClusterDeployment/ACMClusterDeploymentDetailsStep.d.ts.map +0 -1
- package/build/@types/cim/components/ClusterDeployment/AdditionalNTPSourcesDialogToggle.d.ts.map +0 -1
- package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentDetailsForm.d.ts.map +0 -1
- package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentDetailsStep.d.ts.map +0 -1
- package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentHostDiscoveryTable.d.ts.map +0 -1
- package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentHostSelectionStep.d.ts.map +0 -1
- package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentHostsDiscovery.d.ts.map +0 -1
- package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentHostsDiscoveryStep.d.ts +0 -5
- package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentHostsDiscoveryStep.d.ts.map +0 -1
- package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentHostsNetworkTable.d.ts.map +0 -1
- package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentHostsSelection.d.ts.map +0 -1
- package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentHostsSelectionAdvanced.d.ts.map +0 -1
- package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentHostsSelectionBasic.d.ts.map +0 -1
- package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentNetworkingForm.d.ts.map +0 -1
- package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentNetworkingStep.d.ts.map +0 -1
- package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentReviewStep.d.ts.map +0 -1
- package/build/@types/cim/components/ClusterDeployment/ClusterDetailsFormFields.d.ts.map +0 -1
- package/build/@types/common/components/clusterConfiguration/OpenShiftVersionSelect.d.ts +0 -10
- package/build/@types/common/components/clusterConfiguration/OpenShiftVersionSelect.d.ts.map +0 -1
- package/build/@types/common/components/clusterConfiguration/SNOControlGroup.d.ts +0 -10
- package/build/@types/common/components/clusterConfiguration/SNOControlGroup.d.ts.map +0 -1
- package/build/@types/common/components/clusterConfiguration/SNODisclaimer.d.ts +0 -10
- package/build/@types/common/components/clusterConfiguration/SNODisclaimer.d.ts.map +0 -1
- package/build/@types/common/components/ui/formik/SingleNodeCheckbox.d.ts +0 -9
- package/build/@types/common/components/ui/formik/SingleNodeCheckbox.d.ts.map +0 -1
- package/build/@types/ocm/components/clusterConfiguration/OcmSingleNodeCheckbox.d.ts +0 -11
- package/build/@types/ocm/components/clusterConfiguration/OcmSingleNodeCheckbox.d.ts.map +0 -1
- package/build/cjs/cim/components/ClusterDeployment/ACMClusterDeploymentDetailsStep.js.map +0 -1
- package/build/cjs/cim/components/ClusterDeployment/AdditionalNTPSourcesDialogToggle.js.map +0 -1
- package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentDetailsForm.js.map +0 -1
- package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentDetailsStep.js.map +0 -1
- package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentHostDiscoveryTable.js.map +0 -1
- package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentHostSelectionStep.js.map +0 -1
- package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentHostsDiscovery.js.map +0 -1
- package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentHostsDiscoveryStep.js.map +0 -1
- package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentHostsNetworkTable.js.map +0 -1
- package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentHostsSelection.js.map +0 -1
- package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentHostsSelectionAdvanced.js.map +0 -1
- package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentHostsSelectionBasic.js.map +0 -1
- package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentNetworkingForm.js.map +0 -1
- package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentNetworkingStep.js.map +0 -1
- package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentReviewStep.js.map +0 -1
- package/build/cjs/cim/components/ClusterDeployment/ClusterDetailsFormFields.js.map +0 -1
- package/build/cjs/common/components/clusterConfiguration/OpenShiftVersionSelect.js +0 -52
- package/build/cjs/common/components/clusterConfiguration/OpenShiftVersionSelect.js.map +0 -1
- package/build/cjs/common/components/clusterConfiguration/SNOControlGroup.js +0 -20
- package/build/cjs/common/components/clusterConfiguration/SNOControlGroup.js.map +0 -1
- package/build/cjs/common/components/clusterConfiguration/SNODisclaimer.js +0 -31
- package/build/cjs/common/components/clusterConfiguration/SNODisclaimer.js.map +0 -1
- package/build/cjs/common/components/ui/formik/SingleNodeCheckbox.js +0 -45
- package/build/cjs/common/components/ui/formik/SingleNodeCheckbox.js.map +0 -1
- package/build/cjs/ocm/components/clusterConfiguration/OcmSingleNodeCheckbox.js +0 -51
- package/build/cjs/ocm/components/clusterConfiguration/OcmSingleNodeCheckbox.js.map +0 -1
- package/lib/common/components/clusterConfiguration/OpenShiftVersionSelect.tsx +0 -81
- package/lib/common/components/clusterConfiguration/SNOControlGroup.tsx +0 -41
- package/lib/common/components/clusterConfiguration/SNODisclaimer.tsx +0 -79
- package/lib/common/components/ui/formik/SingleNodeCheckbox.tsx +0 -98
- package/lib/ocm/components/clusterConfiguration/OcmSingleNodeCheckbox.tsx +0 -107
- /package/build/@types/cim/components/ClusterDeployment/{AdditionalNTPSourcesDialogToggle.d.ts → components/AdditionalNTPSourcesDialogToggle.d.ts} +0 -0
|
@@ -58,14 +58,16 @@ const getWizardStepIds = (wizardStepIds, staticIpView, customManifestsStep, isSi
|
|
|
58
58
|
const ClusterWizardContextProvider = ({ children, cluster, infraEnv, permissions, }) => {
|
|
59
59
|
const isSingleClusterFeatureEnabled = (0, use_feature_1.useFeature)('ASSISTED_INSTALLER_SINGLE_CLUSTER_FEATURE');
|
|
60
60
|
const [currentStepId, setCurrentStepId] = react_1.default.useState();
|
|
61
|
-
const [
|
|
61
|
+
const [connectedWizardStepIds, setWizardStepIds] = react_1.default.useState();
|
|
62
62
|
const [wizardPerPage, setWizardPerPage] = react_1.default.useState(10);
|
|
63
63
|
const [customManifestsStep, setCustomManifestsStep] = react_1.default.useState(false);
|
|
64
|
+
const [installDisconnected, setInstallDisconnected] = react_1.default.useState(false);
|
|
64
65
|
const location = (0, react_router_dom_v5_compat_1.useLocation)();
|
|
65
66
|
const locationState = location.state;
|
|
66
67
|
const { uiSettings, updateUISettings, loading: UISettingsLoading, error: UISettingsError, } = (0, hooks_1.useUISettings)(cluster === null || cluster === void 0 ? void 0 : cluster.id);
|
|
67
68
|
const { clearAlerts, addAlert, alerts } = (0, common_1.useAlerts)();
|
|
68
69
|
const setClusterPermissions = (0, useSetClusterPermissions_1.default)();
|
|
70
|
+
const wizardStepIds = installDisconnected ? wizardTransition_1.disconnectedSteps : connectedWizardStepIds;
|
|
69
71
|
react_1.default.useEffect(() => {
|
|
70
72
|
if (!UISettingsLoading) {
|
|
71
73
|
const staticIpInfo = infraEnv ? (0, fromInfraEnv_1.getStaticIpInfo)(infraEnv) : undefined;
|
|
@@ -148,7 +150,7 @@ const ClusterWizardContextProvider = ({ children, cluster, infraEnv, permissions
|
|
|
148
150
|
setWizardStepIds(getWizardStepIds(wizardStepIds, 'dhcp-selected', customManifestsStep, isSingleClusterFeatureEnabled));
|
|
149
151
|
}
|
|
150
152
|
},
|
|
151
|
-
wizardStepIds,
|
|
153
|
+
wizardStepIds: wizardStepIds,
|
|
152
154
|
currentStepId,
|
|
153
155
|
setCurrentStepId: onSetCurrentStepId,
|
|
154
156
|
customManifestsStep,
|
|
@@ -157,6 +159,16 @@ const ClusterWizardContextProvider = ({ children, cluster, infraEnv, permissions
|
|
|
157
159
|
setWizardPerPage,
|
|
158
160
|
uiSettings,
|
|
159
161
|
updateUISettings,
|
|
162
|
+
installDisconnected,
|
|
163
|
+
setInstallDisconnected: (enabled) => {
|
|
164
|
+
setInstallDisconnected(enabled);
|
|
165
|
+
if (enabled) {
|
|
166
|
+
onSetCurrentStepId(wizardTransition_1.disconnectedSteps[0]);
|
|
167
|
+
}
|
|
168
|
+
else {
|
|
169
|
+
(connectedWizardStepIds === null || connectedWizardStepIds === void 0 ? void 0 : connectedWizardStepIds.length) && onSetCurrentStepId(connectedWizardStepIds[0]);
|
|
170
|
+
}
|
|
171
|
+
},
|
|
160
172
|
};
|
|
161
173
|
}, [
|
|
162
174
|
wizardStepIds,
|
|
@@ -168,6 +180,9 @@ const ClusterWizardContextProvider = ({ children, cluster, infraEnv, permissions
|
|
|
168
180
|
clearAlerts,
|
|
169
181
|
uiSettings,
|
|
170
182
|
updateUISettings,
|
|
183
|
+
installDisconnected,
|
|
184
|
+
setInstallDisconnected,
|
|
185
|
+
connectedWizardStepIds,
|
|
171
186
|
]);
|
|
172
187
|
if (!contextValue) {
|
|
173
188
|
return null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ClusterWizardContextProvider.js","sourceRoot":"","sources":["../../../../../lib/ocm/components/clusterWizard/ClusterWizardContextProvider.tsx"],"names":[],"mappings":";;;AAAA,0DAAiD;AACjD,2EAAyD;AACzD,iEAAwF;AACxF,
|
|
1
|
+
{"version":3,"file":"ClusterWizardContextProvider.js","sourceRoot":"","sources":["../../../../../lib/ocm/components/clusterWizard/ClusterWizardContextProvider.tsx"],"names":[],"mappings":";;;AAAA,0DAAiD;AACjD,2EAAyD;AACzD,iEAAwF;AACxF,yDAO4B;AAC5B,6CAA+D;AAC/D,2CAA2E;AAC3E,+EAA+E;AAC/E,qFAAqF;AACrF,4CAAyF;AACzF,4GAA4E;AAE5E,uCAA4C;AAC5C,uDAAsD;AACtD,yDAAqD;AAErD,MAAM,sBAAsB,GAAG,CAC7B,aAAuC,EACvC,YAAoC,EACpC,UAAoC,EACpC,EAAE;IACF,MAAM,QAAQ,GAAG,CAAC,GAAG,aAAa,CAAC,CAAC;IACpC,MAAM,iBAAiB,GAAG,QAAQ,CAAC,SAAS,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,KAAK,YAAY,CAAC,CAAC;IAC9E,MAAM,KAAK,GAAG,aAAa,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,KAAK,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC;IACrE,IAAI,iBAAiB,KAAK,CAAC,CAAC,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,EAAE;QAClD,QAAQ,CAAC,MAAM,CAAC,iBAAiB,GAAG,CAAC,EAAE,CAAC,EAAE,GAAG,UAAU,CAAC,CAAC;KAC1D;IACD,OAAO,QAAQ,CAAC;AAClB,CAAC,CAAC;AAEF,MAAM,2BAA2B,GAAG,C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CACF,CAAC;iBACH;qBAAM;oBACL,gBAAgB,CACd,gBAAgB,CACd,aAAa,EACb,eAAe,EACf,mBAAmB,EACnB,6BAA6B,CAC9B,CACF,CAAC;iBACH;YACH,CAAC;YACD,aAAa,EAAE,aAAa;YAC5B,aAAa;YACb,gBAAgB,EAAE,kBAAkB;YACpC,mBAAmB;YACnB,sBAAsB,EAAE,2BAA2B;YACnD,aAAa;YACb,gBAAgB;YAChB,UAAU;YACV,gBAAgB;YAChB,mBAAmB;YACnB,sBAAsB,EAAE,CAAC,OAAgB,EAAE,EAAE;gBAC3C,sBAAsB,CAAC,OAAO,CAAC,CAAC;gBAChC,IAAI,OAAO,EAAE;oBACX,kBAAkB,CAAC,oCAAiB,CAAC,CAAC,CAAC,CAAC,CAAC;iBAC1C;qBAAM;oBACL,CAAA,sBAAsB,aAAtB,sBAAsB,uBAAtB,sBAAsB,CAAE,MAAM,KAAI,kBAAkB,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC;iBACjF;YACH,CAAC;SACF,CAAC;IACJ,CAAC,EAAE;QACD,aAAa;QACb,aAAa;QACb,QAAQ;QACR,mBAAmB;QACnB,aAAa;QACb,6BAA6B;QAC7B,WAAW;QACX,UAAU;QACV,gBAAgB;QAChB,mBAAmB;QACnB,sBAAsB;QACtB,sBAAsB;KACvB,CAAC,CAAC;IAEH,IAAI,CAAC,YAAY,EAAE;QACjB,OAAO,IAAI,CAAC;KACb;IAED,OAAO,CACL;QACE,8BAAC,2CAAoB,CAAC,QAAQ,IAAC,KAAK,EAAE,YAAY,IAAG,QAAQ,CAAiC,CAC7F,CACJ,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,4BAA4B,CAAC"}
|
|
@@ -14,7 +14,7 @@ const CredentialsDownload = ({ cluster }) => {
|
|
|
14
14
|
const clusterWizardContext = (0, ClusterWizardContext_1.useClusterWizardContext)();
|
|
15
15
|
const [isChecked, setIsChecked] = react_1.default.useState(false);
|
|
16
16
|
const [isDownloading, setIsDownloading] = react_1.default.useState(false);
|
|
17
|
-
const { addAlert } = (0, common_1.useAlerts)();
|
|
17
|
+
const { addAlert, clearAlerts } = (0, common_1.useAlerts)();
|
|
18
18
|
const { t } = (0, common_1.useTranslation)();
|
|
19
19
|
const downloadSingleFile = (fileName) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
20
20
|
try {
|
|
@@ -33,6 +33,7 @@ const CredentialsDownload = ({ cluster }) => {
|
|
|
33
33
|
}
|
|
34
34
|
});
|
|
35
35
|
const handleDownloadClick = () => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
36
|
+
clearAlerts();
|
|
36
37
|
setIsDownloading(true);
|
|
37
38
|
const configSuccess = yield downloadSingleFile('kubeconfig');
|
|
38
39
|
const passwordSuccess = yield downloadSingleFile('kubeadmin-password');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CredentialsDownload.js","sourceRoot":"","sources":["../../../../../lib/ocm/components/clusterWizard/CredentialsDownload.tsx"],"names":[],"mappings":";;;AAAA,0DAA0B;AAC1B,4CASyB;AACzB,iEAAiE;AACjE,wFAAwD;AACxD,gGAAgE;AAChE,kGAA+F;AAE/F,uDAA8E;AAC9E,iDAAqD;AACrD,yGAAmG;AAEnG,MAAM,mBAAmB,GAAmC,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE;IAC1E,MAAM,oBAAoB,GAAG,IAAA,8CAAuB,GAAE,CAAC;IACvD,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,eAAK,CAAC,QAAQ,CAAU,KAAK,CAAC,CAAC;IACjE,MAAM,CAAC,aAAa,EAAE,gBAAgB,CAAC,GAAG,eAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IAChE,MAAM,EAAE,QAAQ,EAAE,GAAG,IAAA,kBAAS,GAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"CredentialsDownload.js","sourceRoot":"","sources":["../../../../../lib/ocm/components/clusterWizard/CredentialsDownload.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M,EAAC,QAAQ,EAAC,GAAG,EAAC,qBAAqB;wBACrE,CAAC,CAAC,gCAAgC,CAAC;;wBAAE,8BAAC,4CAAmB,OAAG,CAC3D;oBAGL,CAAC,CAAC,iFAAiF,CAAC;oBACrF,yCAAM;oBACL,CAAC,CAAC,gFAAgF,CAAC,CAC9E;gBACR,8BAAC,qBAAQ,IACP,EAAE,EAAC,gCAAgC,EACnC,SAAS,EAAE,SAAS,EACpB,QAAQ,EAAE,GAAG,EAAE,CAAC,YAAY,CAAC,CAAC,SAAS,CAAC,EACxC,KAAK,EAAE,CAAC,CACN,8GAA8G,CAC/G,GACD,CACI,CACU,CACF,CACrB,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,mBAAmB,CAAC"}
|
|
@@ -4,9 +4,22 @@ const tslib_1 = require("tslib");
|
|
|
4
4
|
const classnames_1 = tslib_1.__importDefault(require("classnames"));
|
|
5
5
|
const react_1 = tslib_1.__importDefault(require("react"));
|
|
6
6
|
const ClusterDetails_1 = tslib_1.__importDefault(require("./ClusterDetails"));
|
|
7
|
+
const ClusterWizardContext_1 = require("./ClusterWizardContext");
|
|
8
|
+
const ReviewStep_1 = tslib_1.__importDefault(require("./disconnected/ReviewStep"));
|
|
9
|
+
const BasicStep_1 = tslib_1.__importDefault(require("./disconnected/BasicStep"));
|
|
10
|
+
const getCurrentStep = (currentStepId) => {
|
|
11
|
+
switch (currentStepId) {
|
|
12
|
+
case 'disconnected-review':
|
|
13
|
+
return react_1.default.createElement(ReviewStep_1.default, null);
|
|
14
|
+
case 'disconnected-basic':
|
|
15
|
+
return react_1.default.createElement(BasicStep_1.default, null);
|
|
16
|
+
default:
|
|
17
|
+
return react_1.default.createElement(ClusterDetails_1.default, null);
|
|
18
|
+
}
|
|
19
|
+
};
|
|
7
20
|
const NewClusterWizard = () => {
|
|
8
|
-
|
|
9
|
-
|
|
21
|
+
const { currentStepId } = (0, ClusterWizardContext_1.useClusterWizardContext)();
|
|
22
|
+
return (react_1.default.createElement("div", { className: (0, classnames_1.default)('pf-v5-c-wizard', 'cluster-wizard') }, getCurrentStep(currentStepId)));
|
|
10
23
|
};
|
|
11
24
|
exports.default = NewClusterWizard;
|
|
12
25
|
//# sourceMappingURL=NewClusterWizard.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NewClusterWizard.js","sourceRoot":"","sources":["../../../../../lib/ocm/components/clusterWizard/NewClusterWizard.tsx"],"names":[],"mappings":";;;AAAA,oEAAoC;AACpC,0DAA0B;AAC1B,8EAA8C;
|
|
1
|
+
{"version":3,"file":"NewClusterWizard.js","sourceRoot":"","sources":["../../../../../lib/ocm/components/clusterWizard/NewClusterWizard.tsx"],"names":[],"mappings":";;;AAAA,oEAAoC;AACpC,0DAA0B;AAC1B,8EAA8C;AAC9C,iEAAiE;AACjE,mFAAmD;AACnD,iFAAiD;AAGjD,MAAM,cAAc,GAAG,CAAC,aAAqC,EAAE,EAAE;IAC/D,QAAQ,aAAa,EAAE;QACrB,KAAK,qBAAqB;YACxB,OAAO,8BAAC,oBAAU,OAAG,CAAC;QACxB,KAAK,oBAAoB;YACvB,OAAO,8BAAC,mBAAS,OAAG,CAAC;QACvB;YACE,OAAO,8BAAC,wBAAc,OAAG,CAAC;KAC7B;AACH,CAAC,CAAC;AAEF,MAAM,gBAAgB,GAAa,GAAG,EAAE;IACtC,MAAM,EAAE,aAAa,EAAE,GAAG,IAAA,8CAAuB,GAAE,CAAC;IACpD,OAAO,CACL,uCAAK,SAAS,EAAE,IAAA,oBAAU,EAAC,gBAAgB,EAAE,gBAAgB,CAAC,IAC3D,cAAc,CAAC,aAAa,CAAC,CAC1B,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,gBAAgB,CAAC"}
|
|
@@ -14,6 +14,9 @@ const services_1 = require("../../services");
|
|
|
14
14
|
const slice_1 = require("../../store/slices/current-cluster/slice");
|
|
15
15
|
const api_1 = require("../../../common/api");
|
|
16
16
|
const wizardTransition_1 = require("./wizardTransition");
|
|
17
|
+
// Balance debounce time: fast clicks should trigger a single API call,
|
|
18
|
+
// but making it shorter will allow us to disable navigation buttons while changes are pending
|
|
19
|
+
const operatorsAutoSaveDebounce = 500;
|
|
17
20
|
const getOperatorsInitialValues = (uiSettings, cluster) => {
|
|
18
21
|
return {
|
|
19
22
|
selectedBundles: (uiSettings === null || uiSettings === void 0 ? void 0 : uiSettings.bundlesSelected) || [],
|
|
@@ -23,7 +26,7 @@ const getOperatorsInitialValues = (uiSettings, cluster) => {
|
|
|
23
26
|
const OperatorsForm = ({ cluster }) => {
|
|
24
27
|
const { alerts } = (0, common_1.useAlerts)();
|
|
25
28
|
const clusterWizardContext = (0, ClusterWizardContext_1.useClusterWizardContext)();
|
|
26
|
-
const isAutoSaveRunning = (0, common_1.useFormikAutoSave)();
|
|
29
|
+
const isAutoSaveRunning = (0, common_1.useFormikAutoSave)(operatorsAutoSaveDebounce);
|
|
27
30
|
const { errors, touched, isSubmitting, isValid } = (0, formik_1.useFormikContext)();
|
|
28
31
|
const navigate = (0, react_router_dom_v5_compat_1.useNavigate)();
|
|
29
32
|
const { pathname } = (0, react_router_dom_v5_compat_1.useLocation)();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Operators.js","sourceRoot":"","sources":["../../../../../lib/ocm/components/clusterWizard/Operators.tsx"],"names":[],"mappings":";;;AAAA,0DAA0B;AAC1B,6CAA0C;AAC1C,2EAAsE;AACtE,mCAAgE;AAEhE,4CAQyB;AACzB,iEAAiE;AACjE,uGAAuE;AACvE,+GAA+E;AAC/E,mDAAgD;AAChD,6CAAiD;AACjD,oEAA+F;AAC/F,6CAA+F;AAC/F,yDAAsD;AAEtD,MAAM,yBAAyB,GAAG,CAChC,UAAwC,EACxC,OAAgB,EACC,EAAE;IACnB,OAAO;QACL,eAAe,EAAE,CAAA,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,eAAe,KAAI,EAAE;QAClD,iBAAiB,EAAE,IAAA,2BAAkB,EAAC,OA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AE,YAAY;QAC3F,8BAAC,aAAa,IAAC,OAAO,EAAE,OAAO,GAAI,CAC5B,CACV,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC"}
|
|
@@ -13,14 +13,15 @@ const selectors_1 = require("../../store/slices/current-cluster/selectors");
|
|
|
13
13
|
const utils_1 = require("../clusterConfiguration/operators/utils");
|
|
14
14
|
const bundleSpecs_1 = require("../clusterConfiguration/operators/bundleSpecs");
|
|
15
15
|
const operatorSpecs_1 = require("../../../common/components/operators/operatorSpecs");
|
|
16
|
+
const ClusterWizardContext_1 = require("./ClusterWizardContext");
|
|
16
17
|
require("./OperatorsBundle.css");
|
|
17
|
-
const BundleLabel = ({ bundle }) => {
|
|
18
|
+
const BundleLabel = ({ bundle, searchTerm }) => {
|
|
18
19
|
var _a;
|
|
19
|
-
const opSpecs = (0, operatorSpecs_1.useOperatorSpecs)();
|
|
20
|
+
const { byKey: opSpecs } = (0, operatorSpecs_1.useOperatorSpecs)();
|
|
20
21
|
const bundleSpec = bundleSpecs_1.bundleSpecs[bundle.id || ''];
|
|
21
22
|
return (React.createElement(React.Fragment, null,
|
|
22
23
|
React.createElement("span", null,
|
|
23
|
-
bundle.title,
|
|
24
|
+
(0, operatorSpecs_1.highlightMatch)(bundle.title || '', searchTerm),
|
|
24
25
|
" "),
|
|
25
26
|
React.createElement(common_1.PopoverIcon, { component: 'a', headerContent: React.createElement("div", null, "Requirements and dependencies"), bodyContent: React.createElement(react_core_1.Stack, { hasGutter: true },
|
|
26
27
|
(bundleSpec === null || bundleSpec === void 0 ? void 0 : bundleSpec.Description) && (React.createElement(react_core_1.StackItem, null,
|
|
@@ -35,18 +36,17 @@ const BundleLabel = ({ bundle }) => {
|
|
|
35
36
|
(bundleSpec === null || bundleSpec === void 0 ? void 0 : bundleSpec.docsLink) && (React.createElement(react_core_1.StackItem, null,
|
|
36
37
|
React.createElement(common_1.ExternalLink, { href: bundleSpec.docsLink }, "Learn more")))) })));
|
|
37
38
|
};
|
|
38
|
-
const getBundleSupportLevel = (bundle,
|
|
39
|
+
const getBundleSupportLevel = (bundle, opSpecsByKey) => {
|
|
39
40
|
let supportLevel = undefined;
|
|
40
41
|
if (bundle.operators) {
|
|
41
42
|
for (const op of bundle.operators) {
|
|
42
|
-
const operatorSpec =
|
|
43
|
+
const operatorSpec = opSpecsByKey[op];
|
|
43
44
|
if (operatorSpec) {
|
|
44
|
-
|
|
45
|
-
if (opSupportLevel === 'dev-preview') {
|
|
45
|
+
if (operatorSpec.supportLevel === 'dev-preview') {
|
|
46
46
|
supportLevel = 'dev-preview';
|
|
47
47
|
break;
|
|
48
48
|
}
|
|
49
|
-
else if (
|
|
49
|
+
else if (operatorSpec.supportLevel === 'tech-preview') {
|
|
50
50
|
supportLevel = 'tech-preview';
|
|
51
51
|
}
|
|
52
52
|
}
|
|
@@ -54,13 +54,14 @@ const getBundleSupportLevel = (bundle, opSpecs, getFeatureSupportLevel) => {
|
|
|
54
54
|
}
|
|
55
55
|
return supportLevel;
|
|
56
56
|
};
|
|
57
|
-
const BundleCard = ({ bundle, bundles, preflightRequirements, }) => {
|
|
57
|
+
const BundleCard = ({ bundle, bundles, preflightRequirements, searchTerm, }) => {
|
|
58
58
|
var _a, _b, _c;
|
|
59
59
|
const { values, setFieldValue } = (0, formik_1.useFormikContext)();
|
|
60
60
|
const isSNO = (0, react_redux_1.useSelector)(selectors_1.selectIsCurrentClusterSNO);
|
|
61
|
-
const { isFeatureSupported
|
|
62
|
-
const opSpecs = (0, operatorSpecs_1.useOperatorSpecs)();
|
|
63
|
-
const
|
|
61
|
+
const { isFeatureSupported } = (0, newFeatureSupportLevels_1.useNewFeatureSupportLevel)();
|
|
62
|
+
const { byKey: opSpecs } = (0, operatorSpecs_1.useOperatorSpecs)();
|
|
63
|
+
const { uiSettings } = (0, ClusterWizardContext_1.useClusterWizardContext)();
|
|
64
|
+
const supportLevel = getBundleSupportLevel(bundle, opSpecs);
|
|
64
65
|
const hasUnsupportedOperators = !!((_a = bundle.operators) === null || _a === void 0 ? void 0 : _a.some((op) => {
|
|
65
66
|
const operatorSpec = opSpecs[op];
|
|
66
67
|
if (!operatorSpec) {
|
|
@@ -70,13 +71,16 @@ const BundleCard = ({ bundle, bundles, preflightRequirements, }) => {
|
|
|
70
71
|
}));
|
|
71
72
|
const bundleSpec = bundleSpecs_1.bundleSpecs[bundle.id || ''];
|
|
72
73
|
const incompatibleBundle = (_b = bundleSpec === null || bundleSpec === void 0 ? void 0 : bundleSpec.incompatibleBundles) === null || _b === void 0 ? void 0 : _b.find((b) => values.selectedBundles.includes(b));
|
|
74
|
+
const isAssistedMigration = uiSettings === null || uiSettings === void 0 ? void 0 : uiSettings.isAssistedMigration;
|
|
73
75
|
const disabledReason = hasUnsupportedOperators
|
|
74
76
|
? 'Some operators in this bundle are not supported with the current configuration.'
|
|
75
77
|
: isSNO && (bundleSpec === null || bundleSpec === void 0 ? void 0 : bundleSpec.noSNO)
|
|
76
78
|
? 'This bundle is not available when deploying a Single Node OpenShift.'
|
|
77
79
|
: incompatibleBundle
|
|
78
80
|
? `Bundle cannot be installed together with ${((_c = bundles.find(({ id }) => id === incompatibleBundle)) === null || _c === void 0 ? void 0 : _c.title) || incompatibleBundle}`
|
|
79
|
-
:
|
|
81
|
+
: isAssistedMigration
|
|
82
|
+
? 'This bundle needs to be selected for clusters created from Migration Assessment'
|
|
83
|
+
: undefined;
|
|
80
84
|
const onSelect = (checked) => {
|
|
81
85
|
const newBundles = checked
|
|
82
86
|
? [...values.selectedBundles, bundle.id || '']
|
|
@@ -97,27 +101,27 @@ const BundleCard = ({ bundle, bundles, preflightRequirements, }) => {
|
|
|
97
101
|
isChecked: isSelected,
|
|
98
102
|
} },
|
|
99
103
|
React.createElement(react_core_1.CardTitle, null,
|
|
100
|
-
React.createElement(BundleLabel, { bundle: bundle }))),
|
|
104
|
+
React.createElement(BundleLabel, { bundle: bundle, searchTerm: searchTerm }))),
|
|
101
105
|
React.createElement(react_core_1.CardBody, { isFilled: true },
|
|
102
106
|
React.createElement(react_core_1.Stack, { hasGutter: true },
|
|
103
107
|
React.createElement(react_core_1.StackItem, { isFilled: true },
|
|
104
|
-
React.createElement("div", null, bundle.description)),
|
|
108
|
+
React.createElement("div", null, (0, operatorSpecs_1.highlightMatch)(bundle.description || '', searchTerm))),
|
|
105
109
|
React.createElement(react_core_1.StackItem, null,
|
|
106
110
|
React.createElement(react_core_1.Split, null,
|
|
107
111
|
React.createElement(react_core_1.SplitItem, { isFilled: true }),
|
|
108
112
|
React.createElement(react_core_1.SplitItem, null,
|
|
109
113
|
React.createElement(NewFeatureSupportLevelBadge_1.default, { featureId: bundle.id || '', supportLevel: supportLevel })))))))));
|
|
110
114
|
};
|
|
111
|
-
const OperatorsBundle = ({ bundles, preflightRequirements, }) => {
|
|
115
|
+
const OperatorsBundle = ({ bundles, preflightRequirements, searchTerm, }) => {
|
|
112
116
|
const isSingleClusterFeatureEnabled = (0, use_feature_1.useFeature)('ASSISTED_INSTALLER_SINGLE_CLUSTER_FEATURE');
|
|
113
117
|
return (React.createElement(react_core_1.Stack, { hasGutter: true },
|
|
114
118
|
React.createElement(react_core_1.StackItem, null,
|
|
115
|
-
React.createElement(react_core_1.Title, { headingLevel: "h2", size: "lg" },
|
|
119
|
+
React.createElement(react_core_1.Title, { headingLevel: "h2", size: "lg" }, bundles.length > 0 ? 'Bundles' : '')),
|
|
116
120
|
React.createElement(react_core_1.StackItem, null,
|
|
117
121
|
React.createElement(react_core_1.Gallery, { hasGutter: true, minWidths: { default: '350px' } }, (isSingleClusterFeatureEnabled
|
|
118
122
|
? bundles.filter((b) => b.id && common_1.singleClusterBundles.includes(b.id))
|
|
119
123
|
: bundles).map((bundle) => (React.createElement(react_core_1.GalleryItem, { key: bundle.id },
|
|
120
|
-
React.createElement(BundleCard, { bundle: bundle, bundles: bundles, preflightRequirements: preflightRequirements }))))))));
|
|
124
|
+
React.createElement(BundleCard, { bundle: bundle, bundles: bundles, preflightRequirements: preflightRequirements, searchTerm: searchTerm }))))))));
|
|
121
125
|
};
|
|
122
126
|
exports.default = OperatorsBundle;
|
|
123
127
|
//# sourceMappingURL=OperatorsBundle.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OperatorsBundle.js","sourceRoot":"","sources":["../../../../../lib/ocm/components/clusterWizard/OperatorsBundle.tsx"],"names":[],"mappings":";;;AAAA,qDAA+B;AAC/B,uDAegC;AAKhC,yJAEwF;AACxF,4CAAmG;AACnG,mCAA0C;AAC1C,
|
|
1
|
+
{"version":3,"file":"OperatorsBundle.js","sourceRoot":"","sources":["../../../../../lib/ocm/components/clusterWizard/OperatorsBundle.tsx"],"names":[],"mappings":";;;AAAA,qDAA+B;AAC/B,uDAegC;AAKhC,yJAEwF;AACxF,4CAAmG;AACnG,mCAA0C;AAC1C,gGAA+F;AAC/F,yDAAqD;AACrD,6CAA0C;AAC1C,4EAAyF;AACzF,mEAAgF;AAChF,+EAA4E;AAC5E,sFAI4D;AAC5D,iEAAiE;AACjE,iCAA+B;AAE/B,MAAM,WAAW,GAAG,CAAC,EAAE,MAAM,EAAE,UAAU,EAA2C,EAAE,EAAE;;IACtF,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,GAAG,IAAA,gCAAgB,GAAE,CAAC;IAC9C,MAAM,UAAU,GAAG,yBAAW,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC;IAChD,OAAO,CACL;QACE;YAAO,IAAA,8BAAc,EAAC,MAAM,CAAC,KAAK,IAAI,EAAE,EAAE,UAAU,CAAC;gBAAS;QAC9D,oBAAC,oBAAW,IACV,SAAS,EAAE,GAAG,EACd,aAAa,EAAE,iEAAwC,EACvD,WAAW,EACT,oBAAC,kBAAK,IAAC,SAAS;gBACb,CAAA,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,WAAW,KAAI,CAC1B,oBAAC,sBAAS;oBACR,oBAAC,UAAU,CAAC,WAAW,OAAG,CAChB,CACb;gBACA,CAAA,MAAA,MAAM,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AAO,EAAE,OAAO,EAAE,IAC/C,CAAC,6BAA6B;gBAC7B,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,IAAI,6BAAoB,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;gBACpE,CAAC,CAAC,OAAO,CACV,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAChB,oBAAC,wBAAW,IAAC,GAAG,EAAE,MAAM,CAAC,EAAE;gBACzB,oBAAC,UAAU,IACT,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,OAAO,EAChB,qBAAqB,EAAE,qBAAqB,EAC5C,UAAU,EAAE,UAAU,GACtB,CACU,CACf,CAAC,CACM,CACA,CACN,CACT,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,eAAe,CAAC"}
|
|
@@ -9,7 +9,7 @@ const services_1 = require("../../services");
|
|
|
9
9
|
const use_feature_1 = require("../../hooks/use-feature");
|
|
10
10
|
const OperatorCheckbox_1 = tslib_1.__importDefault(require("../clusterConfiguration/operators/OperatorCheckbox"));
|
|
11
11
|
const operatorSpecs_1 = require("../../../common/components/operators/operatorSpecs");
|
|
12
|
-
const OperatorsSelect = ({ cluster, bundles, preflightRequirements, }) => {
|
|
12
|
+
const OperatorsSelect = ({ cluster, bundles, preflightRequirements, searchTerm, }) => {
|
|
13
13
|
const [isLoading, setIsLoading] = (0, common_1.useStateSafely)(true);
|
|
14
14
|
const { addAlert } = (0, common_1.useAlerts)();
|
|
15
15
|
const [isExpanded, setIsExpanded] = React.useState(false);
|
|
@@ -31,33 +31,50 @@ const OperatorsSelect = ({ cluster, bundles, preflightRequirements, }) => {
|
|
|
31
31
|
});
|
|
32
32
|
void fetchSupportedOperators();
|
|
33
33
|
}, [addAlert, setSupportedOperators, setIsLoading]);
|
|
34
|
-
const opSpecs = (0, operatorSpecs_1.useOperatorSpecs)();
|
|
34
|
+
const { byCategory, byKey: opSpecs } = (0, operatorSpecs_1.useOperatorSpecs)();
|
|
35
35
|
const operators = React.useMemo(() => {
|
|
36
|
-
return supportedOperators
|
|
37
|
-
.sort((a, b) => {
|
|
38
|
-
var _a, _b;
|
|
39
|
-
const aTitle = ((_a = opSpecs[a]) === null || _a === void 0 ? void 0 : _a.title) || a;
|
|
40
|
-
const bTitle = ((_b = opSpecs[b]) === null || _b === void 0 ? void 0 : _b.title) || b;
|
|
41
|
-
return aTitle.localeCompare(bTitle);
|
|
42
|
-
})
|
|
43
|
-
.filter((op) => {
|
|
36
|
+
return supportedOperators.filter((op) => {
|
|
44
37
|
if (!isSingleClusterFeatureEnabled) {
|
|
45
38
|
return true;
|
|
46
39
|
}
|
|
47
40
|
return common_1.singleClusterOperators.includes(op);
|
|
48
41
|
});
|
|
49
|
-
}, [isSingleClusterFeatureEnabled, supportedOperators
|
|
42
|
+
}, [isSingleClusterFeatureEnabled, supportedOperators]);
|
|
43
|
+
const selectedOperators = values.selectedOperators.filter((opKey) => operators.includes(opKey) && !!opSpecs[opKey]);
|
|
50
44
|
if (isLoading) {
|
|
51
45
|
return React.createElement(common_1.LoadingState, null);
|
|
52
46
|
}
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
47
|
+
let foundAtLeastOneOperator = false;
|
|
48
|
+
return (React.createElement(React.Fragment, null,
|
|
49
|
+
React.createElement(react_core_1.ExpandableSection, { toggleText: `Single Operators (${operators.length} | ${selectedOperators.length} selected)`, onToggle: () => setIsExpanded(!isExpanded), isExpanded: isExpanded, "data-testid": "single-operators-section" },
|
|
50
|
+
React.createElement(react_core_1.Stack, { hasGutter: true, "data-testid": 'operators-form' }, Object.entries(byCategory).map(([categoryName, specs]) => {
|
|
51
|
+
let categoryOperators = specs.filter((spec) => operators.includes(spec.operatorKey));
|
|
52
|
+
// Filter by searchTerm
|
|
53
|
+
if (searchTerm === null || searchTerm === void 0 ? void 0 : searchTerm.trim()) {
|
|
54
|
+
const term = searchTerm.trim().toLowerCase();
|
|
55
|
+
categoryOperators = categoryOperators.filter((spec) => {
|
|
56
|
+
var _a, _b;
|
|
57
|
+
const op = opSpecs[spec.operatorKey];
|
|
58
|
+
const title = ((_a = op === null || op === void 0 ? void 0 : op.title) === null || _a === void 0 ? void 0 : _a.toLowerCase()) || '';
|
|
59
|
+
const description = ((_b = op === null || op === void 0 ? void 0 : op.descriptionText) === null || _b === void 0 ? void 0 : _b.toLowerCase()) || '';
|
|
60
|
+
return title.includes(term) || description.includes(term);
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
if (categoryOperators.length === 0) {
|
|
64
|
+
return null;
|
|
65
|
+
}
|
|
66
|
+
foundAtLeastOneOperator = true;
|
|
67
|
+
if (!!(searchTerm === null || searchTerm === void 0 ? void 0 : searchTerm.trim()) && !isExpanded) {
|
|
68
|
+
//if we found some results expand operators section
|
|
69
|
+
setIsExpanded(true);
|
|
70
|
+
}
|
|
71
|
+
return (React.createElement(React.Fragment, { key: categoryName },
|
|
72
|
+
React.createElement(react_core_1.StackItem, null,
|
|
73
|
+
React.createElement("strong", null, categoryName)),
|
|
74
|
+
categoryOperators.map((spec) => (React.createElement(react_core_1.StackItem, { key: spec.operatorKey },
|
|
75
|
+
React.createElement(OperatorCheckbox_1.default, Object.assign({ bundles: bundles, operatorId: spec.operatorKey, cluster: cluster, openshiftVersion: cluster.openshiftVersion, preflightRequirements: preflightRequirements, searchTerm: searchTerm }, spec)))))));
|
|
76
|
+
}))),
|
|
77
|
+
!foundAtLeastOneOperator && !!(searchTerm === null || searchTerm === void 0 ? void 0 : searchTerm.trim()) && React.createElement(react_core_1.StackItem, null, "No results found")));
|
|
61
78
|
};
|
|
62
79
|
exports.default = OperatorsSelect;
|
|
63
80
|
//# sourceMappingURL=OperatorsSelect.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OperatorsSelect.js","sourceRoot":"","sources":["../../../../../lib/ocm/components/clusterWizard/OperatorsSelect.tsx"],"names":[],"mappings":";;;AAAA,qDAA+B;AAC/B,uDAA6E;AAM7E,mCAA0C;AAC1C,4CAQyB;AACzB,6CAAkD;AAClD,yDAAqD;AACrD,kHAAkF;AAClF,sFAAsF;AAEtF,MAAM,eAAe,GAAG,CAAC,EACvB,OAAO,EACP,OAAO,EACP,qBAAqB,
|
|
1
|
+
{"version":3,"file":"OperatorsSelect.js","sourceRoot":"","sources":["../../../../../lib/ocm/components/clusterWizard/OperatorsSelect.tsx"],"names":[],"mappings":";;;AAAA,qDAA+B;AAC/B,uDAA6E;AAM7E,mCAA0C;AAC1C,4CAQyB;AACzB,6CAAkD;AAClD,yDAAqD;AACrD,kHAAkF;AAClF,sFAAsF;AAEtF,MAAM,eAAe,GAAG,CAAC,EACvB,OAAO,EACP,OAAO,EACP,qBAAqB,EACrB,UAAU,GAMX,EAAE,EAAE;IACH,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,IAAA,uBAAc,EAAC,IAAI,CAAC,CAAC;IACvD,MAAM,EAAE,QAAQ,EAAE,GAAG,IAAA,kBAAS,GAAE,CAAC;IACjC,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IAC1D,MAAM,CAAC,kBAAkB,EAAE,qBAAqB,CAAC,GAAG,IAAA,uBAAc,EAAW,EAAE,CAAC,CAAC;IACjF,MAAM,6BAA6B,GAAG,IAAA,wBAAU,EAAC,2CAA2C,CAAC,CAAC;IAC9F,MAAM,EAAE,MAAM,EAAE,GAAG,IAAA,yBAAgB,GAAmB,CAAC;IAEvD,KAAK,CAAC,SAAS,CAAC,GAAG,EAAE;QACnB,MAAM,uBAAuB,GAAG,GAAS,EAAE;YACzC,IAAI;gBACF,MAAM,gBAAgB,GAAG,MAAM,2BAAgB,CAAC,qBAAqB,EAAE,CAAC;gBACxE,qBAAqB,CAAC,gBAAgB,CA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U,uBAAV,UAAU,CAAE,IAAI,EAAE,CAAA,IAAI,CAAC,UAAU,EAAE;oBACvC,mDAAmD;oBACnD,aAAa,CAAC,IAAI,CAAC,CAAC;iBACrB;gBAED,OAAO,CACL,oBAAC,KAAK,CAAC,QAAQ,IAAC,GAAG,EAAE,YAAY;oBAC/B,oBAAC,sBAAS;wBACR,oCAAS,YAAY,CAAU,CACrB;oBACX,iBAAiB,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAC/B,oBAAC,sBAAS,IAAC,GAAG,EAAE,IAAI,CAAC,WAAW;wBAC9B,oBAAC,0BAAgB,kBACf,OAAO,EAAE,OAAO,EAChB,UAAU,EAAE,IAAI,CAAC,WAAW,EAC5B,OAAO,EAAE,OAAO,EAChB,gBAAgB,EAAE,OAAO,CAAC,gBAAgB,EAC1C,qBAAqB,EAAE,qBAAqB,EAC5C,UAAU,EAAE,UAAU,IAClB,IAAI,EACR,CACQ,CACb,CAAC,CACa,CAClB,CAAC;YACJ,CAAC,CAAC,CACI,CACU;QACnB,CAAC,uBAAuB,IAAI,CAAC,CAAC,CAAA,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,IAAI,EAAE,CAAA,IAAI,oBAAC,sBAAS,2BAA6B,CAC3F,CACJ,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,eAAe,CAAC"}
|
|
@@ -14,6 +14,7 @@ const OperatorsStep = ({ cluster }) => {
|
|
|
14
14
|
const [bundlesLoading, setBundlesLoading] = react_1.default.useState(true);
|
|
15
15
|
const [bundles, setBundles] = react_1.default.useState([]);
|
|
16
16
|
const { preflightRequirements, isLoading } = (0, hooks_1.useClusterPreflightRequirements)(cluster.id);
|
|
17
|
+
const [searchTerm, setSearchTerm] = react_1.default.useState('');
|
|
17
18
|
react_1.default.useEffect(() => {
|
|
18
19
|
const fetchBundles = () => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
19
20
|
try {
|
|
@@ -32,16 +33,25 @@ const OperatorsStep = ({ cluster }) => {
|
|
|
32
33
|
});
|
|
33
34
|
void fetchBundles();
|
|
34
35
|
}, [addAlert]);
|
|
36
|
+
const filteredBundles = bundles.filter((bundle) => {
|
|
37
|
+
var _a, _b;
|
|
38
|
+
return ((_a = bundle.title) === null || _a === void 0 ? void 0 : _a.toLowerCase().includes(searchTerm.toLowerCase())) ||
|
|
39
|
+
((_b = bundle.description) === null || _b === void 0 ? void 0 : _b.toLowerCase().includes(searchTerm.toLowerCase()));
|
|
40
|
+
});
|
|
35
41
|
if (isLoading || bundlesLoading) {
|
|
36
42
|
return react_1.default.createElement(common_1.LoadingState, null);
|
|
37
43
|
}
|
|
38
44
|
return (react_1.default.createElement(react_core_1.Stack, { hasGutter: true, "data-testid": 'operators-page' },
|
|
39
45
|
react_1.default.createElement(react_core_1.StackItem, null,
|
|
40
|
-
react_1.default.createElement(
|
|
46
|
+
react_1.default.createElement(react_core_1.Flex, { justifyContent: { default: 'justifyContentSpaceBetween' }, alignItems: { default: 'alignItemsCenter' } },
|
|
47
|
+
react_1.default.createElement(react_core_1.FlexItem, null,
|
|
48
|
+
react_1.default.createElement(common_1.ClusterWizardStepHeader, null, "Operators")),
|
|
49
|
+
react_1.default.createElement(react_core_1.FlexItem, { style: { minWidth: '300px' } },
|
|
50
|
+
react_1.default.createElement(react_core_1.SearchInput, { placeholder: 'Find bundles or operators', value: searchTerm, onChange: (_e, value) => setSearchTerm(value), onClear: () => setSearchTerm('') })))),
|
|
41
51
|
react_1.default.createElement(react_core_1.StackItem, null,
|
|
42
|
-
react_1.default.createElement(OperatorsBundle_1.default, { bundles:
|
|
52
|
+
react_1.default.createElement(OperatorsBundle_1.default, { bundles: filteredBundles, preflightRequirements: preflightRequirements, searchTerm: searchTerm })),
|
|
43
53
|
react_1.default.createElement(react_core_1.StackItem, null,
|
|
44
|
-
react_1.default.createElement(OperatorsSelect_1.default, { bundles: bundles, cluster: cluster, preflightRequirements: preflightRequirements }))));
|
|
54
|
+
react_1.default.createElement(OperatorsSelect_1.default, { bundles: bundles, cluster: cluster, preflightRequirements: preflightRequirements, searchTerm: searchTerm }))));
|
|
45
55
|
};
|
|
46
56
|
exports.OperatorsStep = OperatorsStep;
|
|
47
57
|
//# sourceMappingURL=OperatorsStep.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OperatorsStep.js","sourceRoot":"","sources":["../../../../../lib/ocm/components/clusterWizard/OperatorsStep.tsx"],"names":[],"mappings":";;;;AAAA,0DAA0B;AAC1B,
|
|
1
|
+
{"version":3,"file":"OperatorsStep.js","sourceRoot":"","sources":["../../../../../lib/ocm/components/clusterWizard/OperatorsStep.tsx"],"names":[],"mappings":";;;;AAAA,0DAA0B;AAC1B,uDAAuF;AAEvF,4CAOyB;AACzB,gFAAgD;AAChD,gFAAgD;AAChD,yFAAyD;AACzD,uCAA8D;AAEvD,MAAM,aAAa,GAAG,CAAC,EAAE,OAAO,EAAwB,EAAE,EAAE;IACjE,MAAM,EAAE,QAAQ,EAAE,GAAG,IAAA,kBAAS,GAAE,CAAC;IACjC,MAAM,CAAC,cAAc,EAAE,iBAAiB,CAAC,GAAG,eAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;IACjE,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,eAAK,CAAC,QAAQ,CAAW,EAAE,CAAC,CAAC;IAC3D,MAAM,EAAE,qBAAqB,EAAE,SAAS,EAAE,GAAG,IAAA,uCAA+B,EAAC,OAAO,CAAC,EAAE,CAAC,CAAC;IACzF,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG,eAAK,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;IACvD,eAAK,CAAC,SAAS,CAAC,GAAG,EAAE;QACnB,MAAM,YAAY,GAAG,GAAS,EAAE;YAC9B,IAAI;gBACF,MAAM,cAAc,GAAG,MAAM,uBAAa,CAAC,WAAW,EAAE,CAAC;gBACzD,UAAU,CAAC,cAAc,CAAC,CAAC;aAC5B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OAAO,EAAE,GAAG,EAAE,CAAC,aAAa,CAAC,EAAE,CAAC,GAChC,CACO,CACN,CACG;QACZ,8BAAC,sBAAS;YACR,8BAAC,yBAAe,IACd,OAAO,EAAE,eAAe,EACxB,qBAAqB,EAAE,qBAAqB,EAC5C,UAAU,EAAE,UAAU,GACtB,CACQ;QACZ,8BAAC,sBAAS;YACR,8BAAC,yBAAe,IACd,OAAO,EAAE,OAAO,EAChB,OAAO,EAAE,OAAO,EAChB,qBAAqB,EAAE,qBAAqB,EAC5C,UAAU,EAAE,UAAU,GACtB,CACQ,CACN,CACT,CAAC;AACJ,CAAC,CAAC;AAzEW,QAAA,aAAa,iBAyExB"}
|
|
@@ -13,6 +13,8 @@ exports.wizardStepNames = {
|
|
|
13
13
|
'custom-manifests': 'Custom manifests',
|
|
14
14
|
review: 'Review and create',
|
|
15
15
|
'credentials-download': 'Download credentials',
|
|
16
|
+
'disconnected-review': 'Review and download ISO',
|
|
17
|
+
'disconnected-basic': 'Basic information',
|
|
16
18
|
};
|
|
17
19
|
exports.defaultWizardSteps = [
|
|
18
20
|
'cluster-details',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../lib/ocm/components/clusterWizard/constants.ts"],"names":[],"mappings":";;;AAEa,QAAA,eAAe,GAAgD;IAC1E,iBAAiB,EAAE,iBAAiB;IACpC,SAAS,EAAE,WAAW;IACtB,gBAAgB,EAAE,gBAAgB;IAClC,qBAAqB,EAAE,+BAA+B;IACtD,uCAAuC,EAAE,6BAA6B;IACtE,+BAA+B,EAAE,8BAA8B;IAC/D,OAAO,EAAE,SAAS;IAClB,UAAU,EAAE,YAAY;IACxB,kBAAkB,EAAE,kBAAkB;IACtC,MAAM,EAAE,mBAAmB;IAC3B,sBAAsB,EAAE,sBAAsB;
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../lib/ocm/components/clusterWizard/constants.ts"],"names":[],"mappings":";;;AAEa,QAAA,eAAe,GAAgD;IAC1E,iBAAiB,EAAE,iBAAiB;IACpC,SAAS,EAAE,WAAW;IACtB,gBAAgB,EAAE,gBAAgB;IAClC,qBAAqB,EAAE,+BAA+B;IACtD,uCAAuC,EAAE,6BAA6B;IACtE,+BAA+B,EAAE,8BAA8B;IAC/D,OAAO,EAAE,SAAS;IAClB,UAAU,EAAE,YAAY;IACxB,kBAAkB,EAAE,kBAAkB;IACtC,MAAM,EAAE,mBAAmB;IAC3B,sBAAsB,EAAE,sBAAsB;IAC9C,qBAAqB,EAAE,yBAAyB;IAChD,oBAAoB,EAAE,mBAAmB;CAC1C,CAAC;AAEW,QAAA,kBAAkB,GAA6B;IAC1D,iBAAiB;IACjB,WAAW;IACX,gBAAgB;IAChB,SAAS;IACT,YAAY;IACZ,QAAQ;CACT,CAAC;AAEW,QAAA,wBAAwB,GAA6B;IAChE,uCAAuC;IACvC,+BAA+B;CAChC,CAAC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
const React = tslib_1.__importStar(require("react"));
|
|
5
|
+
const common_1 = require("../../../../common");
|
|
6
|
+
const react_core_1 = require("@patternfly/react-core");
|
|
7
|
+
const formik_1 = require("formik");
|
|
8
|
+
const OcmOpenShiftVersion_1 = tslib_1.__importDefault(require("../../clusterConfiguration/OcmOpenShiftVersion"));
|
|
9
|
+
const ClusterWizardContext_1 = require("../ClusterWizardContext");
|
|
10
|
+
const ClusterWizardFooter_1 = tslib_1.__importDefault(require("../ClusterWizardFooter"));
|
|
11
|
+
const ClusterWizardNavigation_1 = tslib_1.__importDefault(require("../ClusterWizardNavigation"));
|
|
12
|
+
const WithErrorBoundary_1 = require("../../../../common/components/ErrorHandling/WithErrorBoundary");
|
|
13
|
+
const InstallDisconnectedSwitch_1 = tslib_1.__importDefault(require("./InstallDisconnectedSwitch"));
|
|
14
|
+
const BasicStep = () => {
|
|
15
|
+
const { t } = (0, common_1.useTranslation)();
|
|
16
|
+
const { moveNext } = (0, ClusterWizardContext_1.useClusterWizardContext)();
|
|
17
|
+
return (React.createElement(formik_1.Formik, { initialValues: {}, onSubmit: () => {
|
|
18
|
+
// nothing to do
|
|
19
|
+
} },
|
|
20
|
+
React.createElement(common_1.ClusterWizardStep, { navigation: React.createElement(ClusterWizardNavigation_1.default, null), footer: React.createElement(ClusterWizardFooter_1.default, { onNext: moveNext }) },
|
|
21
|
+
React.createElement(WithErrorBoundary_1.WithErrorBoundary, { title: "Failed to load Basic step" },
|
|
22
|
+
React.createElement(react_core_1.Grid, { hasGutter: true },
|
|
23
|
+
React.createElement(react_core_1.GridItem, null,
|
|
24
|
+
React.createElement(react_core_1.Split, null,
|
|
25
|
+
React.createElement(react_core_1.SplitItem, null,
|
|
26
|
+
React.createElement(react_core_1.TextContent, null,
|
|
27
|
+
React.createElement(react_core_1.Text, { component: react_core_1.TextVariants.h2 }, "Basic information"))),
|
|
28
|
+
React.createElement(react_core_1.SplitItem, null,
|
|
29
|
+
React.createElement(common_1.DeveloperPreview, null)))),
|
|
30
|
+
React.createElement(react_core_1.GridItem, null,
|
|
31
|
+
React.createElement(InstallDisconnectedSwitch_1.default, null)),
|
|
32
|
+
React.createElement(react_core_1.GridItem, null,
|
|
33
|
+
React.createElement(react_core_1.Form, { id: "wizard-cluster-basic-info__form" },
|
|
34
|
+
React.createElement(OcmOpenShiftVersion_1.default, { openshiftVersion: "4.19", withPreviewText: true, withMultiText: true },
|
|
35
|
+
React.createElement(common_1.ExternalLink, { href: `${window.location.origin}/${common_1.OCP_RELEASES_PAGE}` },
|
|
36
|
+
React.createElement("span", { "data-ouia-id": "openshift-releases-link" }, t('ai:Learn more about OpenShift releases')))),
|
|
37
|
+
React.createElement(common_1.StaticTextField, { name: "cpuArchitecture", label: "CPU architecture", isRequired: true }, "x86_64"))))))));
|
|
38
|
+
};
|
|
39
|
+
exports.default = BasicStep;
|
|
40
|
+
//# sourceMappingURL=BasicStep.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BasicStep.js","sourceRoot":"","sources":["../../../../../../lib/ocm/components/clusterWizard/disconnected/BasicStep.tsx"],"names":[],"mappings":";;;AAAA,qDAA+B;AAC/B,+CAO4B;AAC5B,uDASgC;AAChC,mCAAgC;AAChC,iHAAiF;AACjF,kEAAkE;AAClE,yFAAyD;AACzD,iGAAiE;AACjE,qGAAkG;AAClG,oGAAoE;AAEpE,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,MAAM,EAAE,CAAC,EAAE,GAAG,IAAA,uBAAc,GAAE,CAAC;IAC/B,MAAM,EAAE,QAAQ,EAAE,GAAG,IAAA,8CAAuB,GAAE,CAAC;IAE/C,OAAO,CACL,oBAAC,eAAM,IACL,aAAa,EAAE,EAAE,EACjB,QAAQ,EAAE,GAAG,EAAE;YACb,gBAAgB;QAClB,CAAC;QAED,oBAAC,0BAAiB,IAChB,UAAU,EAAE,oBAAC,iCAAuB,OAAG,EACvC,MAAM,EAAE,oBAAC,6BAAmB,IAAC,MAAM,EAAE,QAAQ,GAAI;YAEjD,oBAAC,qCAAiB,IAAC,KAAK,EAAC,2BAA2B;gBAClD,oBAAC,iBAAI,IAAC,SAAS;oBACb,oBAAC,qBAAQ;wBACP,oBAAC,kBAAK;4BACJ,oBAAC,sBAAS;gCACR,oBAAC,wBAAW;oCACV,oBAAC,iBAAI,IAAC,SAAS,EAAE,yBAAY,CAAC,EAAE,wBAA0B,CAC9C,CACJ;4BACZ,oBAAC,sBAAS;gCACR,oBAAC,yBAAgB,OAAG,CACV,CACN,CACC;oBACX,oBAAC,qBAAQ;wBACP,oBAAC,mCAAyB,OAAG,CACpB;oBACX,oBAAC,qBAAQ;wBACP,oBAAC,iBAAI,IAAC,EAAE,EAAC,iCAAiC;4BACxC,oBAAC,6BAAmB,IAAC,gBAAgB,EAAC,MAAM,EAAC,eAAe,QAAC,aAAa;gCACxE,oBAAC,qBAAY,IAAC,IAAI,EAAE,GAAG,MAAM,CAAC,QAAQ,CAAC,MAAM,IAAI,0BAAiB,EAAE;oCAClE,8CAAmB,yBAAyB,IACzC,CAAC,CAAC,wCAAwC,CAAC,CACvC,CACM,CACK;4BACtB,oBAAC,wBAAe,IAAC,IAAI,EAAC,iBAAiB,EAAC,KAAK,EAAC,kBAAkB,EAAC,UAAU,mBAEzD,CACb,CACE,CACN,CACW,CACF,CACb,CACV,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
const React = tslib_1.__importStar(require("react"));
|
|
5
|
+
const react_core_1 = require("@patternfly/react-core");
|
|
6
|
+
const ClusterWizardContext_1 = require("../ClusterWizardContext");
|
|
7
|
+
const common_1 = require("../../../../common");
|
|
8
|
+
const InstallDisconnectedSwitch = ({ isDisabled }) => {
|
|
9
|
+
const { t } = (0, common_1.useTranslation)();
|
|
10
|
+
const { installDisconnected, setInstallDisconnected } = (0, ClusterWizardContext_1.useClusterWizardContext)();
|
|
11
|
+
const switchBtn = (React.createElement(react_core_1.Switch, { id: "disconnected-install-switch", label: t("ai:I'm installing on a disconnected/air-gapped/secured environment"), isChecked: installDisconnected, onChange: (_, checked) => setInstallDisconnected(checked), ouiaId: "DisconnectedInstall", isDisabled: isDisabled }));
|
|
12
|
+
return isDisabled ? (React.createElement(react_core_1.Tooltip, { content: React.createElement("div", null, t('ai:This option is not editable after the draft cluster is created')) }, switchBtn)) : (switchBtn);
|
|
13
|
+
};
|
|
14
|
+
exports.default = InstallDisconnectedSwitch;
|
|
15
|
+
//# sourceMappingURL=InstallDisconnectedSwitch.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InstallDisconnectedSwitch.js","sourceRoot":"","sources":["../../../../../../lib/ocm/components/clusterWizard/disconnected/InstallDisconnectedSwitch.tsx"],"names":[],"mappings":";;;AAAA,qDAA+B;AAC/B,uDAAyD;AACzD,kEAAkE;AAClE,+CAAoD;AAEpD,MAAM,yBAAyB,GAAG,CAAC,EAAE,UAAU,EAA4B,EAAE,EAAE;IAC7E,MAAM,EAAE,CAAC,EAAE,GAAG,IAAA,uBAAc,GAAE,CAAC;IAC/B,MAAM,EAAE,mBAAmB,EAAE,sBAAsB,EAAE,GAAG,IAAA,8CAAuB,GAAE,CAAC;IAElF,MAAM,SAAS,GAAG,CAChB,oBAAC,mBAAM,IACL,EAAE,EAAC,6BAA6B,EAChC,KAAK,EAAE,CAAC,CAAC,oEAAoE,CAAC,EAC9E,SAAS,EAAE,mBAAmB,EAC9B,QAAQ,EAAE,CAAC,CAAC,EAAE,OAAO,EAAE,EAAE,CAAC,sBAAsB,CAAC,OAAO,CAAC,EACzD,MAAM,EAAC,qBAAqB,EAC5B,UAAU,EAAE,UAAU,GACtB,CACH,CAAC;IAEF,OAAO,UAAU,CAAC,CAAC,CAAC,CAClB,oBAAC,oBAAO,IACN,OAAO,EAAE,iCAAM,CAAC,CAAC,mEAAmE,CAAC,CAAO,IAE3F,SAAS,CACF,CACX,CAAC,CAAC,CAAC,CACF,SAAS,CACV,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,yBAAyB,CAAC"}
|