@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,17 +1,21 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
k8sCreate,
|
|
3
|
+
k8sGet,
|
|
4
|
+
k8sListItems,
|
|
5
|
+
k8sPatch,
|
|
6
|
+
K8sResourceCommon,
|
|
7
|
+
} from '@openshift-console/dynamic-plugin-sdk';
|
|
2
8
|
import { AlertVariant } from '@patternfly/react-core';
|
|
3
9
|
import { TFunction } from 'i18next';
|
|
4
10
|
import { getErrorMessage } from '../../../../common/utils';
|
|
5
11
|
|
|
6
12
|
import {
|
|
7
13
|
AgentServiceConfigK8sResource,
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
ListResourcesFuncType,
|
|
12
|
-
PatchResourceFuncType,
|
|
13
|
-
ResourcePatch,
|
|
14
|
+
AgentServiceConfigModel,
|
|
15
|
+
IngressControllerModel,
|
|
16
|
+
ProvisioningModel,
|
|
14
17
|
RouteK8sResource,
|
|
18
|
+
RouteModel,
|
|
15
19
|
} from '../../../types';
|
|
16
20
|
import { LOCAL_STORAGE_ID_LAST_UPDATE_TIMESTAMP } from './utils';
|
|
17
21
|
|
|
@@ -32,14 +36,10 @@ const ASSISTED_IMAGE_SERVICE_ROUTE_PREFIX = 'assisted-image-service-multicluster
|
|
|
32
36
|
const getAssistedImageServiceRoute = async (
|
|
33
37
|
t: TFunction,
|
|
34
38
|
setError: SetErrorFuncType,
|
|
35
|
-
listResources: ListResourcesFuncType,
|
|
36
39
|
): Promise<RouteK8sResource | undefined> => {
|
|
37
|
-
let allRoutes;
|
|
40
|
+
let allRoutes: RouteK8sResource[] = [];
|
|
38
41
|
try {
|
|
39
|
-
allRoutes =
|
|
40
|
-
kind: 'Route',
|
|
41
|
-
apiVersion: 'route.openshift.io/v1',
|
|
42
|
-
})) as RouteK8sResource[];
|
|
42
|
+
allRoutes = await k8sListItems({ model: RouteModel, queryParams: {} });
|
|
43
43
|
} catch (e) {
|
|
44
44
|
// console.error('Failed to read all routes: ', allRoutes);
|
|
45
45
|
setError({
|
|
@@ -50,7 +50,7 @@ const getAssistedImageServiceRoute = async (
|
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
const assistedImageServiceRoute = allRoutes?.find(
|
|
53
|
-
(r
|
|
53
|
+
(r) => r.metadata?.name === 'assisted-image-service',
|
|
54
54
|
);
|
|
55
55
|
|
|
56
56
|
if (!assistedImageServiceRoute?.spec?.host) {
|
|
@@ -92,7 +92,6 @@ const getClusterDomain = (
|
|
|
92
92
|
const patchAssistedImageServiceRoute = async (
|
|
93
93
|
t: TFunction,
|
|
94
94
|
setError: SetErrorFuncType,
|
|
95
|
-
patchResource: PatchResourceFuncType,
|
|
96
95
|
|
|
97
96
|
assistedImageServiceRoute: RouteK8sResource,
|
|
98
97
|
domain: string,
|
|
@@ -102,7 +101,7 @@ const patchAssistedImageServiceRoute = async (
|
|
|
102
101
|
const labels = assistedImageServiceRoute.metadata?.labels || {};
|
|
103
102
|
labels['router-type'] = 'nlb';
|
|
104
103
|
|
|
105
|
-
const patches
|
|
104
|
+
const patches = [
|
|
106
105
|
{
|
|
107
106
|
op: 'replace',
|
|
108
107
|
path: '/spec/host',
|
|
@@ -116,7 +115,11 @@ const patchAssistedImageServiceRoute = async (
|
|
|
116
115
|
];
|
|
117
116
|
|
|
118
117
|
try {
|
|
119
|
-
await
|
|
118
|
+
await k8sPatch({
|
|
119
|
+
model: RouteModel,
|
|
120
|
+
resource: assistedImageServiceRoute,
|
|
121
|
+
data: patches,
|
|
122
|
+
});
|
|
120
123
|
} catch (e) {
|
|
121
124
|
// console.error('Failed to patch assisted-image-service route: ', e, patches);
|
|
122
125
|
setError({
|
|
@@ -128,15 +131,12 @@ const patchAssistedImageServiceRoute = async (
|
|
|
128
131
|
return true;
|
|
129
132
|
};
|
|
130
133
|
|
|
131
|
-
export const isIngressController = async (
|
|
134
|
+
export const isIngressController = async (): Promise<boolean> => {
|
|
132
135
|
try {
|
|
133
|
-
await
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
name: 'ingress-controller-with-nlb',
|
|
138
|
-
namespace: 'openshift-ingress-operator',
|
|
139
|
-
},
|
|
136
|
+
await k8sGet({
|
|
137
|
+
name: 'ingress-controller-with-nlb',
|
|
138
|
+
ns: 'openshift-ingress-operator',
|
|
139
|
+
model: IngressControllerModel,
|
|
140
140
|
});
|
|
141
141
|
|
|
142
142
|
return true;
|
|
@@ -148,7 +148,6 @@ export const isIngressController = async (getResource: GetResourceFuncType): Pro
|
|
|
148
148
|
const createIngressController = async (
|
|
149
149
|
t: TFunction,
|
|
150
150
|
setError: SetErrorFuncType,
|
|
151
|
-
createResource: CreateResourceFuncType,
|
|
152
151
|
|
|
153
152
|
domain: string,
|
|
154
153
|
): Promise<boolean> => {
|
|
@@ -184,7 +183,7 @@ const createIngressController = async (
|
|
|
184
183
|
};
|
|
185
184
|
|
|
186
185
|
try {
|
|
187
|
-
await
|
|
186
|
+
await k8sCreate({ model: IngressControllerModel, data: ingressController });
|
|
188
187
|
return true;
|
|
189
188
|
} catch (e) {
|
|
190
189
|
// console.error('Create IngressController error: ', e);
|
|
@@ -199,24 +198,19 @@ const createIngressController = async (
|
|
|
199
198
|
const patchProvisioningConfiguration = async ({
|
|
200
199
|
t,
|
|
201
200
|
setError,
|
|
202
|
-
patchResource,
|
|
203
|
-
getResource,
|
|
204
201
|
}: {
|
|
205
202
|
t: TFunction;
|
|
206
203
|
setError: SetErrorFuncType;
|
|
207
|
-
patchResource: PatchResourceFuncType;
|
|
208
|
-
getResource: GetResourceFuncType;
|
|
209
204
|
}) => {
|
|
210
205
|
try {
|
|
211
|
-
const provisioning =
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
})) as K8sResourceCommon & { spec?: { watchAllNamespaces?: boolean } };
|
|
206
|
+
const provisioning = await k8sGet<
|
|
207
|
+
K8sResourceCommon & { spec?: { watchAllNamespaces?: boolean } }
|
|
208
|
+
>({
|
|
209
|
+
model: ProvisioningModel,
|
|
210
|
+
name: 'provisioning-configuration',
|
|
211
|
+
});
|
|
218
212
|
|
|
219
|
-
const patches
|
|
213
|
+
const patches = [
|
|
220
214
|
{
|
|
221
215
|
op: provisioning.spec?.watchAllNamespaces ? 'replace' : 'add',
|
|
222
216
|
path: '/spec/watchAllNamespaces',
|
|
@@ -224,7 +218,11 @@ const patchProvisioningConfiguration = async ({
|
|
|
224
218
|
},
|
|
225
219
|
];
|
|
226
220
|
|
|
227
|
-
await
|
|
221
|
+
await k8sPatch({
|
|
222
|
+
model: ProvisioningModel,
|
|
223
|
+
resource: provisioning,
|
|
224
|
+
data: patches,
|
|
225
|
+
});
|
|
228
226
|
} catch (e) {
|
|
229
227
|
// console.error('Failed to patch provisioning-configuration: ', e);
|
|
230
228
|
setError({
|
|
@@ -238,18 +236,18 @@ const patchProvisioningConfiguration = async ({
|
|
|
238
236
|
const createAgentServiceConfig = async ({
|
|
239
237
|
t,
|
|
240
238
|
setError,
|
|
241
|
-
createResource,
|
|
242
239
|
dbVolSizeGiB,
|
|
243
240
|
fsVolSizeGiB,
|
|
244
241
|
imgVolSizeGiB,
|
|
242
|
+
ciscoIntersightURL,
|
|
245
243
|
}: {
|
|
246
244
|
t: TFunction;
|
|
247
245
|
setError: SetErrorFuncType;
|
|
248
|
-
createResource: CreateResourceFuncType;
|
|
249
246
|
|
|
250
247
|
dbVolSizeGiB: number;
|
|
251
248
|
fsVolSizeGiB: number;
|
|
252
249
|
imgVolSizeGiB: number;
|
|
250
|
+
ciscoIntersightURL?: string;
|
|
253
251
|
}): Promise<boolean> => {
|
|
254
252
|
try {
|
|
255
253
|
const agentServiceConfig = {
|
|
@@ -257,6 +255,7 @@ const createAgentServiceConfig = async ({
|
|
|
257
255
|
kind: 'AgentServiceConfig',
|
|
258
256
|
metadata: {
|
|
259
257
|
name: 'agent',
|
|
258
|
+
annotations: {},
|
|
260
259
|
},
|
|
261
260
|
spec: {
|
|
262
261
|
databaseStorage: {
|
|
@@ -286,79 +285,32 @@ const createAgentServiceConfig = async ({
|
|
|
286
285
|
},
|
|
287
286
|
};
|
|
288
287
|
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
message: getErrorMessage(e),
|
|
296
|
-
});
|
|
297
|
-
return false;
|
|
298
|
-
}
|
|
299
|
-
};
|
|
288
|
+
if (ciscoIntersightURL) {
|
|
289
|
+
agentServiceConfig.metadata = {
|
|
290
|
+
...agentServiceConfig.metadata,
|
|
291
|
+
annotations: { ciscoIntersightURL },
|
|
292
|
+
};
|
|
293
|
+
}
|
|
300
294
|
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
patchResource,
|
|
306
|
-
agentServiceConfig,
|
|
307
|
-
imgVolSizeGB,
|
|
308
|
-
}: {
|
|
309
|
-
t: TFunction;
|
|
310
|
-
setError: SetErrorFuncType;
|
|
311
|
-
patchResource: PatchResourceFuncType;
|
|
312
|
-
agentServiceConfig: AgentServiceConfigK8sResource;
|
|
295
|
+
await k8sCreate({
|
|
296
|
+
model: AgentServiceConfigModel,
|
|
297
|
+
data: agentServiceConfig,
|
|
298
|
+
});
|
|
313
299
|
|
|
314
|
-
imgVolSizeGB: number;
|
|
315
|
-
}): Promise<boolean> => {
|
|
316
|
-
try {
|
|
317
|
-
const patches: ResourcePatch[] = [
|
|
318
|
-
{
|
|
319
|
-
op: 'replace',
|
|
320
|
-
path: '/spec/imageStorage/resources/requests/storage',
|
|
321
|
-
value: `${imgVolSizeGB}G`,
|
|
322
|
-
},
|
|
323
|
-
];
|
|
324
|
-
await patchResource(agentServiceConfig, patches);
|
|
325
300
|
return true;
|
|
326
301
|
} catch (e) {
|
|
327
|
-
console.error('Failed to patch AgentServiceConfig: ', e);
|
|
328
302
|
setError({
|
|
329
|
-
title: t('ai:Failed to
|
|
303
|
+
title: t('ai:Failed to create AgentServiceConfig'),
|
|
304
|
+
message: getErrorMessage(e),
|
|
330
305
|
});
|
|
331
306
|
return false;
|
|
332
307
|
}
|
|
333
308
|
};
|
|
334
309
|
|
|
335
|
-
export const onDeleteCimConfig = async ({
|
|
336
|
-
deleteResource,
|
|
337
|
-
}: {
|
|
338
|
-
deleteResource: DeleteResourceFuncType;
|
|
339
|
-
}) => {
|
|
340
|
-
try {
|
|
341
|
-
await deleteResource({
|
|
342
|
-
apiVersion: 'agent-install.openshift.io/v1beta1',
|
|
343
|
-
kind: 'AgentServiceConfig',
|
|
344
|
-
metadata: {
|
|
345
|
-
name: 'agent',
|
|
346
|
-
// cluster-scoped resource
|
|
347
|
-
},
|
|
348
|
-
});
|
|
349
|
-
} catch (e) {
|
|
350
|
-
console.error('Failed to delete AgentServiceConfig: ', e);
|
|
351
|
-
}
|
|
352
|
-
};
|
|
353
|
-
*/
|
|
354
310
|
// https://access.redhat.com/documentation/en-us/red_hat_advanced_cluster_management_for_kubernetes/2.6/html/multicluster_engine/multicluster_engine_overview#enable-cim
|
|
355
311
|
export const onEnableCIM = async ({
|
|
356
312
|
t,
|
|
357
313
|
setError,
|
|
358
|
-
createResource,
|
|
359
|
-
getResource,
|
|
360
|
-
listResources,
|
|
361
|
-
patchResource,
|
|
362
314
|
|
|
363
315
|
agentServiceConfig,
|
|
364
316
|
platform,
|
|
@@ -368,13 +320,10 @@ export const onEnableCIM = async ({
|
|
|
368
320
|
imgVolSizeGiB,
|
|
369
321
|
|
|
370
322
|
configureLoadBalancer,
|
|
323
|
+
ciscoIntersightURL,
|
|
371
324
|
}: {
|
|
372
325
|
t: TFunction;
|
|
373
326
|
setError: SetErrorFuncType;
|
|
374
|
-
createResource: CreateResourceFuncType;
|
|
375
|
-
getResource: GetResourceFuncType;
|
|
376
|
-
listResources: ListResourcesFuncType;
|
|
377
|
-
patchResource: PatchResourceFuncType;
|
|
378
327
|
|
|
379
328
|
agentServiceConfig?: AgentServiceConfigK8sResource;
|
|
380
329
|
platform: string;
|
|
@@ -384,22 +333,21 @@ export const onEnableCIM = async ({
|
|
|
384
333
|
imgVolSizeGiB: number;
|
|
385
334
|
|
|
386
335
|
configureLoadBalancer: boolean;
|
|
336
|
+
ciscoIntersightURL?: string;
|
|
387
337
|
}) => {
|
|
388
338
|
if (['none', 'baremetal', 'openstack', 'vsphere'].includes(platform.toLocaleLowerCase())) {
|
|
389
|
-
await patchProvisioningConfiguration({ t, setError
|
|
339
|
+
await patchProvisioningConfiguration({ t, setError });
|
|
390
340
|
}
|
|
391
341
|
|
|
392
|
-
if (agentServiceConfig) {
|
|
393
|
-
// console.log('The AgentServiceConfig recently can not be patched. Delete and create instead.');
|
|
394
|
-
} else {
|
|
342
|
+
if (!agentServiceConfig) {
|
|
395
343
|
if (
|
|
396
344
|
!(await createAgentServiceConfig({
|
|
397
345
|
t,
|
|
398
346
|
setError,
|
|
399
|
-
createResource,
|
|
400
347
|
dbVolSizeGiB,
|
|
401
348
|
fsVolSizeGiB,
|
|
402
349
|
imgVolSizeGiB,
|
|
350
|
+
ciscoIntersightURL,
|
|
403
351
|
}))
|
|
404
352
|
) {
|
|
405
353
|
return false;
|
|
@@ -411,16 +359,11 @@ export const onEnableCIM = async ({
|
|
|
411
359
|
|
|
412
360
|
if (configureLoadBalancer) {
|
|
413
361
|
// Recently No to Yes only (since we do not delete the ingress controller)
|
|
414
|
-
if (await isIngressController(
|
|
415
|
-
// console.log('IngressController already present, we do not patch it.');
|
|
362
|
+
if (await isIngressController()) {
|
|
416
363
|
return true /* Not an error */;
|
|
417
364
|
}
|
|
418
365
|
|
|
419
|
-
const assistedImageServiceRoute = await getAssistedImageServiceRoute(
|
|
420
|
-
t,
|
|
421
|
-
setError,
|
|
422
|
-
listResources,
|
|
423
|
-
);
|
|
366
|
+
const assistedImageServiceRoute = await getAssistedImageServiceRoute(t, setError);
|
|
424
367
|
if (!assistedImageServiceRoute) {
|
|
425
368
|
return false;
|
|
426
369
|
}
|
|
@@ -431,14 +374,8 @@ export const onEnableCIM = async ({
|
|
|
431
374
|
}
|
|
432
375
|
|
|
433
376
|
if (
|
|
434
|
-
!(await createIngressController(t, setError,
|
|
435
|
-
!(await patchAssistedImageServiceRoute(
|
|
436
|
-
t,
|
|
437
|
-
setError,
|
|
438
|
-
patchResource,
|
|
439
|
-
assistedImageServiceRoute,
|
|
440
|
-
domain,
|
|
441
|
-
))
|
|
377
|
+
!(await createIngressController(t, setError, domain)) ||
|
|
378
|
+
!(await patchAssistedImageServiceRoute(t, setError, assistedImageServiceRoute, domain))
|
|
442
379
|
) {
|
|
443
380
|
return false;
|
|
444
381
|
}
|
|
@@ -1,24 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
CreateResourceFuncType,
|
|
3
|
-
GetResourceFuncType,
|
|
4
|
-
ListResourcesFuncType,
|
|
5
|
-
PatchResourceFuncType,
|
|
6
|
-
} from '../../../types';
|
|
7
1
|
import { AgentServiceConfigK8sResource } from '../../../types/k8s/agent-service-config';
|
|
8
2
|
|
|
9
|
-
export type
|
|
3
|
+
export type CimConfigurationValues = {
|
|
10
4
|
dbVolSize: number;
|
|
11
|
-
dbVolSizeValidation?: string;
|
|
12
|
-
setDbVolSize: (v: number) => void;
|
|
13
5
|
fsVolSize: number;
|
|
14
|
-
fsVolSizeValidation?: string;
|
|
15
|
-
setFsVolSize: (v: number) => void;
|
|
16
6
|
imgVolSize: number;
|
|
17
|
-
imgVolSizeValidation?: string;
|
|
18
|
-
setImgVolSize: (v: number) => void;
|
|
19
7
|
configureLoadBalancer: boolean;
|
|
20
|
-
|
|
21
|
-
|
|
8
|
+
addCiscoIntersightUrl: boolean;
|
|
9
|
+
ciscoIntersightURL: string;
|
|
22
10
|
};
|
|
23
11
|
|
|
24
12
|
export type CimConfigProgressAlertProps = {
|
|
@@ -26,12 +14,14 @@ export type CimConfigProgressAlertProps = {
|
|
|
26
14
|
assistedServiceDeploymentUrl: string;
|
|
27
15
|
};
|
|
28
16
|
|
|
29
|
-
export type
|
|
30
|
-
onClose: () => void;
|
|
17
|
+
export type CimConfigurationFormFieldsProps = {
|
|
31
18
|
isEdit: boolean;
|
|
32
19
|
isInProgressPeriod: boolean;
|
|
33
20
|
docConfigUrl: string;
|
|
34
21
|
docConfigAwsUrl: string;
|
|
22
|
+
platform: string;
|
|
23
|
+
configureLoadBalancerInitial: boolean;
|
|
24
|
+
setConfigureLoadBalancerInitial: (value: boolean) => void;
|
|
35
25
|
};
|
|
36
26
|
|
|
37
27
|
export type CimConfigurationModalProps = {
|
|
@@ -42,11 +32,6 @@ export type CimConfigurationModalProps = {
|
|
|
42
32
|
docDisconnectedUrl: string;
|
|
43
33
|
docConfigUrl: string;
|
|
44
34
|
docConfigAwsUrl: string;
|
|
45
|
-
|
|
46
|
-
createResource: CreateResourceFuncType;
|
|
47
|
-
getResource: GetResourceFuncType;
|
|
48
|
-
listResources: ListResourcesFuncType;
|
|
49
|
-
patchResource: PatchResourceFuncType;
|
|
50
35
|
};
|
|
51
36
|
|
|
52
37
|
export type CimConfigMissingAlertProps = {
|
|
@@ -106,7 +106,7 @@ const EditProxyModal: React.FC<EditProxyModalProps> = ({
|
|
|
106
106
|
<Form>
|
|
107
107
|
<ProxyInputFields />
|
|
108
108
|
{error && (
|
|
109
|
-
<Alert variant="danger" title={t('ai:An error
|
|
109
|
+
<Alert variant="danger" title={t('ai:An error occurred')} isInline>
|
|
110
110
|
{error}
|
|
111
111
|
</Alert>
|
|
112
112
|
)}
|
|
@@ -64,7 +64,7 @@ const EditSSHKeyModal: React.FC<EditSSHKeyModalProps> = ({
|
|
|
64
64
|
onClose();
|
|
65
65
|
} catch (err) {
|
|
66
66
|
const error = err as Error;
|
|
67
|
-
setError(error?.message || t('ai:An error
|
|
67
|
+
setError(error?.message || t('ai:An error occurred'));
|
|
68
68
|
}
|
|
69
69
|
}}
|
|
70
70
|
validateOnMount
|
|
@@ -33,7 +33,7 @@ const hostnameColumn = (agents: AgentK8sResource[], t: TFunction): TableRow<Host
|
|
|
33
33
|
},
|
|
34
34
|
cell: (host) => {
|
|
35
35
|
const agent = agents.find((a) => a.metadata?.uid === host.id);
|
|
36
|
-
const hostname = agent?.spec
|
|
36
|
+
const hostname = agent?.spec?.hostname || agent?.status?.inventory?.hostname;
|
|
37
37
|
return {
|
|
38
38
|
title: <ApproveTableRow agent={agent}>{hostname}</ApproveTableRow>,
|
|
39
39
|
props: { 'data-testid': 'hostname' },
|
|
@@ -113,7 +113,7 @@ const MassApproveAgentModal: React.FC<MassApproveAgentModalProps> = ({
|
|
|
113
113
|
onClose();
|
|
114
114
|
} catch (err) {
|
|
115
115
|
setError({
|
|
116
|
-
title: t('ai:An error
|
|
116
|
+
title: t('ai:An error occurred while approving agents'),
|
|
117
117
|
message: getErrorMessage(err),
|
|
118
118
|
});
|
|
119
119
|
setProgress(null);
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { WatchK8sResource } from '@openshift-console/dynamic-plugin-sdk';
|
|
2
|
+
|
|
3
|
+
export type K8sWatchHookListProps = Omit<
|
|
4
|
+
WatchK8sResource,
|
|
5
|
+
'groupVersionKind' | 'name' | 'isList'
|
|
6
|
+
> | null;
|
|
7
|
+
|
|
8
|
+
export type K8sWatchHookProps = Pick<WatchK8sResource, 'name' | 'namespace' | 'isList'> | null;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { useK8sWatchResource } from './useK8sWatchResource';
|
|
2
|
+
import { AgentServiceConfigK8sResource } from '../types';
|
|
3
|
+
import { K8sWatchHookProps } from './types';
|
|
4
|
+
|
|
5
|
+
export const useAgentServiceConfig = (props: K8sWatchHookProps) =>
|
|
6
|
+
useK8sWatchResource<AgentServiceConfigK8sResource>(
|
|
7
|
+
{
|
|
8
|
+
groupVersionKind: {
|
|
9
|
+
group: 'agent-install.openshift.io',
|
|
10
|
+
kind: 'AgentServiceConfig',
|
|
11
|
+
version: 'v1beta1',
|
|
12
|
+
},
|
|
13
|
+
},
|
|
14
|
+
props,
|
|
15
|
+
);
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { useK8sWatchResource } from './useK8sWatchResource';
|
|
2
|
+
import { ConfigMapK8sResource } from '../types';
|
|
3
|
+
import { K8sWatchHookProps } from './types';
|
|
4
|
+
|
|
5
|
+
export const useConfigMaps = (props: K8sWatchHookProps) =>
|
|
6
|
+
useK8sWatchResource<ConfigMapK8sResource[]>(
|
|
7
|
+
{
|
|
8
|
+
groupVersionKind: {
|
|
9
|
+
kind: 'ConfigMap',
|
|
10
|
+
version: 'v1',
|
|
11
|
+
},
|
|
12
|
+
},
|
|
13
|
+
props,
|
|
14
|
+
);
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import {
|
|
2
|
+
useK8sWatchResource as consoleWatch,
|
|
3
|
+
K8sResourceCommon,
|
|
4
|
+
WatchK8sResource,
|
|
5
|
+
} from '@openshift-console/dynamic-plugin-sdk';
|
|
6
|
+
|
|
7
|
+
export type WatchK8sResult<R extends K8sResourceCommon | K8sResourceCommon[]> = [
|
|
8
|
+
R,
|
|
9
|
+
boolean,
|
|
10
|
+
unknown,
|
|
11
|
+
];
|
|
12
|
+
|
|
13
|
+
export const useK8sWatchResource = <R extends K8sResourceCommon | K8sResourceCommon[]>(
|
|
14
|
+
resource: Pick<WatchK8sResource, 'groupVersionKind'>,
|
|
15
|
+
props?: Omit<WatchK8sResource, 'groupVersionKind'> | null,
|
|
16
|
+
): WatchK8sResult<R> => {
|
|
17
|
+
// eslint-disable-next-line
|
|
18
|
+
const [data, loaded, error] = consoleWatch<R>(
|
|
19
|
+
props !== null
|
|
20
|
+
? {
|
|
21
|
+
...resource,
|
|
22
|
+
...(props || {}),
|
|
23
|
+
}
|
|
24
|
+
: null,
|
|
25
|
+
);
|
|
26
|
+
return [data, error ? true : loaded, error as unknown];
|
|
27
|
+
};
|
package/lib/cim/types/index.ts
CHANGED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { K8sModel } from '@openshift-console/dynamic-plugin-sdk/lib/api/common-types';
|
|
2
|
+
|
|
3
|
+
export const AgentClusterInstallModel: K8sModel = {
|
|
4
|
+
kind: 'AgentClusterInstall',
|
|
5
|
+
label: 'AgentClusterInstall',
|
|
6
|
+
labelPlural: 'AgentClusterInstalls',
|
|
7
|
+
plural: 'agentclusterinstalls',
|
|
8
|
+
apiVersion: 'v1beta1',
|
|
9
|
+
apiGroup: 'extensions.hive.openshift.io',
|
|
10
|
+
namespaced: true,
|
|
11
|
+
abbr: 'ACI',
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export const AgentServiceConfigModel: K8sModel = {
|
|
15
|
+
kind: 'AgentServiceConfig',
|
|
16
|
+
label: 'AgentServiceConfig',
|
|
17
|
+
labelPlural: 'AgentServiceConfigs',
|
|
18
|
+
plural: 'agentserviceconfigs',
|
|
19
|
+
apiVersion: 'v1beta1',
|
|
20
|
+
apiGroup: 'agent-install.openshift.io',
|
|
21
|
+
namespaced: false,
|
|
22
|
+
abbr: 'asc',
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
export const IngressControllerModel: K8sModel = {
|
|
26
|
+
kind: 'IngressController',
|
|
27
|
+
label: 'IngressController',
|
|
28
|
+
labelPlural: 'IngressControllers',
|
|
29
|
+
plural: 'ingresscontrollers',
|
|
30
|
+
apiVersion: 'v1',
|
|
31
|
+
apiGroup: 'operator.openshift.io',
|
|
32
|
+
namespaced: true,
|
|
33
|
+
abbr: 'ic',
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
export const RouteModel: K8sModel = {
|
|
37
|
+
kind: 'Route',
|
|
38
|
+
label: 'Route',
|
|
39
|
+
labelPlural: 'Routes',
|
|
40
|
+
plural: 'routes',
|
|
41
|
+
apiVersion: 'v1',
|
|
42
|
+
apiGroup: 'route.openshift.io',
|
|
43
|
+
namespaced: true,
|
|
44
|
+
abbr: 'rt',
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
export const ProvisioningModel: K8sModel = {
|
|
48
|
+
kind: 'Provisioning',
|
|
49
|
+
label: 'Provisioning',
|
|
50
|
+
labelPlural: 'Provisionings',
|
|
51
|
+
plural: 'provisionings',
|
|
52
|
+
apiVersion: 'v1alpha1',
|
|
53
|
+
apiGroup: 'metal3.io',
|
|
54
|
+
namespaced: false,
|
|
55
|
+
abbr: 'p',
|
|
56
|
+
};
|
package/lib/cim/utils.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { Patch } from '@openshift-console/dynamic-plugin-sdk';
|
|
2
|
+
import { isEqual } from 'lodash-es';
|
|
1
3
|
import { StatusCondition } from './types';
|
|
2
4
|
|
|
3
5
|
export function getConditionByType<ConditionType>(
|
|
@@ -6,3 +8,13 @@ export function getConditionByType<ConditionType>(
|
|
|
6
8
|
): StatusCondition<ConditionType> | undefined {
|
|
7
9
|
return conditions.find((c) => c.type === type);
|
|
8
10
|
}
|
|
11
|
+
|
|
12
|
+
export const appendPatch = <V>(patches: Patch[], path: string, newVal?: V, existingVal?: V) => {
|
|
13
|
+
if (!isEqual(newVal, existingVal)) {
|
|
14
|
+
patches.push({
|
|
15
|
+
op: existingVal === undefined ? 'add' : 'replace',
|
|
16
|
+
path,
|
|
17
|
+
value: newVal,
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
};
|
|
@@ -75,11 +75,6 @@ const HostsAPI = {
|
|
|
75
75
|
},
|
|
76
76
|
);
|
|
77
77
|
},
|
|
78
|
-
unbindHost(infraEnvId: InfraEnv['id'], hostId: Host['id']) {
|
|
79
|
-
return client.post<Host, AxiosResponse<Host>, never>(
|
|
80
|
-
`${HostsAPI.makeActionsBaseURI(infraEnvId, hostId)}/unbind`,
|
|
81
|
-
);
|
|
82
|
-
},
|
|
83
78
|
};
|
|
84
79
|
|
|
85
80
|
export default HostsAPI;
|
|
@@ -10,9 +10,10 @@ import {
|
|
|
10
10
|
} from '@patternfly/react-core';
|
|
11
11
|
import { useTranslation } from '../../hooks/use-translation-wrapper';
|
|
12
12
|
import { getFieldId, StaticField } from '../..';
|
|
13
|
-
import { useField } from 'formik';
|
|
14
13
|
import toNumber from 'lodash-es/toNumber';
|
|
15
14
|
import OcmTNADisclaimer from './OcmTNADisclaimer';
|
|
15
|
+
import { ClusterDetailsValues } from '../clusterWizard';
|
|
16
|
+
import { useField, useFormikContext } from 'formik';
|
|
16
17
|
|
|
17
18
|
const isItemEnabled = (value: number, allowHighlyAvailable?: boolean, allowTNA?: boolean) => {
|
|
18
19
|
switch (value) {
|
|
@@ -44,6 +45,7 @@ const ControlPlaneNodesDropdown = ({
|
|
|
44
45
|
}) => {
|
|
45
46
|
const { t } = useTranslation();
|
|
46
47
|
const [{ name, value: selectedValue }, , { setValue }] = useField<number>('controlPlaneCount');
|
|
48
|
+
const { setFieldValue } = useFormikContext<ClusterDetailsValues>();
|
|
47
49
|
const [controlPlanelOpen, setControlPlanelOpen] = React.useState(false);
|
|
48
50
|
const fieldId = getFieldId(name, 'input');
|
|
49
51
|
|
|
@@ -85,6 +87,13 @@ const ControlPlaneNodesDropdown = ({
|
|
|
85
87
|
e?: React.MouseEvent<Element, MouseEvent>,
|
|
86
88
|
value?: string | number,
|
|
87
89
|
) => {
|
|
90
|
+
if (value === 1) {
|
|
91
|
+
setFieldValue('userManagedNetworking', true);
|
|
92
|
+
setFieldValue('platform', 'none');
|
|
93
|
+
} else {
|
|
94
|
+
setFieldValue('userManagedNetworking', false);
|
|
95
|
+
setFieldValue('platform', 'baremetal');
|
|
96
|
+
}
|
|
88
97
|
setValue(toNumber(value));
|
|
89
98
|
setControlPlanelOpen(false);
|
|
90
99
|
};
|