@openshift-assisted/ui-lib 2.48.5 → 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/constants.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/constants.js +0 -3
- package/build/cjs/common/config/constants.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/constants.ts +0 -3
- 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,85 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CimConfigurationForm = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const React = tslib_1.__importStar(require("react"));
|
|
6
|
-
const react_i18next_1 = require("react-i18next");
|
|
7
|
-
const react_core_1 = require("@patternfly/react-core");
|
|
8
|
-
const external_link_alt_icon_1 = require("@patternfly/react-icons/dist/js/icons/external-link-alt-icon");
|
|
9
|
-
const exclamation_circle_icon_1 = require("@patternfly/react-icons/dist/js/icons/exclamation-circle-icon");
|
|
10
|
-
const help_icon_1 = require("@patternfly/react-icons/dist/js/icons/help-icon");
|
|
11
|
-
const use_translation_wrapper_1 = require("../../../../common/hooks/use-translation-wrapper");
|
|
12
|
-
require("./CimConfigurationForm.css");
|
|
13
|
-
const CimConfigurationForm = ({ docConfigUrl, docConfigAwsUrl, isEdit, isInProgressPeriod, dbVolSize, dbVolSizeValidation, setDbVolSize, fsVolSize, fsVolSizeValidation, setFsVolSize, imgVolSize, imgVolSizeValidation, setImgVolSize, configureLoadBalancer, configureLoadBalancerInitial, setConfigureLoadBalancer, }) => {
|
|
14
|
-
const { t } = (0, use_translation_wrapper_1.useTranslation)();
|
|
15
|
-
const getNumber = (v, min) => {
|
|
16
|
-
const p = parseFloat(v);
|
|
17
|
-
if (isNaN(p)) {
|
|
18
|
-
// Do not check for minimum here - keep it on validation
|
|
19
|
-
return min;
|
|
20
|
-
}
|
|
21
|
-
return p;
|
|
22
|
-
};
|
|
23
|
-
const awsHelp = (React.createElement(react_core_1.Popover, { bodyContent: t("ai:If you're running your hub cluster of Amazon Web Services and want to enable the CIM service, we recommend you to configure your load balancer if it is not already configured. Learn more about enabling CIM on AWS."), footerContent: React.createElement("a", { href: docConfigAwsUrl, target: "_blank", rel: "noreferrer" },
|
|
24
|
-
React.createElement(react_i18next_1.Trans, { t: t },
|
|
25
|
-
"ai:Learn more about enabling CIM on AWS ",
|
|
26
|
-
React.createElement(external_link_alt_icon_1.ExternalLinkAltIcon, null))) },
|
|
27
|
-
React.createElement("button", { type: "button", "aria-label": t('ai:More info for load balancer on Amazon web services'), "aria-describedby": "cim-config-form-aws-title", onClick: (e) => e.preventDefault(), className: "pf-v6-c-form__group-label-help" },
|
|
28
|
-
React.createElement(react_core_1.Icon, null,
|
|
29
|
-
React.createElement(help_icon_1.HelpIcon, null)))));
|
|
30
|
-
return (React.createElement(react_core_1.Form, null,
|
|
31
|
-
React.createElement(react_core_1.FormGroup, { fieldId: "cim-config-form-storage-title", label: t('ai:Storage sizes'), className: "cim-config-form-title", labelHelp: React.createElement(react_core_1.Popover, { bodyContent: t('ai:The storage sizes will be used to store different files and data for cluster creation.'), footerContent: React.createElement("a", { href: docConfigUrl, target: "_blank", rel: "noreferrer" },
|
|
32
|
-
React.createElement(react_i18next_1.Trans, { t: t },
|
|
33
|
-
"ai:Learn more about storage sizes. ",
|
|
34
|
-
React.createElement(external_link_alt_icon_1.ExternalLinkAltIcon, null))) },
|
|
35
|
-
React.createElement("button", { type: "button", "aria-label": t('ai:More info for configure storage sizes'), "aria-describedby": "cim-config-form-storage-title", onClick: (e) => e.preventDefault(), className: "pf-v6-c-form__group-label-help" },
|
|
36
|
-
React.createElement(react_core_1.Icon, null,
|
|
37
|
-
React.createElement(help_icon_1.HelpIcon, null)))) }, t('ai:If there are many clusters, use higher values for the storage fields.')),
|
|
38
|
-
React.createElement(react_core_1.Flex, { justifyContent: { default: 'justifyContentSpaceBetween' } },
|
|
39
|
-
React.createElement(react_core_1.FlexItem, null,
|
|
40
|
-
React.createElement(react_core_1.FormGroup, { label: t('ai:Database storage'), fieldId: "cim-config-form-storage-db", labelHelp: React.createElement(react_core_1.Popover, { bodyContent: t('ai:Specify how much storage is allocated for storing files such as database tables and database views for the clusters. Recommended is 10Gi or more. The value can not be updated later.') },
|
|
41
|
-
React.createElement("button", { type: "button", "aria-label": t('ai:More info for database storage'), "aria-describedby": "cim-config-form-storage-db", onClick: (e) => e.preventDefault(), className: "pf-v6-c-form__group-label-help" },
|
|
42
|
-
React.createElement(react_core_1.Icon, null,
|
|
43
|
-
React.createElement(help_icon_1.HelpIcon, null)))), isRequired: true },
|
|
44
|
-
React.createElement("span", { className: "cim-config-form-volume" },
|
|
45
|
-
React.createElement(react_core_1.TextInput, { validated: dbVolSizeValidation ? 'error' : 'default', isRequired: true, isDisabled: isEdit /* Not supported by backend */, type: "number", id: "cim-config-form-storage-db", name: "cim-config-form-storage-db", value: dbVolSize, onChange: (_event, v) => setDbVolSize(getNumber(v, 1)), min: 0 /* Do the validation elsewhere */ }),
|
|
46
|
-
' ',
|
|
47
|
-
"Gi"),
|
|
48
|
-
dbVolSizeValidation !== undefined && (React.createElement(react_core_1.FormHelperText, null,
|
|
49
|
-
React.createElement(react_core_1.HelperText, null,
|
|
50
|
-
React.createElement(react_core_1.HelperTextItem, { icon: React.createElement(exclamation_circle_icon_1.ExclamationCircleIcon, null), variant: "error" }, dbVolSizeValidation)))))),
|
|
51
|
-
React.createElement(react_core_1.FlexItem, null,
|
|
52
|
-
React.createElement(react_core_1.FormGroup, { label: t('ai:System storage'), fieldId: "cim-config-form-storage-sys", labelHelp: React.createElement(react_core_1.Popover, { bodyContent: t('ai:Specify how much storage is allocated for storing logs, manifests and "kubeconfig" files for the clusters. Recommended is 100Gi or more. The value can not be updated later.') },
|
|
53
|
-
React.createElement("button", { type: "button", "aria-label": t('ai:More info for system storage'), "aria-describedby": "cim-config-form-storage-sys", onClick: (e) => e.preventDefault(), className: "pf-v6-c-form__group-label-help" },
|
|
54
|
-
React.createElement(react_core_1.Icon, null,
|
|
55
|
-
React.createElement(help_icon_1.HelpIcon, null)))), isRequired: true },
|
|
56
|
-
React.createElement("span", { className: "cim-config-form-volume" },
|
|
57
|
-
React.createElement(react_core_1.TextInput, { validated: fsVolSizeValidation ? 'error' : 'default', isRequired: true, isDisabled: isEdit /* Not supported by backend */, type: "number", id: "cim-config-form-storage-sys", name: "cim-config-form-storage-sys", value: fsVolSize, onChange: (_event, v) => setFsVolSize(getNumber(v, 1)), min: 0 }),
|
|
58
|
-
' ',
|
|
59
|
-
"Gi"),
|
|
60
|
-
fsVolSizeValidation !== undefined && (React.createElement(react_core_1.FormHelperText, null,
|
|
61
|
-
React.createElement(react_core_1.HelperText, null,
|
|
62
|
-
React.createElement(react_core_1.HelperTextItem, { icon: React.createElement(exclamation_circle_icon_1.ExclamationCircleIcon, null), variant: "error" }, fsVolSizeValidation)))))),
|
|
63
|
-
React.createElement(react_core_1.FlexItem, null,
|
|
64
|
-
React.createElement(react_core_1.FormGroup, { label: t('ai:Image storage'), fieldId: "cim-config-form-storage-img", labelHelp: React.createElement(react_core_1.Popover, { bodyContent: t('ai:Specify how much storage to allocate for the images of the clusters. There must be 1G of image storage for each instance of Red Hat Enterprise Linux CoreOS that is running. Recommended is 50Gi or more. The value can not be updated later.') },
|
|
65
|
-
React.createElement("button", { type: "button", "aria-label": t('ai:More info for image storage'), "aria-describedby": "cim-config-form-storage-img", onClick: (e) => e.preventDefault(), className: "pf-v6-c-form__group-label-help" },
|
|
66
|
-
React.createElement(react_core_1.Icon, null,
|
|
67
|
-
React.createElement(help_icon_1.HelpIcon, null)))), isRequired: true },
|
|
68
|
-
React.createElement("span", { className: "cim-config-form-volume" },
|
|
69
|
-
React.createElement(react_core_1.TextInput, { validated: imgVolSizeValidation ? 'error' : 'default', isRequired: true, isDisabled: isEdit /* Not supported by backend */, type: "number", id: "cim-config-form-storage-img", name: "cim-config-form-storage-img", value: imgVolSize, onChange: (_event, v) => setImgVolSize(getNumber(v, 10)), min: 0 }),
|
|
70
|
-
' ',
|
|
71
|
-
"Gi"),
|
|
72
|
-
imgVolSizeValidation !== undefined && (React.createElement(react_core_1.FormHelperText, null,
|
|
73
|
-
React.createElement(react_core_1.HelperText, null,
|
|
74
|
-
React.createElement(react_core_1.HelperTextItem, { icon: React.createElement(exclamation_circle_icon_1.ExclamationCircleIcon, null), variant: "error" }, imgVolSizeValidation))))))),
|
|
75
|
-
React.createElement(react_core_1.Checkbox, { label: React.createElement("span", { className: "cim-config-form-aws-label" },
|
|
76
|
-
t('ai:Configure load balancer on Amazon Web Services for me.'),
|
|
77
|
-
"\u00A0",
|
|
78
|
-
awsHelp), id: "cim-config-form-aws", className: "cim-config-form-aws",
|
|
79
|
-
// isRequired
|
|
80
|
-
name: "aws-loadbalancer-checkbox", isChecked: configureLoadBalancer, isDisabled: isInProgressPeriod ||
|
|
81
|
-
(isEdit &&
|
|
82
|
-
configureLoadBalancerInitial) /* For edit flow, only No to Yes transition is possible */, onChange: (_event, value) => setConfigureLoadBalancer(value) })));
|
|
83
|
-
};
|
|
84
|
-
exports.CimConfigurationForm = CimConfigurationForm;
|
|
85
|
-
//# sourceMappingURL=CimConfigurationForm.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CimConfigurationForm.js","sourceRoot":"","sources":["../../../../../../lib/cim/components/modals/CimConfiguration/CimConfigurationForm.tsx"],"names":[],"mappings":"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"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.convertOCPtoCIMResourceHeader = void 0;
|
|
4
|
-
const convertOCPtoCIMResourceHeader = (res) => ({
|
|
5
|
-
apiVersion: res.apiVersion || '',
|
|
6
|
-
kind: res.kind || '',
|
|
7
|
-
metadata: res.metadata,
|
|
8
|
-
});
|
|
9
|
-
exports.convertOCPtoCIMResourceHeader = convertOCPtoCIMResourceHeader;
|
|
10
|
-
//# sourceMappingURL=resources.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"resources.js","sourceRoot":"","sources":["../../../../lib/cim/types/resources.ts"],"names":[],"mappings":";;;AA6CO,MAAM,6BAA6B,GAAG,CAAC,GAAsB,EAAgB,EAAE,CAAC,CAAC;IACtF,UAAU,EAAE,GAAG,CAAC,UAAU,IAAI,EAAE;IAChC,IAAI,EAAE,GAAG,CAAC,IAAI,IAAI,EAAE;IACpB,QAAQ,EAAE,GAAG,CAAC,QAAQ;CACvB,CAAC,CAAC;AAJU,QAAA,6BAA6B,iCAIvC"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
.cim-config-form-title .pf-v6-c-form__label-text {
|
|
2
|
-
font-size: larger;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
.cim-config-form-volume {
|
|
6
|
-
white-space: nowrap;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
.cim-config-form-aws-label {
|
|
10
|
-
white-space: nowrap;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.cim-config-form-aws {
|
|
14
|
-
margin-bottom: var(--pf-v6-global--spacer--md);
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.cim-config-form-volume input {
|
|
18
|
-
width: 10rem;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.cim-config-modal .pf-v6-c-modal-box__body {
|
|
22
|
-
overflow: hidden;
|
|
23
|
-
}
|
|
@@ -1,290 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { Trans } from 'react-i18next';
|
|
3
|
-
import {
|
|
4
|
-
Flex,
|
|
5
|
-
FlexItem,
|
|
6
|
-
Form,
|
|
7
|
-
FormGroup,
|
|
8
|
-
Popover,
|
|
9
|
-
Checkbox,
|
|
10
|
-
TextInput,
|
|
11
|
-
FormHelperText,
|
|
12
|
-
HelperText,
|
|
13
|
-
HelperTextItem,
|
|
14
|
-
Icon,
|
|
15
|
-
} from '@patternfly/react-core';
|
|
16
|
-
import { ExternalLinkAltIcon } from '@patternfly/react-icons/dist/js/icons/external-link-alt-icon';
|
|
17
|
-
import { ExclamationCircleIcon } from '@patternfly/react-icons/dist/js/icons/exclamation-circle-icon';
|
|
18
|
-
import { HelpIcon } from '@patternfly/react-icons/dist/js/icons/help-icon';
|
|
19
|
-
|
|
20
|
-
import { useTranslation } from '../../../../common/hooks/use-translation-wrapper';
|
|
21
|
-
import { CimConfigurationFormProps } from './types';
|
|
22
|
-
|
|
23
|
-
import './CimConfigurationForm.css';
|
|
24
|
-
|
|
25
|
-
export const CimConfigurationForm: React.FC<CimConfigurationFormProps> = ({
|
|
26
|
-
docConfigUrl,
|
|
27
|
-
docConfigAwsUrl,
|
|
28
|
-
isEdit,
|
|
29
|
-
isInProgressPeriod,
|
|
30
|
-
dbVolSize,
|
|
31
|
-
dbVolSizeValidation,
|
|
32
|
-
setDbVolSize,
|
|
33
|
-
fsVolSize,
|
|
34
|
-
fsVolSizeValidation,
|
|
35
|
-
setFsVolSize,
|
|
36
|
-
imgVolSize,
|
|
37
|
-
imgVolSizeValidation,
|
|
38
|
-
setImgVolSize,
|
|
39
|
-
configureLoadBalancer,
|
|
40
|
-
configureLoadBalancerInitial,
|
|
41
|
-
setConfigureLoadBalancer,
|
|
42
|
-
}) => {
|
|
43
|
-
const { t } = useTranslation();
|
|
44
|
-
|
|
45
|
-
const getNumber = (v: string, min: number): number => {
|
|
46
|
-
const p = parseFloat(v);
|
|
47
|
-
if (isNaN(p)) {
|
|
48
|
-
// Do not check for minimum here - keep it on validation
|
|
49
|
-
return min;
|
|
50
|
-
}
|
|
51
|
-
return p;
|
|
52
|
-
};
|
|
53
|
-
|
|
54
|
-
const awsHelp = (
|
|
55
|
-
<Popover
|
|
56
|
-
bodyContent={t(
|
|
57
|
-
"ai:If you're running your hub cluster of Amazon Web Services and want to enable the CIM service, we recommend you to configure your load balancer if it is not already configured. Learn more about enabling CIM on AWS.",
|
|
58
|
-
)}
|
|
59
|
-
footerContent={
|
|
60
|
-
<a href={docConfigAwsUrl} target="_blank" rel="noreferrer">
|
|
61
|
-
<Trans t={t}>
|
|
62
|
-
ai:Learn more about enabling CIM on AWS <ExternalLinkAltIcon />
|
|
63
|
-
</Trans>
|
|
64
|
-
</a>
|
|
65
|
-
}
|
|
66
|
-
>
|
|
67
|
-
<button
|
|
68
|
-
type="button"
|
|
69
|
-
aria-label={t('ai:More info for load balancer on Amazon web services')}
|
|
70
|
-
aria-describedby="cim-config-form-aws-title"
|
|
71
|
-
onClick={(e) => e.preventDefault()}
|
|
72
|
-
className="pf-v6-c-form__group-label-help"
|
|
73
|
-
>
|
|
74
|
-
<Icon>
|
|
75
|
-
<HelpIcon />
|
|
76
|
-
</Icon>
|
|
77
|
-
</button>
|
|
78
|
-
</Popover>
|
|
79
|
-
);
|
|
80
|
-
|
|
81
|
-
return (
|
|
82
|
-
<Form>
|
|
83
|
-
<FormGroup
|
|
84
|
-
fieldId="cim-config-form-storage-title"
|
|
85
|
-
label={t('ai:Storage sizes')}
|
|
86
|
-
className="cim-config-form-title"
|
|
87
|
-
labelHelp={
|
|
88
|
-
<Popover
|
|
89
|
-
bodyContent={t(
|
|
90
|
-
'ai:The storage sizes will be used to store different files and data for cluster creation.',
|
|
91
|
-
)}
|
|
92
|
-
footerContent={
|
|
93
|
-
<a href={docConfigUrl} target="_blank" rel="noreferrer">
|
|
94
|
-
<Trans t={t}>
|
|
95
|
-
ai:Learn more about storage sizes. <ExternalLinkAltIcon />
|
|
96
|
-
</Trans>
|
|
97
|
-
</a>
|
|
98
|
-
}
|
|
99
|
-
>
|
|
100
|
-
<button
|
|
101
|
-
type="button"
|
|
102
|
-
aria-label={t('ai:More info for configure storage sizes')}
|
|
103
|
-
aria-describedby="cim-config-form-storage-title"
|
|
104
|
-
onClick={(e) => e.preventDefault()}
|
|
105
|
-
className="pf-v6-c-form__group-label-help"
|
|
106
|
-
>
|
|
107
|
-
<Icon>
|
|
108
|
-
<HelpIcon />
|
|
109
|
-
</Icon>
|
|
110
|
-
</button>
|
|
111
|
-
</Popover>
|
|
112
|
-
}
|
|
113
|
-
>
|
|
114
|
-
{t('ai:If there are many clusters, use higher values for the storage fields.')}
|
|
115
|
-
</FormGroup>
|
|
116
|
-
<Flex justifyContent={{ default: 'justifyContentSpaceBetween' }}>
|
|
117
|
-
<FlexItem>
|
|
118
|
-
<FormGroup
|
|
119
|
-
label={t('ai:Database storage')}
|
|
120
|
-
fieldId="cim-config-form-storage-db"
|
|
121
|
-
labelHelp={
|
|
122
|
-
<Popover
|
|
123
|
-
bodyContent={t(
|
|
124
|
-
'ai:Specify how much storage is allocated for storing files such as database tables and database views for the clusters. Recommended is 10Gi or more. The value can not be updated later.',
|
|
125
|
-
)}
|
|
126
|
-
>
|
|
127
|
-
<button
|
|
128
|
-
type="button"
|
|
129
|
-
aria-label={t('ai:More info for database storage')}
|
|
130
|
-
aria-describedby="cim-config-form-storage-db"
|
|
131
|
-
onClick={(e) => e.preventDefault()}
|
|
132
|
-
className="pf-v6-c-form__group-label-help"
|
|
133
|
-
>
|
|
134
|
-
<Icon>
|
|
135
|
-
<HelpIcon />
|
|
136
|
-
</Icon>
|
|
137
|
-
</button>
|
|
138
|
-
</Popover>
|
|
139
|
-
}
|
|
140
|
-
isRequired
|
|
141
|
-
>
|
|
142
|
-
<span className="cim-config-form-volume">
|
|
143
|
-
<TextInput
|
|
144
|
-
validated={dbVolSizeValidation ? 'error' : 'default'}
|
|
145
|
-
isRequired
|
|
146
|
-
isDisabled={isEdit /* Not supported by backend */}
|
|
147
|
-
type="number"
|
|
148
|
-
id="cim-config-form-storage-db"
|
|
149
|
-
name="cim-config-form-storage-db"
|
|
150
|
-
value={dbVolSize}
|
|
151
|
-
onChange={(_event, v: string) => setDbVolSize(getNumber(v, 1))}
|
|
152
|
-
min={0 /* Do the validation elsewhere */}
|
|
153
|
-
/>{' '}
|
|
154
|
-
Gi
|
|
155
|
-
</span>
|
|
156
|
-
{dbVolSizeValidation !== undefined && (
|
|
157
|
-
<FormHelperText>
|
|
158
|
-
<HelperText>
|
|
159
|
-
<HelperTextItem icon={<ExclamationCircleIcon />} variant="error">
|
|
160
|
-
{dbVolSizeValidation}
|
|
161
|
-
</HelperTextItem>
|
|
162
|
-
</HelperText>
|
|
163
|
-
</FormHelperText>
|
|
164
|
-
)}
|
|
165
|
-
</FormGroup>
|
|
166
|
-
</FlexItem>
|
|
167
|
-
<FlexItem>
|
|
168
|
-
<FormGroup
|
|
169
|
-
label={t('ai:System storage')}
|
|
170
|
-
fieldId="cim-config-form-storage-sys"
|
|
171
|
-
labelHelp={
|
|
172
|
-
<Popover
|
|
173
|
-
bodyContent={t(
|
|
174
|
-
'ai:Specify how much storage is allocated for storing logs, manifests and "kubeconfig" files for the clusters. Recommended is 100Gi or more. The value can not be updated later.',
|
|
175
|
-
)}
|
|
176
|
-
>
|
|
177
|
-
<button
|
|
178
|
-
type="button"
|
|
179
|
-
aria-label={t('ai:More info for system storage')}
|
|
180
|
-
aria-describedby="cim-config-form-storage-sys"
|
|
181
|
-
onClick={(e) => e.preventDefault()}
|
|
182
|
-
className="pf-v6-c-form__group-label-help"
|
|
183
|
-
>
|
|
184
|
-
<Icon>
|
|
185
|
-
<HelpIcon />
|
|
186
|
-
</Icon>
|
|
187
|
-
</button>
|
|
188
|
-
</Popover>
|
|
189
|
-
}
|
|
190
|
-
isRequired
|
|
191
|
-
>
|
|
192
|
-
<span className="cim-config-form-volume">
|
|
193
|
-
<TextInput
|
|
194
|
-
validated={fsVolSizeValidation ? 'error' : 'default'}
|
|
195
|
-
isRequired
|
|
196
|
-
isDisabled={isEdit /* Not supported by backend */}
|
|
197
|
-
type="number"
|
|
198
|
-
id="cim-config-form-storage-sys"
|
|
199
|
-
name="cim-config-form-storage-sys"
|
|
200
|
-
value={fsVolSize}
|
|
201
|
-
onChange={(_event, v: string) => setFsVolSize(getNumber(v, 1))}
|
|
202
|
-
min={0}
|
|
203
|
-
/>{' '}
|
|
204
|
-
Gi
|
|
205
|
-
</span>
|
|
206
|
-
{fsVolSizeValidation !== undefined && (
|
|
207
|
-
<FormHelperText>
|
|
208
|
-
<HelperText>
|
|
209
|
-
<HelperTextItem icon={<ExclamationCircleIcon />} variant="error">
|
|
210
|
-
{fsVolSizeValidation}
|
|
211
|
-
</HelperTextItem>
|
|
212
|
-
</HelperText>
|
|
213
|
-
</FormHelperText>
|
|
214
|
-
)}
|
|
215
|
-
</FormGroup>
|
|
216
|
-
</FlexItem>
|
|
217
|
-
<FlexItem>
|
|
218
|
-
<FormGroup
|
|
219
|
-
label={t('ai:Image storage')}
|
|
220
|
-
fieldId="cim-config-form-storage-img"
|
|
221
|
-
labelHelp={
|
|
222
|
-
<Popover
|
|
223
|
-
bodyContent={t(
|
|
224
|
-
'ai:Specify how much storage to allocate for the images of the clusters. There must be 1G of image storage for each instance of Red Hat Enterprise Linux CoreOS that is running. Recommended is 50Gi or more. The value can not be updated later.',
|
|
225
|
-
)}
|
|
226
|
-
>
|
|
227
|
-
<button
|
|
228
|
-
type="button"
|
|
229
|
-
aria-label={t('ai:More info for image storage')}
|
|
230
|
-
aria-describedby="cim-config-form-storage-img"
|
|
231
|
-
onClick={(e) => e.preventDefault()}
|
|
232
|
-
className="pf-v6-c-form__group-label-help"
|
|
233
|
-
>
|
|
234
|
-
<Icon>
|
|
235
|
-
<HelpIcon />
|
|
236
|
-
</Icon>
|
|
237
|
-
</button>
|
|
238
|
-
</Popover>
|
|
239
|
-
}
|
|
240
|
-
isRequired
|
|
241
|
-
>
|
|
242
|
-
<span className="cim-config-form-volume">
|
|
243
|
-
<TextInput
|
|
244
|
-
validated={imgVolSizeValidation ? 'error' : 'default'}
|
|
245
|
-
isRequired
|
|
246
|
-
isDisabled={isEdit /* Not supported by backend */}
|
|
247
|
-
type="number"
|
|
248
|
-
id="cim-config-form-storage-img"
|
|
249
|
-
name="cim-config-form-storage-img"
|
|
250
|
-
value={imgVolSize}
|
|
251
|
-
onChange={(_event, v: string) => setImgVolSize(getNumber(v, 10))}
|
|
252
|
-
min={0}
|
|
253
|
-
/>{' '}
|
|
254
|
-
Gi
|
|
255
|
-
</span>
|
|
256
|
-
{imgVolSizeValidation !== undefined && (
|
|
257
|
-
<FormHelperText>
|
|
258
|
-
<HelperText>
|
|
259
|
-
<HelperTextItem icon={<ExclamationCircleIcon />} variant="error">
|
|
260
|
-
{imgVolSizeValidation}
|
|
261
|
-
</HelperTextItem>
|
|
262
|
-
</HelperText>
|
|
263
|
-
</FormHelperText>
|
|
264
|
-
)}
|
|
265
|
-
</FormGroup>
|
|
266
|
-
</FlexItem>
|
|
267
|
-
</Flex>
|
|
268
|
-
<Checkbox
|
|
269
|
-
label={
|
|
270
|
-
<span className="cim-config-form-aws-label">
|
|
271
|
-
{t('ai:Configure load balancer on Amazon Web Services for me.')}
|
|
272
|
-
|
|
273
|
-
{awsHelp}
|
|
274
|
-
</span>
|
|
275
|
-
}
|
|
276
|
-
id="cim-config-form-aws"
|
|
277
|
-
className="cim-config-form-aws"
|
|
278
|
-
// isRequired
|
|
279
|
-
name="aws-loadbalancer-checkbox"
|
|
280
|
-
isChecked={configureLoadBalancer}
|
|
281
|
-
isDisabled={
|
|
282
|
-
isInProgressPeriod ||
|
|
283
|
-
(isEdit &&
|
|
284
|
-
configureLoadBalancerInitial) /* For edit flow, only No to Yes transition is possible */
|
|
285
|
-
}
|
|
286
|
-
onChange={(_event, value) => setConfigureLoadBalancer(value)}
|
|
287
|
-
/>
|
|
288
|
-
</Form>
|
|
289
|
-
);
|
|
290
|
-
};
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { K8sResourceCommon } from '@openshift-console/dynamic-plugin-sdk';
|
|
2
|
-
|
|
3
|
-
// To conform ACM
|
|
4
|
-
type ResourceType = {
|
|
5
|
-
// status?: any;
|
|
6
|
-
apiVersion: string;
|
|
7
|
-
kind: string;
|
|
8
|
-
metadata?: {
|
|
9
|
-
name?: string;
|
|
10
|
-
namespace?: string;
|
|
11
|
-
resourceVersion?: string;
|
|
12
|
-
creationTimestamp?: string;
|
|
13
|
-
uid?: string;
|
|
14
|
-
annotations?: Record<string, string>;
|
|
15
|
-
labels?: Record<string, string>;
|
|
16
|
-
generateName?: string;
|
|
17
|
-
deletionTimestamp?: string;
|
|
18
|
-
selfLink?: string;
|
|
19
|
-
finalizers?: string[];
|
|
20
|
-
ownerReferences?: {
|
|
21
|
-
apiVersion: string;
|
|
22
|
-
blockOwnerDeletion?: boolean;
|
|
23
|
-
controller?: boolean;
|
|
24
|
-
kind: string;
|
|
25
|
-
name: string;
|
|
26
|
-
uid?: string;
|
|
27
|
-
}[];
|
|
28
|
-
// managedFields?: any[];
|
|
29
|
-
};
|
|
30
|
-
};
|
|
31
|
-
|
|
32
|
-
export type CreateResourceFuncType = (resource: ResourceType) => Promise<ResourceType>;
|
|
33
|
-
export type DeleteResourceFuncType = (resource: ResourceType) => Promise<void>;
|
|
34
|
-
export type GetResourceFuncType = (resource: ResourceType) => Promise<ResourceType>;
|
|
35
|
-
export type ListResourcesFuncType = (
|
|
36
|
-
resource: { apiVersion: string; kind: string; metadata?: { namespace?: string } },
|
|
37
|
-
labels?: string[],
|
|
38
|
-
query?: Record<string, string>,
|
|
39
|
-
) => Promise<ResourceType[]>;
|
|
40
|
-
export type ResourcePatch = { op: 'replace' | 'add'; path: string; value: unknown };
|
|
41
|
-
export type PatchResourceFuncType = (
|
|
42
|
-
resource: ResourceType,
|
|
43
|
-
patches: ResourcePatch[],
|
|
44
|
-
) => Promise<ResourceType>;
|
|
45
|
-
|
|
46
|
-
export const convertOCPtoCIMResourceHeader = (res: K8sResourceCommon): ResourceType => ({
|
|
47
|
-
apiVersion: res.apiVersion || '',
|
|
48
|
-
kind: res.kind || '',
|
|
49
|
-
metadata: res.metadata,
|
|
50
|
-
});
|