@openshift-assisted/ui-lib 2.48.6 → 2.49.0
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 +4 -1
- 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 +2 -1
- package/build/@types/cim/components/ClusterDeployment/types.d.ts.map +1 -1
- package/build/@types/cim/components/ClusterDeployment/wizardTransition.d.ts +1 -1
- 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/types.d.ts +1 -1
- package/build/@types/cim/components/Hypershift/HostedClusterWizard/DetailsStep/types.d.ts.map +1 -1
- package/build/@types/cim/components/InfraEnv/InfraEnvAgentTable.d.ts.map +1 -1
- package/build/@types/cim/components/InfraEnv/InfraTableToolbar.d.ts +5 -0
- package/build/@types/cim/components/InfraEnv/InfraTableToolbar.d.ts.map +1 -1
- package/build/@types/cim/components/helpers/agentClusterInstall.d.ts +1 -0
- package/build/@types/cim/components/helpers/agentClusterInstall.d.ts.map +1 -1
- package/build/@types/cim/components/helpers/agents.d.ts +1 -1
- package/build/@types/cim/components/helpers/agents.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/components/modals/AddHostModal.d.ts.map +1 -1
- package/build/@types/cim/components/modals/CimConfiguration/CimConfigurationFormFields.d.ts +4 -0
- package/build/@types/cim/components/modals/CimConfiguration/CimConfigurationFormFields.d.ts.map +1 -0
- package/build/@types/cim/components/modals/CimConfiguration/CimConfigurationModal.d.ts +0 -1
- package/build/@types/cim/components/modals/CimConfiguration/CimConfigurationModal.d.ts.map +1 -1
- package/build/@types/cim/components/modals/CimConfiguration/persist.d.ts +4 -7
- package/build/@types/cim/components/modals/CimConfiguration/persist.d.ts.map +1 -1
- package/build/@types/cim/components/modals/CimConfiguration/types.d.ts +7 -16
- package/build/@types/cim/components/modals/CimConfiguration/types.d.ts.map +1 -1
- package/build/@types/cim/hooks/index.d.ts +3 -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/useAgentServiceConfig.d.ts +4 -0
- package/build/@types/cim/hooks/useAgentServiceConfig.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/types/index.d.ts +1 -1
- 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 +7 -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/api/assisted-service/HostsAPI.d.ts +0 -1
- package/build/@types/common/api/assisted-service/HostsAPI.d.ts.map +1 -1
- package/build/@types/common/components/clusterConfiguration/ControlPlaneNodesDropdown.d.ts.map +1 -1
- package/build/@types/common/components/clusterConfiguration/DownloadIso.d.ts +2 -1
- package/build/@types/common/components/clusterConfiguration/DownloadIso.d.ts.map +1 -1
- package/build/@types/common/components/clusterConfiguration/ExternalPlatformsDropdown.d.ts +14 -0
- package/build/@types/common/components/clusterConfiguration/ExternalPlatformsDropdown.d.ts.map +1 -0
- package/build/@types/common/components/clusterConfiguration/SecurityFields.d.ts +3 -1
- package/build/@types/common/components/clusterConfiguration/SecurityFields.d.ts.map +1 -1
- package/build/@types/common/components/clusterConfiguration/index.d.ts +1 -0
- package/build/@types/common/components/clusterConfiguration/index.d.ts.map +1 -1
- package/build/@types/common/components/clusterWizard/types.d.ts +1 -2
- package/build/@types/common/components/clusterWizard/types.d.ts.map +1 -1
- package/build/@types/common/components/hosts/status.d.ts.map +1 -1
- package/build/@types/common/components/hosts/tableUtils.d.ts +2 -0
- package/build/@types/common/components/hosts/tableUtils.d.ts.map +1 -1
- package/build/@types/common/components/hosts/utils.d.ts +3 -0
- package/build/@types/common/components/hosts/utils.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/formik/InputField.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/index.d.ts +1 -0
- package/build/@types/common/components/ui/formik/index.d.ts.map +1 -1
- package/build/@types/common/components/ui/formik/types.d.ts +2 -2
- package/build/@types/common/components/ui/formik/types.d.ts.map +1 -1
- package/build/@types/common/components/ui/formik/validationSchemas.d.ts.map +1 -1
- package/build/@types/common/config/docs_links.d.ts +1 -1
- package/build/@types/common/config/docs_links.d.ts.map +1 -1
- package/build/@types/common/utils.d.ts +1 -0
- package/build/@types/common/utils.d.ts.map +1 -1
- package/build/@types/ocm/components/Routes.d.ts +6 -4
- package/build/@types/ocm/components/Routes.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/OcmClusterDetailsFormFields.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/OcmOpenShiftVersionSelect.d.ts.map +1 -1
- 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/clusterWizard/disconnected/BasicStep.d.ts.map +1 -1
- package/build/@types/ocm/components/featureSupportLevels/ReviewClusterFeatureSupportLevels.d.ts +1 -1
- package/build/@types/ocm/components/featureSupportLevels/ReviewClusterFeatureSupportLevels.d.ts.map +1 -1
- package/build/@types/ocm/services/HostsService.d.ts +0 -1
- package/build/@types/ocm/services/HostsService.d.ts.map +1 -1
- 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 +31 -12
- 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} +8 -8
- package/build/cjs/cim/components/ClusterDeployment/clusterDetails/ClusterDeploymentDetailsStep.js.map +1 -0
- package/build/cjs/cim/components/ClusterDeployment/{ClusterDetailsFormFields.js → clusterDetails/ClusterDetailsFormFields.js} +20 -25
- 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} +20 -13
- 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} +15 -14
- package/build/cjs/cim/components/ClusterDeployment/hostSelection/ClusterDeploymentHostSelectionStep.js.map +1 -0
- package/build/cjs/cim/components/ClusterDeployment/{ClusterDeploymentHostsSelection.js → hostSelection/ClusterDeploymentHostsSelection.js} +23 -14
- 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} +7 -10
- 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 +2 -3
- 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 +7 -12
- package/build/cjs/cim/components/Hypershift/HostedClusterWizard/DetailsStep/DetailsForm.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 +5 -2
- package/build/cjs/cim/components/InfraEnv/InfraEnvAgentTable.js.map +1 -1
- package/build/cjs/cim/components/InfraEnv/InfraTableToolbar.js +25 -3
- package/build/cjs/cim/components/InfraEnv/InfraTableToolbar.js.map +1 -1
- package/build/cjs/cim/components/helpers/agentClusterInstall.js +7 -1
- package/build/cjs/cim/components/helpers/agentClusterInstall.js.map +1 -1
- package/build/cjs/cim/components/helpers/agents.js +4 -1
- package/build/cjs/cim/components/helpers/agents.js.map +1 -1
- package/build/cjs/cim/components/helpers/toAssisted.js +43 -25
- 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/AddHostModal.js +10 -5
- package/build/cjs/cim/components/modals/AddHostModal.js.map +1 -1
- package/build/cjs/cim/components/modals/CimConfiguration/CimConfigurationFormFields.js +91 -0
- package/build/cjs/cim/components/modals/CimConfiguration/CimConfigurationFormFields.js.map +1 -0
- package/build/cjs/cim/components/modals/CimConfiguration/CimConfigurationModal.js +77 -121
- package/build/cjs/cim/components/modals/CimConfiguration/CimConfigurationModal.js.map +1 -1
- package/build/cjs/cim/components/modals/CimConfiguration/persist.js +44 -95
- package/build/cjs/cim/components/modals/CimConfiguration/persist.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 +3 -3
- package/build/cjs/cim/components/modals/MassApproveAgentModal.js.map +1 -1
- package/build/cjs/cim/hooks/index.js +6 -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/useAgentServiceConfig.js +13 -0
- package/build/cjs/cim/hooks/useAgentServiceConfig.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/types/index.js +1 -1
- package/build/cjs/cim/types/index.js.map +1 -1
- package/build/cjs/cim/types/models.js +54 -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/api/assisted-service/HostsAPI.js +0 -3
- package/build/cjs/common/api/assisted-service/HostsAPI.js.map +1 -1
- package/build/cjs/common/components/clusterConfiguration/ControlPlaneNodesDropdown.js +10 -1
- package/build/cjs/common/components/clusterConfiguration/ControlPlaneNodesDropdown.js.map +1 -1
- package/build/cjs/common/components/clusterConfiguration/DownloadIso.js +2 -2
- package/build/cjs/common/components/clusterConfiguration/DownloadIso.js.map +1 -1
- package/build/cjs/common/components/clusterConfiguration/ExternalPlatformsDropdown.js +49 -0
- package/build/cjs/common/components/clusterConfiguration/ExternalPlatformsDropdown.js.map +1 -0
- package/build/cjs/common/components/clusterConfiguration/SecurityFields.js +7 -5
- package/build/cjs/common/components/clusterConfiguration/SecurityFields.js.map +1 -1
- package/build/cjs/common/components/clusterConfiguration/index.js +1 -0
- package/build/cjs/common/components/clusterConfiguration/index.js.map +1 -1
- package/build/cjs/common/components/clusterWizard/clusterDetailsValidation.js +7 -7
- package/build/cjs/common/components/clusterWizard/clusterDetailsValidation.js.map +1 -1
- package/build/cjs/common/components/hosts/status.js +1 -2
- package/build/cjs/common/components/hosts/status.js.map +1 -1
- package/build/cjs/common/components/hosts/tableUtils.js +41 -1
- package/build/cjs/common/components/hosts/tableUtils.js.map +1 -1
- package/build/cjs/common/components/hosts/utils.js +5 -1
- package/build/cjs/common/components/hosts/utils.js.map +1 -1
- package/build/cjs/common/components/ui/OpenShiftSelectWithSearch.js +20 -139
- 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/formik/InputField.js +4 -5
- package/build/cjs/common/components/ui/formik/InputField.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/index.js +3 -1
- package/build/cjs/common/components/ui/formik/index.js.map +1 -1
- package/build/cjs/common/components/ui/formik/validationSchemas.js +4 -8
- package/build/cjs/common/components/ui/formik/validationSchemas.js.map +1 -1
- package/build/cjs/common/config/docs_links.js +9 -3
- package/build/cjs/common/config/docs_links.js.map +1 -1
- package/build/cjs/common/utils.js +4 -3
- package/build/cjs/common/utils.js.map +1 -1
- package/build/cjs/ocm/components/Routes.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/OcmClusterDetailsFormFields.js +2 -1
- package/build/cjs/ocm/components/clusterConfiguration/OcmClusterDetailsFormFields.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/OcmDiscoveryImageConfigForm.js +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/OcmDiscoveryImageConfigForm.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/OpenshiftVersionHelperText.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/networkConfigurationValidation.js +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/networkConfigurationValidation.js.map +1 -1
- package/build/cjs/ocm/components/clusterWizard/disconnected/BasicStep.js +2 -1
- package/build/cjs/ocm/components/clusterWizard/disconnected/BasicStep.js.map +1 -1
- package/build/cjs/ocm/components/clusters/AssistedInstallerHeader.js +1 -1
- package/build/cjs/ocm/components/clusters/AssistedInstallerHeader.js.map +1 -1
- package/build/cjs/ocm/components/featureSupportLevels/ReviewClusterFeatureSupportLevels.js +14 -4
- package/build/cjs/ocm/components/featureSupportLevels/ReviewClusterFeatureSupportLevels.js.map +1 -1
- package/build/cjs/ocm/services/HostsService.js +0 -6
- package/build/cjs/ocm/services/HostsService.js.map +1 -1
- package/lib/cim/components/Agent/AgentStatus.tsx +1 -1
- package/lib/cim/components/Agent/tableUtils.tsx +43 -13
- 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} +9 -10
- package/lib/cim/components/ClusterDeployment/{ClusterDetailsFormFields.tsx → clusterDetails/ClusterDetailsFormFields.tsx} +22 -24
- 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 +128 -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} +23 -14
- 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} +17 -16
- package/lib/cim/components/ClusterDeployment/{ClusterDeploymentHostsSelection.tsx → hostSelection/ClusterDeploymentHostsSelection.tsx} +33 -17
- 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} +9 -13
- 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 +2 -0
- package/lib/cim/components/ClusterDeployment/use-networking-formik.ts +4 -4
- package/lib/cim/components/ClusterDeployment/wizardTransition.ts +2 -0
- package/lib/cim/components/Hypershift/HostedClusterWizard/DetailsStep/DetailsForm.tsx +7 -12
- package/lib/cim/components/Hypershift/HostedClusterWizard/DetailsStep/types.ts +1 -1
- package/lib/cim/components/Hypershift/modals/ManageHostsModal.tsx +2 -2
- package/lib/cim/components/InfraEnv/InfraEnvAgentTable.tsx +11 -0
- package/lib/cim/components/InfraEnv/InfraTableToolbar.tsx +77 -1
- package/lib/cim/components/helpers/agentClusterInstall.ts +4 -0
- package/lib/cim/components/helpers/agents.ts +5 -1
- package/lib/cim/components/helpers/toAssisted.ts +27 -2
- package/lib/cim/components/helpers/versions.ts +7 -3
- package/lib/cim/components/modals/AddHostModal.tsx +13 -1
- package/lib/cim/components/modals/CimConfiguration/CimConfigurationFormFields.tsx +259 -0
- package/lib/cim/components/modals/CimConfiguration/CimConfigurationModal.tsx +170 -193
- package/lib/cim/components/modals/CimConfiguration/persist.ts +62 -125
- package/lib/cim/components/modals/CimConfiguration/types.ts +7 -22
- 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 +2 -2
- package/lib/cim/hooks/index.tsx +2 -0
- package/lib/cim/hooks/types.tsx +8 -0
- package/lib/cim/hooks/useAgentServiceConfig.tsx +15 -0
- package/lib/cim/hooks/useConfigMaps.tsx +14 -0
- package/lib/cim/hooks/useK8sWatchResource.tsx +27 -0
- package/lib/cim/types/index.ts +1 -1
- package/lib/cim/types/k8s/agent-cluster-install.ts +1 -0
- package/lib/cim/types/models.tsx +56 -0
- package/lib/cim/utils.ts +12 -0
- package/lib/common/api/assisted-service/HostsAPI.ts +0 -5
- package/lib/common/components/clusterConfiguration/ControlPlaneNodesDropdown.tsx +10 -1
- package/lib/common/components/clusterConfiguration/DownloadIso.tsx +3 -1
- package/lib/common/components/clusterConfiguration/ExternalPlatformsDropdown.tsx +88 -0
- package/lib/common/components/clusterConfiguration/SecurityFields.tsx +13 -6
- package/lib/common/components/clusterConfiguration/index.ts +1 -0
- package/lib/common/components/clusterWizard/clusterDetailsValidation.ts +7 -7
- package/lib/common/components/clusterWizard/types.ts +1 -2
- package/lib/common/components/hosts/status.tsx +1 -2
- package/lib/common/components/hosts/tableUtils.tsx +48 -0
- package/lib/common/components/hosts/utils.ts +4 -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/formik/InputField.tsx +16 -12
- package/lib/common/components/ui/formik/SelectFieldWithSearch.tsx +278 -0
- package/lib/common/components/ui/formik/index.tsx +1 -0
- package/lib/common/components/ui/formik/types.ts +2 -2
- package/lib/common/components/ui/formik/validationSchemas.ts +7 -9
- package/lib/common/config/docs_links.ts +9 -6
- package/lib/common/utils.ts +1 -1
- package/lib/ocm/components/Routes.tsx +9 -7
- package/lib/ocm/components/clusterConfiguration/OcmClusterDetailsFormFields.tsx +17 -16
- package/lib/ocm/components/clusterConfiguration/OcmDiscoveryImageConfigForm.tsx +2 -2
- package/lib/ocm/components/clusterConfiguration/OcmOpenShiftVersionSelect.tsx +13 -18
- package/lib/ocm/components/clusterConfiguration/OpenshiftVersionHelperText.tsx +1 -1
- package/lib/ocm/components/clusterConfiguration/networkConfiguration/networkConfigurationValidation.ts +2 -2
- package/lib/ocm/components/clusterWizard/disconnected/BasicStep.tsx +4 -2
- package/lib/ocm/components/clusterWizard/disconnected/ReviewStep.tsx +1 -1
- package/lib/ocm/components/clusters/AssistedInstallerHeader.tsx +2 -2
- package/lib/ocm/components/featureSupportLevels/ReviewClusterFeatureSupportLevels.tsx +23 -4
- package/lib/ocm/services/HostsService.ts +0 -8
- package/package.json +5 -5
- 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/cim/components/modals/CimConfiguration/CimConfigurationForm.d.ts +0 -5
- package/build/@types/cim/components/modals/CimConfiguration/CimConfigurationForm.d.ts.map +0 -1
- package/build/@types/cim/types/resources.d.ts +0 -45
- package/build/@types/cim/types/resources.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/cim/components/modals/CimConfiguration/CimConfigurationForm.css +0 -23
- package/build/cjs/cim/components/modals/CimConfiguration/CimConfigurationForm.js +0 -85
- package/build/cjs/cim/components/modals/CimConfiguration/CimConfigurationForm.js.map +0 -1
- package/build/cjs/cim/components/modals/CimConfiguration/CimConfigurationModal.css +0 -3
- package/build/cjs/cim/types/resources.js +0 -10
- package/build/cjs/cim/types/resources.js.map +0 -1
- package/lib/cim/components/modals/CimConfiguration/CimConfigurationForm.css +0 -23
- package/lib/cim/components/modals/CimConfiguration/CimConfigurationForm.tsx +0 -290
- package/lib/cim/components/modals/CimConfiguration/CimConfigurationModal.css +0 -3
- package/lib/cim/types/resources.ts +0 -50
- /package/build/@types/cim/components/ClusterDeployment/{AdditionalNTPSourcesDialogToggle.d.ts → components/AdditionalNTPSourcesDialogToggle.d.ts} +0 -0
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ACMClusterDeploymentDetailsStep = void 0;
|
|
3
4
|
const tslib_1 = require("tslib");
|
|
4
5
|
const react_1 = tslib_1.__importDefault(require("react"));
|
|
5
6
|
const formik_1 = require("formik");
|
|
6
7
|
const react_core_1 = require("@patternfly/react-core");
|
|
7
8
|
const noop_js_1 = tslib_1.__importDefault(require("lodash-es/noop.js"));
|
|
8
|
-
const common_1 = require("
|
|
9
|
-
const ClusterDeploymentDetailsForm_1 = tslib_1.__importDefault(require("./ClusterDeploymentDetailsForm"));
|
|
9
|
+
const common_1 = require("../../../../common");
|
|
10
10
|
const ClusterDeploymentDetailsStep_1 = require("./ClusterDeploymentDetailsStep");
|
|
11
|
-
const helpers_1 = require("
|
|
11
|
+
const helpers_1 = require("../../helpers");
|
|
12
|
+
const ClusterDeploymentDetailsForm_1 = require("./ClusterDeploymentDetailsForm");
|
|
12
13
|
const DetailsFormBody = ({ onValuesChanged, clusterImages, extensionAfter, isNutanix, osImages, }) => {
|
|
13
14
|
const { values } = (0, formik_1.useFormikContext)();
|
|
14
15
|
const initRenderRef = react_1.default.useRef(true);
|
|
@@ -17,7 +18,7 @@ const DetailsFormBody = ({ onValuesChanged, clusterImages, extensionAfter, isNut
|
|
|
17
18
|
initRenderRef.current = false;
|
|
18
19
|
}, []);
|
|
19
20
|
return (react_1.default.createElement(react_core_1.Stack, { hasGutter: true },
|
|
20
|
-
react_1.default.createElement(ClusterDeploymentDetailsForm_1.
|
|
21
|
+
react_1.default.createElement(ClusterDeploymentDetailsForm_1.ClusterDeploymentDetailsForm, { clusterImages: clusterImages, extensionAfter: extensionAfter, isNutanix: isNutanix, osImages: osImages })));
|
|
21
22
|
};
|
|
22
23
|
const ACMClusterDeploymentDetailsStep = (_a) => {
|
|
23
24
|
var { clusterImages, formRef, usedClusterNames, osImages, isNutanix } = _a, rest = tslib_1.__rest(_a, ["clusterImages", "formRef", "usedClusterNames", "osImages", "isNutanix"]);
|
|
@@ -29,5 +30,5 @@ const ACMClusterDeploymentDetailsStep = (_a) => {
|
|
|
29
30
|
return (react_1.default.createElement(formik_1.Formik, { initialValues: initialValues, validate: (0, common_1.getRichTextValidation)(validationSchema), innerRef: formRef, onSubmit: noop_js_1.default },
|
|
30
31
|
react_1.default.createElement(DetailsFormBody, Object.assign({ clusterImages: clusterImages, osImages: osImages, isNutanix: isNutanix }, rest))));
|
|
31
32
|
};
|
|
32
|
-
exports.
|
|
33
|
+
exports.ACMClusterDeploymentDetailsStep = ACMClusterDeploymentDetailsStep;
|
|
33
34
|
//# sourceMappingURL=ACMClusterDeploymentDetailsStep.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ACMClusterDeploymentDetailsStep.js","sourceRoot":"","sources":["../../../../../../lib/cim/components/ClusterDeployment/clusterDetails/ACMClusterDeploymentDetailsStep.tsx"],"names":[],"mappings":";;;;AAAA,0DAA0B;AAC1B,mCAA+D;AAC/D,uDAA+C;AAC/C,wEAAqC;AACrC,+CAAiF;AAEjF,iFAAkE;AAGlE,2CAA+C;AAC/C,iFAA8E;AAU9E,MAAM,eAAe,GAAmC,CAAC,EACvD,eAAe,EACf,aAAa,EACb,cAAc,EACd,SAAS,EACT,QAAQ,GACT,EAAE,EAAE;IACH,MAAM,EAAE,MAAM,EAAE,GAAG,IAAA,yBAAgB,GAAwB,CAAC;IAC5D,MAAM,aAAa,GAAG,eAAK,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IACzC,eAAK,CAAC,SAAS,CAAC,GAAG,EAAE,CAAC,eAAe,CAAC,MAAM,EAAE,aAAa,CAAC,OAAO,CAAC,EAAE,CAAC,eAAe,EAAE,MAAM,CAAC,CAAC,CAAC;IACjG,eAAK,CAAC,SAAS,CAAC,GAAG,EAAE;QACnB,aAAa,CAAC,OAAO,GAAG,KAAK,CAAC;IAChC,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,OAAO,CACL,8BAAC,kBAAK,IAAC,SAAS;QACd,8BAAC,2DAA4B,IAC3B,aAAa,EAAE,aAAa,EAC5B,cAAc,EAAE,cAAc,EAC9B,SAAS,EAAE,SAAS,EACpB,QAAQ,EAAE,QAAQ,GAClB,CACI,CACT,CAAC;AACJ,CAAC,CAAC;AAOK,MAAM,+BAA+B,GAAmD,CAAC,EAO/F,EAAE,EAAE;QAP2F,EAC9F,aAAa,EACb,OAAO,EACP,gBAAgB,EAChB,QAAQ,EACR,SAAS,OAEV,EADI,IAAI,sBANuF,yEAO/F,CADQ;IAEP,MAAM,WAAW,GAAG,IAAA,wBAAc,EAAC,aAAa,EAAE,CAAC,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAC;IAEzE,MAAM,CAAC,aAAa,EAAE,gBAAgB,CAAC,GAAG,IAAA,+CAAgB,EAAC;QACzD,WAAW;QACX,gBAAgB;KACjB,CAAC,CAAC;IAEH,OAAO,CACL,8BAAC,eAAM,IACL,aAAa,EAAE,aAAa,EAC5B,QAAQ,EAAE,IAAA,8BAAqB,EAAC,gBAAgB,CAAC,EACjD,QAAQ,EAAE,OAAO,EACjB,QAAQ,EAAE,iBAAI;QAEd,8BAAC,eAAe,kBACd,aAAa,EAAE,aAAa,EAC5B,QAAQ,EAAE,QAAQ,EAClB,SAAS,EAAE,SAAS,IAChB,IAAI,EACR,CACK,CACV,CAAC;AACJ,CAAC,CAAC;AA9BW,QAAA,+BAA+B,mCA8B1C"}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ClusterDeploymentDetailsFormWrapper = void 0;
|
|
3
|
+
exports.ClusterDeploymentDetailsForm = exports.ClusterDeploymentDetailsFormWrapper = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const React = tslib_1.__importStar(require("react"));
|
|
6
6
|
const react_core_1 = require("@patternfly/react-core");
|
|
7
|
-
const helpers_1 = require("
|
|
8
|
-
const use_translation_wrapper_1 = require("
|
|
7
|
+
const helpers_1 = require("../../helpers");
|
|
8
|
+
const use_translation_wrapper_1 = require("../../../../common/hooks/use-translation-wrapper");
|
|
9
9
|
const ClusterDetailsFormFields_1 = require("./ClusterDetailsFormFields");
|
|
10
10
|
const formik_1 = require("formik");
|
|
11
|
-
const common_1 = require("
|
|
12
|
-
const ClusterDeploymentWizardContext_1 = require("
|
|
13
|
-
const ValidationSection_1 = require("
|
|
11
|
+
const common_1 = require("../../../../common");
|
|
12
|
+
const ClusterDeploymentWizardContext_1 = require("../ClusterDeploymentWizardContext");
|
|
13
|
+
const ValidationSection_1 = require("../components/ValidationSection");
|
|
14
14
|
const lodash_es_1 = require("lodash-es");
|
|
15
15
|
const ClusterDeploymentDetailsFormWrapper = ({ children, }) => {
|
|
16
16
|
const { activeStep, goToPrevStep, goToNextStep, close } = (0, react_core_1.useWizardContext)();
|
|
@@ -31,7 +31,7 @@ const ClusterDeploymentDetailsFormWrapper = ({ children, }) => {
|
|
|
31
31
|
children,
|
|
32
32
|
syncError && (React.createElement(react_core_1.StackItem, null,
|
|
33
33
|
React.createElement(ValidationSection_1.ValidationSection, { currentStepId: 'networking', hosts: [] },
|
|
34
|
-
React.createElement(react_core_1.Alert, { variant: react_core_1.AlertVariant.danger, title: t('ai:An error
|
|
34
|
+
React.createElement(react_core_1.Alert, { variant: react_core_1.AlertVariant.danger, title: t('ai:An error occurred'), isInline: true }, syncError))))));
|
|
35
35
|
};
|
|
36
36
|
exports.ClusterDeploymentDetailsFormWrapper = ClusterDeploymentDetailsFormWrapper;
|
|
37
37
|
const ClusterDeploymentDetailsForm = ({ agentClusterInstall, clusterDeployment, clusterImages, extensionAfter, isNutanix, osImages, }) => {
|
|
@@ -60,5 +60,5 @@ const ClusterDeploymentDetailsForm = ({ agentClusterInstall, clusterDeployment,
|
|
|
60
60
|
React.createElement(react_core_1.StackItem, null,
|
|
61
61
|
React.createElement(ClusterDetailsFormFields_1.ClusterDetailsFormFields, { versions: versions, allVersions: allVersions, isEditFlow: isEditFlow, forceOpenshiftVersion: forceOpenshiftVersion, extensionAfter: extensionAfter, isNutanix: isNutanix, cpuArchitectures: cpuArchitectures, allowHighlyAvailable: allowHighlyAvailable }))));
|
|
62
62
|
};
|
|
63
|
-
exports.
|
|
63
|
+
exports.ClusterDeploymentDetailsForm = ClusterDeploymentDetailsForm;
|
|
64
64
|
//# sourceMappingURL=ClusterDeploymentDetailsForm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ClusterDeploymentDetailsForm.js","sourceRoot":"","sources":["../../../../../../lib/cim/components/ClusterDeployment/clusterDetails/ClusterDeploymentDetailsForm.tsx"],"names":[],"mappings":";;;;AAAA,qDAA+B;AAC/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AAW,EACxB,UAAU,EAAE,UAAU,EACtB,qBAAqB,EAAE,qBAAqB,EAC5C,cAAc,EAAE,cAAc,EAC9B,SAAS,EAAE,SAAS,EACpB,gBAAgB,EAAE,gBAAgB,EAClC,oBAAoB,EAAE,oBAAoB,GAC1C,CACQ,CACX,CACJ,CAAC;AACJ,CAAC,CAAC;AAjEW,QAAA,4BAA4B,gCAiEvC"}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.useDetailsFormik = void 0;
|
|
3
|
+
exports.ClusterDeploymentDetailsStep = exports.useDetailsFormik = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const react_1 = tslib_1.__importDefault(require("react"));
|
|
6
6
|
const formik_1 = require("formik");
|
|
7
7
|
const react_core_1 = require("@patternfly/react-core");
|
|
8
|
-
const common_1 = require("
|
|
9
|
-
const helpers_1 = require("
|
|
10
|
-
const ClusterDeploymentDetailsForm_1 =
|
|
11
|
-
const helpers_2 = require("
|
|
12
|
-
const use_translation_wrapper_1 = require("
|
|
8
|
+
const common_1 = require("../../../../common");
|
|
9
|
+
const helpers_1 = require("../../helpers");
|
|
10
|
+
const ClusterDeploymentDetailsForm_1 = require("./ClusterDeploymentDetailsForm");
|
|
11
|
+
const helpers_2 = require("../helpers");
|
|
12
|
+
const use_translation_wrapper_1 = require("../../../../common/hooks/use-translation-wrapper");
|
|
13
13
|
const useDetailsFormik = ({ clusterDeployment, agentClusterInstall, agents, usedClusterNames, infraEnv, ocpVersions, }) => {
|
|
14
14
|
const { t } = (0, use_translation_wrapper_1.useTranslation)();
|
|
15
15
|
const isEdit = !!clusterDeployment || !!agentClusterInstall;
|
|
@@ -71,7 +71,7 @@ const ClusterDeploymentDetailsStep = ({ clusterImages, clusterDeployment, agentC
|
|
|
71
71
|
react_1.default.createElement(common_1.ClusterWizardStepHeader, null, "Cluster Details")),
|
|
72
72
|
react_1.default.createElement(react_core_1.GridItem, Object.assign({}, gridSpans),
|
|
73
73
|
react_1.default.createElement(ClusterDeploymentDetailsForm_1.ClusterDeploymentDetailsFormWrapper, null,
|
|
74
|
-
react_1.default.createElement(ClusterDeploymentDetailsForm_1.
|
|
74
|
+
react_1.default.createElement(ClusterDeploymentDetailsForm_1.ClusterDeploymentDetailsForm, { agentClusterInstall: agentClusterInstall, clusterDeployment: clusterDeployment, clusterImages: clusterImages, isNutanix: isNutanix }))))));
|
|
75
75
|
};
|
|
76
|
-
exports.
|
|
76
|
+
exports.ClusterDeploymentDetailsStep = ClusterDeploymentDetailsStep;
|
|
77
77
|
//# sourceMappingURL=ClusterDeploymentDetailsStep.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ClusterDeploymentDetailsStep.js","sourceRoot":"","sources":["../../../../../../lib/cim/components/ClusterDeployment/clusterDetails/ClusterDeploymentDetailsStep.tsx"],"names":[],"mappings":";;;;AAAA,0DAA0B;AAC1B,mCAAgC;AAEhC,uDAA0E;AAE1E,+CAQ4B;AAG5B,2CAA6E;AAO7E,iFAGwC;AACxC,wCAA0C;AAC1C,8FAAkF;AAW3E,MAAM,gBAAgB,GAAG,CAAC,EAC/B,iBAAiB,EACjB,mBAAmB,EACnB,MAAM,EACN,gBAAgB,EAChB,QAAQ,EACR,WAAW,GACU,EAGrB,EAAE;IACF,MAAM,EAAE,CAAC,EAAE,GAAG,IAAA,wCAAc,GAAE,CAAC;IAC/B,MAAM,MAAM,GAAG,CAAC,CAAC,iBAAiB,IAAI,CAAC,CAAC,mBAAmB,CAAC;IAE5D,MAAM,OAAO,GAAG,eAAK,CAAC,OAAO,CAC3B,GAAG,EAAE,CACH,iBAAiB,IAAI,mBAAmB;QACtC,CAAC,CAAC,IAAA,sBAAY,EAAC;YACX,iBAAiB;YACjB,mBAAmB;YACnB,MAAM;YACN,QAAQ;SACT,CAAC;QACJ,CAAC,CAAC,SAAS,EACf,CAAC,mBAAmB,EAA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,MAAM,SAAS,GAAG,IAAA,sBAAY,EAAC,aAAa,CAAC,CAAC;IAE9C,MAAM,CAAC,aAAa,EAAE,gBAAgB,CAAC,GAAG,IAAA,wBAAgB,EAAC;QACzD,iBAAiB;QACjB,WAAW;QACX,mBAAmB;QACnB,MAAM;QACN,gBAAgB;QAChB,QAAQ;KACT,CAAC,CAAC;IAEH,MAAM,YAAY,GAAG,CAAO,MAAsC,EAAE,EAAE;QACpE,IAAI;YACF,MAAM,aAAa,CAAC,MAAM,CAAC,CAAC;YAC5B,MAAM,YAAY,EAAE,CAAC;SACtB;QAAC,OAAO,KAAK,EAAE;YACd,QAAQ,CAAC;gBACP,KAAK,EAAE,CAAC,CAAC,qCAAqC,CAAC;gBAC/C,OAAO,EAAE,KAAe;aACzB,CAAC,CAAC;SACJ;IACH,CAAC,CAAA,CAAC;IAEF,OAAO,CACL,8BAAC,eAAM,IACL,aAAa,EAAE,aAAa,EAC5B,QAAQ,EAAE,IAAA,8BAAqB,EAAC,gBAAgB,CAAC,EACjD,QAAQ,EAAE,YAAY;QAEtB,8BAAC,iBAAI,IAAC,SAAS;YACb,8BAAC,qBAAQ;gBACP,8BAAC,gCAAuB,0BAA0C,CACzD;YACX,8BAAC,qBAAQ,oBAAK,SAAS;gBACrB,8BAAC,kEAAmC;oBAClC,8BAAC,2DAA4B,IAC3B,mBAAmB,EAAE,mBAAmB,EACxC,iBAAiB,EAAE,iBAAiB,EACpC,aAAa,EAAE,aAAa,EAC5B,SAAS,EAAE,SAAS,GACpB,CACkC,CAC7B,CACN,CACA,CACV,CAAC;AACJ,CAAC,CAAC;AA9DW,QAAA,4BAA4B,gCA8DvC"}
|
|
@@ -5,14 +5,14 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const React = tslib_1.__importStar(require("react"));
|
|
6
6
|
const react_core_1 = require("@patternfly/react-core");
|
|
7
7
|
const formik_1 = require("formik");
|
|
8
|
-
const common_1 = require("
|
|
9
|
-
const StaticTextField_1 = require("
|
|
10
|
-
const clusters_1 = require("
|
|
11
|
-
const formik_2 = require("
|
|
12
|
-
const use_translation_wrapper_1 = require("
|
|
13
|
-
const CpuArchitectureDropdown_1 = tslib_1.__importDefault(require("
|
|
14
|
-
const ControlPlaneNodesDropdown_1 = tslib_1.__importDefault(require("
|
|
15
|
-
const helpers_1 = require("
|
|
8
|
+
const common_1 = require("../../../../common");
|
|
9
|
+
const StaticTextField_1 = require("../../../../common/components/ui/StaticTextField");
|
|
10
|
+
const clusters_1 = require("../../../../common/components/clusters");
|
|
11
|
+
const formik_2 = require("../../../../common/components/ui/formik");
|
|
12
|
+
const use_translation_wrapper_1 = require("../../../../common/hooks/use-translation-wrapper");
|
|
13
|
+
const CpuArchitectureDropdown_1 = tslib_1.__importDefault(require("../../common/CpuArchitectureDropdown"));
|
|
14
|
+
const ControlPlaneNodesDropdown_1 = tslib_1.__importDefault(require("../../../../common/components/clusterConfiguration/ControlPlaneNodesDropdown"));
|
|
15
|
+
const helpers_1 = require("../../helpers");
|
|
16
16
|
const BaseDnsHelperText = ({ name, baseDnsDomain, }) => {
|
|
17
17
|
const { t } = (0, use_translation_wrapper_1.useTranslation)();
|
|
18
18
|
return (React.createElement(React.Fragment, null,
|
|
@@ -26,7 +26,6 @@ const BaseDnsHelperText = ({ name, baseDnsDomain, }) => {
|
|
|
26
26
|
};
|
|
27
27
|
exports.BaseDnsHelperText = BaseDnsHelperText;
|
|
28
28
|
const ClusterDetailsFormFields = ({ isEditFlow, versions, allVersions, forceOpenshiftVersion, extensionAfter, isNutanix, cpuArchitectures, allowHighlyAvailable, }) => {
|
|
29
|
-
var _a;
|
|
30
29
|
const { t } = (0, use_translation_wrapper_1.useTranslation)();
|
|
31
30
|
const nameInputRef = React.useRef();
|
|
32
31
|
const [openshiftVersionModalOpen, setOpenshiftVersionModalOpen] = React.useState(false);
|
|
@@ -35,7 +34,7 @@ const ClusterDetailsFormFields = ({ isEditFlow, versions, allVersions, forceOpen
|
|
|
35
34
|
React.useEffect(() => {
|
|
36
35
|
if (!versions.length && !values.openshiftVersion) {
|
|
37
36
|
const fallbackOpenShiftVersion = allVersions.find((version) => version.default);
|
|
38
|
-
setFieldValue('customOpenshiftSelect', fallbackOpenShiftVersion);
|
|
37
|
+
setFieldValue('customOpenshiftSelect', fallbackOpenShiftVersion === null || fallbackOpenShiftVersion === void 0 ? void 0 : fallbackOpenShiftVersion.value);
|
|
39
38
|
setFieldValue('openshiftVersion', fallbackOpenShiftVersion === null || fallbackOpenShiftVersion === void 0 ? void 0 : fallbackOpenShiftVersion.value);
|
|
40
39
|
setFieldValue('networkType', (0, helpers_1.getNetworkType)(fallbackOpenShiftVersion));
|
|
41
40
|
}
|
|
@@ -49,24 +48,19 @@ const ClusterDetailsFormFields = ({ isEditFlow, versions, allVersions, forceOpen
|
|
|
49
48
|
label: version.label,
|
|
50
49
|
value: version.value,
|
|
51
50
|
})), [versions]);
|
|
52
|
-
const
|
|
51
|
+
const additionalSelectOption = React.useMemo(() => {
|
|
53
52
|
if (values.customOpenshiftSelect &&
|
|
54
|
-
!
|
|
55
|
-
return
|
|
56
|
-
{
|
|
57
|
-
value: values.customOpenshiftSelect.value,
|
|
58
|
-
label: values.customOpenshiftSelect.label,
|
|
59
|
-
},
|
|
60
|
-
];
|
|
53
|
+
!versions.some((version) => version.value === values.customOpenshiftSelect)) {
|
|
54
|
+
return allVersions.find((option) => option.value === values.customOpenshiftSelect);
|
|
61
55
|
}
|
|
62
|
-
return
|
|
63
|
-
}, [
|
|
56
|
+
return undefined;
|
|
57
|
+
}, [allVersions, values.customOpenshiftSelect, versions]);
|
|
64
58
|
const allowTNA = React.useMemo(() => {
|
|
65
|
-
var _a
|
|
66
|
-
const current =
|
|
67
|
-
((
|
|
59
|
+
var _a;
|
|
60
|
+
const current = values.customOpenshiftSelect ||
|
|
61
|
+
((_a = versions.find((version) => version.value === values.openshiftVersion)) === null || _a === void 0 ? void 0 : _a.version);
|
|
68
62
|
return (0, common_1.isMajorMinorVersionEqualOrGreater)(current, '4.19') && values.platform === 'baremetal';
|
|
69
|
-
}, [
|
|
63
|
+
}, [values.customOpenshiftSelect, values.openshiftVersion, values.platform, versions]);
|
|
70
64
|
return (React.createElement(react_core_1.Form, { id: "wizard-cluster-details__form" },
|
|
71
65
|
isEditFlow ? (React.createElement(StaticTextField_1.StaticTextField, { name: "name", label: t('ai:Cluster name'), isRequired: true }, name)) : (React.createElement(formik_2.RichInputField, { ref: nameInputRef, label: t('ai:Cluster name'), name: "name", placeholder: t('ai:Enter cluster name'), richValidationMessages: (0, formik_2.acmClusterNameValidationMessages)(t), isRequired: true })),
|
|
72
66
|
(extensionAfter === null || extensionAfter === void 0 ? void 0 : extensionAfter['name']) && extensionAfter['name'],
|
|
@@ -75,10 +69,11 @@ const ClusterDetailsFormFields = ({ isEditFlow, versions, allVersions, forceOpen
|
|
|
75
69
|
t('ai:OpenShift'),
|
|
76
70
|
" ",
|
|
77
71
|
forceOpenshiftVersion)) : (React.createElement(React.Fragment, null,
|
|
78
|
-
React.createElement(common_1.OpenShiftVersionDropdown, { name: "openshiftVersion", items: selectOptions, versions: versions, showReleasesLink: false, showOpenshiftVersionModal: () => setOpenshiftVersionModalOpen(true),
|
|
72
|
+
React.createElement(common_1.OpenShiftVersionDropdown, { name: "openshiftVersion", items: selectOptions, versions: versions, showReleasesLink: false, showOpenshiftVersionModal: () => setOpenshiftVersionModalOpen(true), customItem: additionalSelectOption }),
|
|
79
73
|
openshiftVersionModalOpen && (React.createElement(common_1.OpenShiftVersionModal, { allVersions: allVersions, setOpenshiftVersionModalOpen: setOpenshiftVersionModalOpen })))),
|
|
80
74
|
React.createElement(ControlPlaneNodesDropdown_1.default, { isDisabled: isEditFlow, allowHighlyAvailable: allowHighlyAvailable, allowTNA: allowTNA }),
|
|
81
75
|
!isNutanix && (React.createElement(CpuArchitectureDropdown_1.default, { cpuArchitectures: cpuArchitectures, isDisabled: isEditFlow })),
|
|
76
|
+
React.createElement(common_1.ExternalPlatformsDropdown, { isDisabled: isEditFlow }),
|
|
82
77
|
(extensionAfter === null || extensionAfter === void 0 ? void 0 : extensionAfter['openshiftVersion']) && extensionAfter['openshiftVersion'],
|
|
83
78
|
!isEditFlow && React.createElement(clusters_1.PullSecret, null),
|
|
84
79
|
(extensionAfter === null || extensionAfter === void 0 ? void 0 : extensionAfter['pullSecret']) && extensionAfter['pullSecret']));
|
package/build/cjs/cim/components/ClusterDeployment/clusterDetails/ClusterDetailsFormFields.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ClusterDetailsFormFields.js","sourceRoot":"","sources":["../../../../../../lib/cim/components/ClusterDeployment/clusterDetails/ClusterDetailsFormFields.tsx"],"names":[],"mappings":";;;;AAAA,qDAA+B;AAC/B,uDAA8C;AAC9C,mCAA0C;AAE1C,+CAK4B;AAC5B,sFAAmF;AACnF,qEAAoE;AAEpE,oEAIiD;AAEjD,8FAAkF;AAClF,2GAA2E;AAC3E,qJAAqH;AACrH,2CAA+C;AAaxC,MAAM,iBAAiB,GAAwD,CAAC,EACrF,IAAI,EACJ,aAAa,GACd,EAAE,EAAE;IACH,MAAM,EAAE,CAAC,EAAE,GAAG,IAAA,wCAAc,GAAE,CAAC;IAC/B,OAAO,CACL;QACG,CAAC,CACA,uKAAuK,CACxK;QAAE,GAAG;QACN,+BAAM;QACN;YACG,IAAI,IAAI,gBAAgB;;YAAG,aAAa,IAAI,eAAe,CACrD,CACR,CACJ,CAAC;AACJ,CAAC,CAAC;AAhBW,QAAA,iBAAiB,qBAgB5B;AAEK,MAAM,wBAAwB,GAA4C,CAAC,EAChF,UAAU,EACV,QAAQ,EACR,WAAW,EACX,qBAAqB,EACrB,cAAc,EACd,SAAS,EACT,gBAAgB,EAChB,oBAAoB,GACrB,EAAE,EAAE;IACH,MAAM,EAAE,CAAC,EAAE,GAAG,IAAA,wCAAc,GAAE,CAAC;IAC/B,MAAM,YAAY,GAAG,KAAK,CAAC,MAAM,EAAoB,CAAC;IACtD,MAAM,CAAC,yBAAyB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EAAE,UAAU,EACtB,oBAAoB,EAAE,oBAAoB,EAC1C,QAAQ,EAAE,QAAQ,GAClB;QACD,CAAC,SAAS,IAAI,CACb,oBAAC,iCAAuB,IAAC,gBAAgB,EAAE,gBAAgB,EAAE,UAAU,EAAE,UAAU,GAAI,CACxF;QAED,oBAAC,kCAAyB,IAAC,UAAU,EAAE,UAAU,GAAI;QAEpD,CAAA,cAAc,aAAd,cAAc,uBAAd,cAAc,CAAG,kBAAkB,CAAC,KAAI,cAAc,CAAC,kBAAkB,CAAC;QAE1E,CAAC,UAAU,IAAI,oBAAC,qBAAU,OAAG;QAE7B,CAAA,cAAc,aAAd,cAAc,uBAAd,cAAc,CAAG,YAAY,CAAC,KAAI,cAAc,CAAC,YAAY,CAAC,CAC1D,CACR,CAAC;AACJ,CAAC,CAAC;AApIW,QAAA,wBAAwB,4BAoInC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./ClusterDeploymentDetailsStep"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./ClusterDeploymentDetailsForm"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./ACMClusterDeploymentDetailsStep"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./ClusterDetailsFormFields"), exports);
|
|
8
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../lib/cim/components/ClusterDeployment/clusterDetails/index.tsx"],"names":[],"mappings":";;;AAAA,yEAA+C;AAC/C,yEAA+C;AAC/C,4EAAkD;AAClD,qEAA2C"}
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.AdditionalNTPSourcesDialogToggle = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const react_1 = tslib_1.__importDefault(require("react"));
|
|
6
|
-
const use_translation_wrapper_1 = require("
|
|
6
|
+
const use_translation_wrapper_1 = require("../../../../common/hooks/use-translation-wrapper");
|
|
7
7
|
// TODO we should use hostValidationFailureHints instead of passing this 'action' which is actually a hint
|
|
8
8
|
const AdditionalNTPSourcesDialogToggle = () => {
|
|
9
9
|
const { t } = (0, use_translation_wrapper_1.useTranslation)();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AdditionalNTPSourcesDialogToggle.js","sourceRoot":"","sources":["../../../../../../lib/cim/components/ClusterDeployment/components/AdditionalNTPSourcesDialogToggle.tsx"],"names":[],"mappings":";;;;AAAA,0DAA0B;AAC1B,8FAAkF;AAElF,0GAA0G;AACnG,MAAM,gCAAgC,GAAa,GAAG,EAAE;IAC7D,MAAM,EAAE,CAAC,EAAE,GAAG,IAAA,wCAAc,GAAE,CAAC;IAC/B,OAAO,CACL,8DACG,CAAC,CACA,oIAAoI,CACrI,CACA,CACJ,CAAC;AACJ,CAAC,CAAC;AATW,QAAA,gCAAgC,oCAS3C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../lib/cim/components/ClusterDeployment/components/index.tsx"],"names":[],"mappings":";;;AAAA,6EAAmD"}
|
|
@@ -14,6 +14,7 @@ const wizardStepNames = (t) => ({
|
|
|
14
14
|
'hosts-selection': t('ai:Cluster hosts'),
|
|
15
15
|
'hosts-discovery': t('ai:Cluster hosts'),
|
|
16
16
|
networking: t('ai:Networking'),
|
|
17
|
+
'custom-manifests': t('ai:Custom manifests'),
|
|
17
18
|
review: t('ai:Review and create'),
|
|
18
19
|
});
|
|
19
20
|
exports.wizardStepNames = wizardStepNames;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../lib/cim/components/ClusterDeployment/constants.ts"],"names":[],"mappings":";;;AAGO,MAAM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iBAAiB,EAAE,CAAC,CAAC,kBAAkB,CAAC;IACxC,UAAU,EAAE,CAAC,CAAC,eAAe,CAAC;IAC9B,kBAAkB,EAAE,CAAC,CAAC,qBAAqB,CAAC;IAC5C,MAAM,EAAE,CAAC,CAAC,sBAAsB,CAAC;CAClC,CAAC,CAAC;AAbU,QAAA,eAAe,mBAazB;AAEH,qCAAqC;AACxB,QAAA,eAAe,GAAG,IAAI,CAAC;AACvB,QAAA,eAAe,GAAG,CAAC,CAAC"}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ClusterDeploymentCustomManifestsStep = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const react_1 = tslib_1.__importDefault(require("react"));
|
|
6
|
+
const Yup = tslib_1.__importStar(require("yup"));
|
|
7
|
+
const formik_1 = require("formik");
|
|
8
|
+
const dynamic_plugin_sdk_1 = require("@openshift-console/dynamic-plugin-sdk");
|
|
9
|
+
const react_core_1 = require("@patternfly/react-core");
|
|
10
|
+
const external_link_alt_icon_1 = tslib_1.__importDefault(require("@patternfly/react-icons/dist/js/icons/external-link-alt-icon"));
|
|
11
|
+
const common_1 = require("../../../../common");
|
|
12
|
+
const types_1 = require("../../../types");
|
|
13
|
+
const ConfigMapForm_1 = require("./ConfigMapForm");
|
|
14
|
+
const utils_1 = require("../../../utils");
|
|
15
|
+
const ClusterDeploymentCustomManifestsStep = ({ agentClusterInstall, }) => {
|
|
16
|
+
var _a, _b, _c, _d;
|
|
17
|
+
const { t } = (0, common_1.useTranslation)();
|
|
18
|
+
const initialValues = {
|
|
19
|
+
configMaps: ((_b = (_a = agentClusterInstall.spec) === null || _a === void 0 ? void 0 : _a.manifestsConfigMapRefs) === null || _b === void 0 ? void 0 : _b.map(({ name }) => ({
|
|
20
|
+
name,
|
|
21
|
+
valid: false,
|
|
22
|
+
}))) || [],
|
|
23
|
+
};
|
|
24
|
+
const validationSchema = Yup.lazy((values) => {
|
|
25
|
+
var _a;
|
|
26
|
+
return Yup.object({
|
|
27
|
+
configMaps: Yup.array()
|
|
28
|
+
.of(Yup.object().shape({
|
|
29
|
+
name: Yup.string().required(t('ai:Config map name is required')),
|
|
30
|
+
valid: Yup.boolean().isTrue(t('ai:Config map not found')),
|
|
31
|
+
manifestNames: Yup.array()
|
|
32
|
+
.of(Yup.string())
|
|
33
|
+
.test('unique-manifests', t('ai:Manifest names in each config map should be unique across all referenced config maps.'), (value) =>
|
|
34
|
+
// check if another config map has any manifests with the same names as this one
|
|
35
|
+
values.configMaps
|
|
36
|
+
.flatMap(({ manifestNames }) => manifestNames)
|
|
37
|
+
.filter((v) => value === null || value === void 0 ? void 0 : value.includes(v)).length === (value === null || value === void 0 ? void 0 : value.length)),
|
|
38
|
+
}))
|
|
39
|
+
.min(((_a = agentClusterInstall.spec) === null || _a === void 0 ? void 0 : _a.platformType) === 'External' ? 1 : 0, t('ai:At least one config map is required')),
|
|
40
|
+
});
|
|
41
|
+
});
|
|
42
|
+
const onSubmit = (values) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
43
|
+
var _e;
|
|
44
|
+
const patches = [];
|
|
45
|
+
(0, utils_1.appendPatch)(patches, '/spec/manifestsConfigMapRefs', values.configMaps.map(({ name }) => ({ name })), (_e = agentClusterInstall.spec) === null || _e === void 0 ? void 0 : _e.manifestsConfigMapRefs);
|
|
46
|
+
if (patches.length > 0) {
|
|
47
|
+
yield (0, dynamic_plugin_sdk_1.k8sPatch)({
|
|
48
|
+
model: types_1.AgentClusterInstallModel,
|
|
49
|
+
resource: agentClusterInstall,
|
|
50
|
+
data: patches,
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
return (react_1.default.createElement(react_core_1.Grid, { hasGutter: true },
|
|
55
|
+
react_1.default.createElement(react_core_1.GridItem, null,
|
|
56
|
+
react_1.default.createElement(common_1.ClusterWizardStepHeader, null, t('ai:Custom manifests'))),
|
|
57
|
+
react_1.default.createElement(react_core_1.GridItem, null,
|
|
58
|
+
react_1.default.createElement(react_core_1.Alert, { variant: "info", isInline: true, title: t('ai:Add custom manifests'), actionLinks: [
|
|
59
|
+
react_1.default.createElement(react_core_1.AlertActionLink, { key: "define-config-map", component: 'a', href: `/k8s/ns/${(_c = agentClusterInstall.metadata) === null || _c === void 0 ? void 0 : _c.namespace}/core~v1~ConfigMap`, target: "_blank", rel: "noopener noreferrer" },
|
|
60
|
+
t('ai:Define a config map'),
|
|
61
|
+
" ",
|
|
62
|
+
react_1.default.createElement(external_link_alt_icon_1.default, null)),
|
|
63
|
+
] },
|
|
64
|
+
react_1.default.createElement(react_core_1.Content, { component: react_core_1.ContentVariants.p }, t('ai:Define a config map with your custom manifests and select it in the form below.')),
|
|
65
|
+
react_1.default.createElement(react_core_1.Content, { component: react_core_1.ContentVariants.p }, t('ai:Manifest names in each config map should be unique across all referenced config maps.')))),
|
|
66
|
+
react_1.default.createElement(react_core_1.GridItem, null,
|
|
67
|
+
react_1.default.createElement(formik_1.Formik, { initialValues: initialValues, onSubmit: onSubmit, validationSchema: validationSchema },
|
|
68
|
+
react_1.default.createElement(ConfigMapForm_1.ConfigMapForm, { namespace: (_d = agentClusterInstall.metadata) === null || _d === void 0 ? void 0 : _d.namespace })))));
|
|
69
|
+
};
|
|
70
|
+
exports.ClusterDeploymentCustomManifestsStep = ClusterDeploymentCustomManifestsStep;
|
|
71
|
+
//# sourceMappingURL=ClusterDeploymentCustomManifestsStep.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ClusterDeploymentCustomManifestsStep.js","sourceRoot":"","sources":["../../../../../../lib/cim/components/ClusterDeployment/customManifests/ClusterDeploymentCustomManifestsStep.tsx"],"names":[],"mappings":";;;;AAAA,0DAA0B;AAC1B,iDAA2B;AAC3B,mCAAgC;AAChC,8EAAwE;AACxE,uDAOgC;AAChC,kIAA+F;AAC/F,+CAA6E;AAC7E,0C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,QAAQ,EACf,GAAG,EAAC,qBAAqB;wBAExB,CAAC,CAAC,wBAAwB,CAAC;;wBAAE,8BAAC,gCAAmB,OAAG,CACrC;iBACnB;gBAED,8BAAC,oBAAO,IAAC,SAAS,EAAE,4BAAe,CAAC,CAAC,IAClC,CAAC,CACA,oFAAoF,CACrF,CACO;gBACV,8BAAC,oBAAO,IAAC,SAAS,EAAE,4BAAe,CAAC,CAAC,IAClC,CAAC,CACA,0FAA0F,CAC3F,CACO,CACJ,CACC;QACX,8BAAC,qBAAQ;YACP,8BAAC,eAAM,IACL,aAAa,EAAE,aAAa,EAC5B,QAAQ,EAAE,QAAQ,EAClB,gBAAgB,EAAE,gBAAgB;gBAElC,8BAAC,6BAAa,IAAC,SAAS,EAAE,MAAA,mBAAmB,CAAC,QAAQ,0CAAE,SAAmB,GAAI,CACxE,CACA,CACN,CACR,CAAC;AACJ,CAAC,CAAC;AA7GW,QAAA,oCAAoC,wCA6G/C"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ConfigMapDetail = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const react_1 = tslib_1.__importDefault(require("react"));
|
|
6
|
+
const react_core_1 = require("@patternfly/react-core");
|
|
7
|
+
const common_1 = require("../../../../common");
|
|
8
|
+
const minus_circle_icon_1 = require("@patternfly/react-icons/dist/js/icons/minus-circle-icon");
|
|
9
|
+
const info_circle_icon_1 = tslib_1.__importDefault(require("@patternfly/react-icons/dist/js/icons/info-circle-icon"));
|
|
10
|
+
const formik_1 = require("formik");
|
|
11
|
+
const ExpandedConfigMap = ({ index, configMap, }) => {
|
|
12
|
+
var _a, _b, _c, _d;
|
|
13
|
+
const { t } = (0, common_1.useTranslation)();
|
|
14
|
+
const [, { error: isValidError }] = (0, formik_1.useField)(`configMaps.${index}.valid`);
|
|
15
|
+
const [, { error: manifestNamesError }] = (0, formik_1.useField)(`configMaps.${index}.manifestNames`);
|
|
16
|
+
return isValidError ? (react_1.default.createElement(react_core_1.GridItem, null,
|
|
17
|
+
react_1.default.createElement(react_core_1.Label, { variant: "outline", icon: react_1.default.createElement(info_circle_icon_1.default, null), color: "red" }, isValidError))) : (react_1.default.createElement(react_1.default.Fragment, null,
|
|
18
|
+
react_1.default.createElement(react_core_1.GridItem, null,
|
|
19
|
+
react_1.default.createElement(react_core_1.DescriptionList, null,
|
|
20
|
+
react_1.default.createElement(react_core_1.DescriptionListGroup, null,
|
|
21
|
+
react_1.default.createElement(react_core_1.DescriptionListTerm, null, t('ai:Name')),
|
|
22
|
+
react_1.default.createElement(react_core_1.DescriptionListDescription, null, (_a = configMap === null || configMap === void 0 ? void 0 : configMap.metadata) === null || _a === void 0 ? void 0 : _a.name)),
|
|
23
|
+
react_1.default.createElement(react_core_1.DescriptionListGroup, null,
|
|
24
|
+
react_1.default.createElement(react_core_1.DescriptionListTerm, null, t('ai:Namespace')),
|
|
25
|
+
react_1.default.createElement(react_core_1.DescriptionListDescription, null, (_b = configMap === null || configMap === void 0 ? void 0 : configMap.metadata) === null || _b === void 0 ? void 0 : _b.namespace)),
|
|
26
|
+
react_1.default.createElement(react_core_1.DescriptionListGroup, null,
|
|
27
|
+
react_1.default.createElement(react_core_1.DescriptionListTerm, null, t('ai:Data')),
|
|
28
|
+
react_1.default.createElement(react_core_1.DescriptionListDescription, null,
|
|
29
|
+
react_1.default.createElement(react_core_1.Grid, { hasGutter: true },
|
|
30
|
+
react_1.default.createElement(react_core_1.GridItem, null,
|
|
31
|
+
react_1.default.createElement(common_1.ExternalLink, { href: `/k8s/ns/${((_c = configMap === null || configMap === void 0 ? void 0 : configMap.metadata) === null || _c === void 0 ? void 0 : _c.namespace) || ''}/configmaps/${((_d = configMap === null || configMap === void 0 ? void 0 : configMap.metadata) === null || _d === void 0 ? void 0 : _d.name) || ''}/form` }, t('ai:Edit config map data'))),
|
|
32
|
+
Object.entries((configMap === null || configMap === void 0 ? void 0 : configMap.data) || {}).map(([key, val]) => (react_1.default.createElement(react_core_1.GridItem, { key: key },
|
|
33
|
+
react_1.default.createElement(react_core_1.Content, { component: react_core_1.ContentVariants.h4 }, key),
|
|
34
|
+
react_1.default.createElement(react_core_1.CodeBlock, null,
|
|
35
|
+
react_1.default.createElement(react_core_1.CodeBlockCode, null, val)))))))))),
|
|
36
|
+
manifestNamesError && (react_1.default.createElement(react_core_1.GridItem, null,
|
|
37
|
+
react_1.default.createElement(react_core_1.Alert, { title: manifestNamesError, variant: "danger", isInline: true })))));
|
|
38
|
+
};
|
|
39
|
+
const CollapsedConfigMap = ({ index, configMap, }) => {
|
|
40
|
+
const [, { error: isValidError }] = (0, formik_1.useField)(`configMaps.${index}.valid`);
|
|
41
|
+
const [, { error: manifestNamesError }] = (0, formik_1.useField)(`configMaps.${index}.manifestNames`);
|
|
42
|
+
const { t } = (0, common_1.useTranslation)();
|
|
43
|
+
return (react_1.default.createElement(react_core_1.GridItem, null, isValidError || manifestNamesError ? (react_1.default.createElement(react_core_1.Label, { variant: "outline", icon: react_1.default.createElement(info_circle_icon_1.default, null), color: "red" }, isValidError || manifestNamesError)) : (react_1.default.createElement(react_core_1.Label, { variant: "outline", icon: react_1.default.createElement(info_circle_icon_1.default, null) }, t('ai:{{count}} entry', { count: Object.entries((configMap === null || configMap === void 0 ? void 0 : configMap.data) || {}).length })))));
|
|
44
|
+
};
|
|
45
|
+
const ConfigMapDetail = ({ index, configMapName, configMap, onRemove, isLoading, }) => {
|
|
46
|
+
const [isExpanded, setIsExpanded] = react_1.default.useState(false);
|
|
47
|
+
const [showRemoveButton, setShowRemoveButton] = react_1.default.useState(false);
|
|
48
|
+
return (react_1.default.createElement(react_core_1.GridItem, null,
|
|
49
|
+
react_1.default.createElement(react_core_1.Grid, { onMouseEnter: () => setShowRemoveButton(true), onMouseLeave: () => setShowRemoveButton(false), hasGutter: true },
|
|
50
|
+
react_1.default.createElement(react_core_1.GridItem, null,
|
|
51
|
+
react_1.default.createElement(react_core_1.Flex, null,
|
|
52
|
+
react_1.default.createElement(react_core_1.FlexItem, null,
|
|
53
|
+
react_1.default.createElement(react_core_1.ExpandableSectionToggle, { isExpanded: isExpanded, onToggle: () => setIsExpanded(!isExpanded), direction: "down" }, configMapName)),
|
|
54
|
+
react_1.default.createElement(react_core_1.FlexItem, { align: { default: 'alignRight' } },
|
|
55
|
+
react_1.default.createElement(react_core_1.Button, { "aria-label": "remove config map", style: { visibility: showRemoveButton ? 'visible' : 'hidden' }, variant: "plain", onClick: onRemove },
|
|
56
|
+
react_1.default.createElement(minus_circle_icon_1.MinusCircleIcon, null))))),
|
|
57
|
+
isLoading ? (react_1.default.createElement(react_core_1.GridItem, null,
|
|
58
|
+
react_1.default.createElement(react_core_1.Bullseye, null,
|
|
59
|
+
react_1.default.createElement(react_core_1.Spinner, { size: "lg" })))) : isExpanded ? (react_1.default.createElement(ExpandedConfigMap, { configMap: configMap, index: index })) : (react_1.default.createElement(CollapsedConfigMap, { configMap: configMap, index: index })),
|
|
60
|
+
react_1.default.createElement(react_core_1.GridItem, null,
|
|
61
|
+
react_1.default.createElement(react_core_1.Divider, null)))));
|
|
62
|
+
};
|
|
63
|
+
exports.ConfigMapDetail = ConfigMapDetail;
|
|
64
|
+
//# sourceMappingURL=ConfigMapDetail.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConfigMapDetail.js","sourceRoot":"","sources":["../../../../../../lib/cim/components/ClusterDeployment/customManifests/ConfigMapDetail.tsx"],"names":[],"mappings":";;;;AAAA,0DAA0B;AAC1B,uDAoBgC;AAChC,+CAAkE;AAClE,+FAA0F;AAC1F,sHAAoF;AAEpF,mCAAkC;AAElC,MAAM,iBAAiB,GAAG,CAAC,EACzB,KAAK,EACL,SAAS,GAIV,EAAE,EAAE;;IACH,MAAM,EAAE,CAAC,EAAE,GAAG,IAAA,uBAAc,GAAE,CAAC;IAC/B,MAAM,CAAC,EAAE,EAAE,KAAK,EAAE,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f,OAAO,EAAE,QAAQ;4BAEjB,8BAAC,mCAAe,OAAG,CACZ,CACA,CACN,CACE;YAEV,SAAS,CAAC,CAAC,CAAC,CACX,8BAAC,qBAAQ;gBACP,8BAAC,qBAAQ;oBACP,8BAAC,oBAAO,IAAC,IAAI,EAAC,IAAI,GAAG,CACZ,CACF,CACZ,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,CACf,8BAAC,iBAAiB,IAAC,SAAS,EAAE,SAAS,EAAE,KAAK,EAAE,KAAK,GAAI,CAC1D,CAAC,CAAC,CAAC,CACF,8BAAC,kBAAkB,IAAC,SAAS,EAAE,SAAS,EAAE,KAAK,EAAE,KAAK,GAAI,CAC3D;YAED,8BAAC,qBAAQ;gBACP,8BAAC,oBAAO,OAAG,CACF,CACN,CACE,CACZ,CAAC;AACJ,CAAC,CAAC;AAjEW,QAAA,eAAe,mBAiE1B"}
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ConfigMapForm = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const react_1 = tslib_1.__importDefault(require("react"));
|
|
6
|
+
const fuse_js_1 = tslib_1.__importDefault(require("fuse.js"));
|
|
7
|
+
const formik_1 = require("formik");
|
|
8
|
+
const react_core_1 = require("@patternfly/react-core");
|
|
9
|
+
const common_1 = require("../../../../common");
|
|
10
|
+
const ClusterDeploymentWizardContext_1 = require("../ClusterDeploymentWizardContext");
|
|
11
|
+
const ValidationSection_1 = require("../components/ValidationSection");
|
|
12
|
+
const ConfigMapDetail_1 = require("./ConfigMapDetail");
|
|
13
|
+
const hooks_1 = require("../../../hooks");
|
|
14
|
+
const NO_RESULTS = 'no_results';
|
|
15
|
+
const ConfigMapForm = ({ namespace }) => {
|
|
16
|
+
const { t } = (0, common_1.useTranslation)();
|
|
17
|
+
const { syncError } = react_1.default.useContext(ClusterDeploymentWizardContext_1.ClusterDeploymentWizardContext);
|
|
18
|
+
const { alerts, addAlert, clearAlerts } = (0, common_1.useAlerts)();
|
|
19
|
+
const [isSubmitting, setSubmitting] = react_1.default.useState(false);
|
|
20
|
+
const { activeStep, goToPrevStep, goToNextStep, close } = (0, react_core_1.useWizardContext)();
|
|
21
|
+
const { values, errors, isValid, setFieldValue, submitForm } = (0, formik_1.useFormikContext)();
|
|
22
|
+
const [filter, setFilter] = react_1.default.useState('');
|
|
23
|
+
const [configMaps, setConfigMaps] = react_1.default.useState([]);
|
|
24
|
+
const [data, loaded, isError] = (0, hooks_1.useConfigMaps)({
|
|
25
|
+
namespace,
|
|
26
|
+
isList: true,
|
|
27
|
+
});
|
|
28
|
+
react_1.default.useEffect(() => {
|
|
29
|
+
if (data && loaded && !isError) {
|
|
30
|
+
setConfigMaps(data.map((configMap) => {
|
|
31
|
+
var _a, _b;
|
|
32
|
+
return ({
|
|
33
|
+
value: {
|
|
34
|
+
name: (_a = configMap.metadata) === null || _a === void 0 ? void 0 : _a.name,
|
|
35
|
+
valid: true,
|
|
36
|
+
manifestNames: Object.keys(configMap.data || {}),
|
|
37
|
+
},
|
|
38
|
+
children: (_b = configMap.metadata) === null || _b === void 0 ? void 0 : _b.name,
|
|
39
|
+
});
|
|
40
|
+
}));
|
|
41
|
+
}
|
|
42
|
+
}, [data, isError, loaded]);
|
|
43
|
+
react_1.default.useEffect(() => {
|
|
44
|
+
if (loaded && !isError) {
|
|
45
|
+
const newConfigMaps = values.configMaps.map((configMap) => {
|
|
46
|
+
const map = data.find((item) => { var _a; return ((_a = item.metadata) === null || _a === void 0 ? void 0 : _a.name) === configMap.name; });
|
|
47
|
+
if (map) {
|
|
48
|
+
return Object.assign(Object.assign({}, configMap), { valid: true, manifestNames: Object.keys(map.data || {}) });
|
|
49
|
+
}
|
|
50
|
+
return Object.assign(Object.assign({}, configMap), { valid: false, manifestNames: [] });
|
|
51
|
+
});
|
|
52
|
+
setFieldValue('configMaps', newConfigMaps);
|
|
53
|
+
}
|
|
54
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
55
|
+
}, [data, isError, loaded, setFieldValue]);
|
|
56
|
+
const placeholder = react_1.default.useMemo(() => {
|
|
57
|
+
if (values.configMaps.length > 0) {
|
|
58
|
+
return `${values.configMaps.length} config map${values.configMaps.length !== 1 ? 's' : ''} selected`;
|
|
59
|
+
}
|
|
60
|
+
return 'No config map selected';
|
|
61
|
+
}, [values.configMaps]);
|
|
62
|
+
const fuse = react_1.default.useMemo(() => new fuse_js_1.default(Object.values(configMaps), {
|
|
63
|
+
includeScore: true,
|
|
64
|
+
ignoreLocation: true,
|
|
65
|
+
threshold: 0.3,
|
|
66
|
+
keys: ['value.name'],
|
|
67
|
+
}), [configMaps]);
|
|
68
|
+
const selectOptions = react_1.default.useMemo(() => {
|
|
69
|
+
if (filter) {
|
|
70
|
+
const newSelectOptions = fuse
|
|
71
|
+
.search(filter)
|
|
72
|
+
.sort((a, b) => (a.score || 0) - (b.score || 0))
|
|
73
|
+
.map(({ item }) => item);
|
|
74
|
+
if (!newSelectOptions.length) {
|
|
75
|
+
return [
|
|
76
|
+
{
|
|
77
|
+
isAriaDisabled: true,
|
|
78
|
+
children: t('ai:No results found for {{filter}}', { filter }),
|
|
79
|
+
value: NO_RESULTS,
|
|
80
|
+
hasCheckbox: false,
|
|
81
|
+
},
|
|
82
|
+
];
|
|
83
|
+
}
|
|
84
|
+
return newSelectOptions;
|
|
85
|
+
}
|
|
86
|
+
return configMaps;
|
|
87
|
+
}, [filter, configMaps, fuse, t]);
|
|
88
|
+
const submittingText = react_1.default.useMemo(() => {
|
|
89
|
+
if (isSubmitting) {
|
|
90
|
+
return t('ai:Saving changes...');
|
|
91
|
+
}
|
|
92
|
+
return undefined;
|
|
93
|
+
}, [isSubmitting, t]);
|
|
94
|
+
const onNext = react_1.default.useCallback(() => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
95
|
+
try {
|
|
96
|
+
clearAlerts();
|
|
97
|
+
setSubmitting(true);
|
|
98
|
+
yield submitForm();
|
|
99
|
+
yield goToNextStep();
|
|
100
|
+
}
|
|
101
|
+
catch (error) {
|
|
102
|
+
addAlert({
|
|
103
|
+
title: t('ai:Failed to save ClusterDeployment'),
|
|
104
|
+
message: error instanceof Error ? error.message : undefined,
|
|
105
|
+
});
|
|
106
|
+
}
|
|
107
|
+
finally {
|
|
108
|
+
setSubmitting(false);
|
|
109
|
+
}
|
|
110
|
+
}), [addAlert, clearAlerts, goToNextStep, submitForm, t]);
|
|
111
|
+
const footer = react_1.default.useMemo(() => (react_1.default.createElement(react_core_1.WizardFooter, { activeStep: activeStep, onNext: onNext, nextButtonProps: { isLoading: !!submittingText }, nextButtonText: submittingText || t('ai:Next'), isNextDisabled: !isValid || !loaded, onBack: goToPrevStep, onClose: close })), [activeStep, onNext, submittingText, t, isValid, loaded, goToPrevStep, close]);
|
|
112
|
+
(0, react_core_1.useWizardFooter)(footer);
|
|
113
|
+
const errorAlert = typeof errors.configMaps === 'string' ? (react_1.default.createElement(react_core_1.GridItem, null,
|
|
114
|
+
react_1.default.createElement(react_core_1.Alert, { variant: react_core_1.AlertVariant.danger, title: errors.configMaps, isInline: true }))) : (react_1.default.createElement(react_core_1.GridItem, null,
|
|
115
|
+
react_1.default.createElement(react_core_1.Alert, { variant: react_core_1.AlertVariant.danger, title: t('ai:Some config map items are invalid'), isInline: true })));
|
|
116
|
+
return (react_1.default.createElement(react_core_1.Grid, { hasGutter: true },
|
|
117
|
+
react_1.default.createElement(react_core_1.GridItem, null,
|
|
118
|
+
react_1.default.createElement(react_core_1.Stack, { hasGutter: true },
|
|
119
|
+
react_1.default.createElement(react_core_1.StackItem, null,
|
|
120
|
+
react_1.default.createElement(common_1.SelectFieldWithSearch, { name: 'configMaps', label: t('ai:Config maps'), isMultiSelect: true, isRequired: true, isLoading: !loaded, selectOptions: selectOptions, filterValue: filter, setFilterValue: setFilter, placeholder: placeholder, helperText: t('ai:Select config maps from the list or use the type ahead to narrow down the list.') })),
|
|
121
|
+
react_1.default.createElement(react_core_1.StackItem, null,
|
|
122
|
+
react_1.default.createElement(react_core_1.Grid, { hasGutter: true },
|
|
123
|
+
react_1.default.createElement(formik_1.FieldArray, { name: "configMaps" }, ({ remove }) => values.configMaps.map((configMap, index) => (react_1.default.createElement(ConfigMapDetail_1.ConfigMapDetail, { index: index, key: configMap.name, configMapName: configMap.name, configMap: data.find((item) => { var _a; return ((_a = item.metadata) === null || _a === void 0 ? void 0 : _a.name) === configMap.name; }), onRemove: () => remove(index), isLoading: !loaded })))))))),
|
|
124
|
+
!isValid && errorAlert,
|
|
125
|
+
isError && (react_1.default.createElement(react_core_1.GridItem, null,
|
|
126
|
+
react_1.default.createElement(react_core_1.Alert, { variant: react_core_1.AlertVariant.danger, title: t('ai:An error occurred while fetching config maps'), isInline: true }))),
|
|
127
|
+
!!alerts.length && (react_1.default.createElement(react_core_1.GridItem, null,
|
|
128
|
+
react_1.default.createElement(common_1.Alerts, null))),
|
|
129
|
+
syncError && (react_1.default.createElement(react_core_1.GridItem, null,
|
|
130
|
+
react_1.default.createElement(ValidationSection_1.ValidationSection, { currentStepId: 'custom-manifests', hosts: [] },
|
|
131
|
+
react_1.default.createElement(react_core_1.Alert, { variant: react_core_1.AlertVariant.danger, title: t('ai:An error occurred'), isInline: true }, syncError))))));
|
|
132
|
+
};
|
|
133
|
+
exports.ConfigMapForm = ConfigMapForm;
|
|
134
|
+
//# sourceMappingURL=ConfigMapForm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConfigMapForm.js","sourceRoot":"","sources":["../../../../../../lib/cim/components/ClusterDeployment/customManifests/ConfigMapForm.tsx"],"names":[],"mappings":";;;;AAAA,0DAA0B;AAC1B,8DAA2B;AAC3B,mCAAsD;AACtD,uDAWgC;AAChC,+CAA8F;AAC9F,sFAAmF;AACnF,uEAAoE;AACpE,uDAAoD;AACpD,0CAA+C;AAE/C,MAAM,UAAU,GAAG,YAAY,CAAC;AAUzB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