@openshift-assisted/ui-lib 2.52.2 → 2.53.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentWizard.d.ts +1 -1
- package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentWizard.d.ts.map +1 -1
- package/build/@types/cim/components/ClusterDeployment/NetworkConfiguration.d.ts +1 -1
- package/build/@types/cim/components/ClusterDeployment/NetworkConfiguration.d.ts.map +1 -1
- package/build/@types/cim/components/ClusterDeployment/customManifests/ClusterDeploymentCustomManifestsStep.d.ts.map +1 -1
- package/build/@types/cim/components/ClusterDeployment/networkConfigurationValidation.d.ts +1 -1
- package/build/@types/cim/components/ClusterDeployment/networkConfigurationValidation.d.ts.map +1 -1
- package/build/@types/cim/components/ClusterDeployment/networking/NetworkTypeDropdown.d.ts +5 -0
- package/build/@types/cim/components/ClusterDeployment/networking/NetworkTypeDropdown.d.ts.map +1 -0
- package/build/@types/cim/components/ClusterDeployment/review/ClusterDeploymentReviewStep.d.ts.map +1 -1
- package/build/@types/cim/components/ClusterDeployment/types.d.ts +0 -1
- package/build/@types/cim/components/ClusterDeployment/types.d.ts.map +1 -1
- package/build/@types/cim/components/ClusterDeployment/use-networking-formik.d.ts +4 -4
- package/build/@types/cim/components/ClusterDeployment/use-networking-formik.d.ts.map +1 -1
- package/build/@types/cim/components/ClusterDeployment/wizardTransition.d.ts.map +1 -1
- package/build/@types/cim/components/featureSupportLevels/ACMFeatureSupportLevelProvider.d.ts.map +1 -1
- package/build/@types/cim/components/helpers/clusterDeployment.d.ts.map +1 -1
- package/build/@types/cim/components/helpers/versions.d.ts +2 -2
- package/build/@types/cim/components/helpers/versions.d.ts.map +1 -1
- package/build/@types/cim/components/helpers/versions.test.d.ts +2 -0
- package/build/@types/cim/components/helpers/versions.test.d.ts.map +1 -0
- package/build/@types/cim/components/modals/CimConfiguration/CimConfigurationModal.d.ts.map +1 -1
- package/build/@types/cim/components/modals/CimConfiguration/persist.d.ts +14 -17
- package/build/@types/cim/components/modals/CimConfiguration/persist.d.ts.map +1 -1
- package/build/@types/cim/hooks/index.d.ts +1 -0
- package/build/@types/cim/hooks/index.d.ts.map +1 -1
- package/build/@types/cim/hooks/useAgents.d.ts +4 -0
- package/build/@types/cim/hooks/useAgents.d.ts.map +1 -0
- package/build/@types/cim/types/k8s/agent-cluster-install.d.ts +1 -1
- package/build/@types/cim/types/k8s/agent-cluster-install.d.ts.map +1 -1
- package/build/@types/common/components/clusterDetail/ClusterCredentials.d.ts.map +1 -1
- package/build/@types/common/components/clusterDetail/ConsoleModal.d.ts +0 -5
- package/build/@types/common/components/clusterDetail/ConsoleModal.d.ts.map +1 -1
- package/build/@types/common/components/clusterWizard/clusterDetailsValidation.d.ts.map +1 -1
- package/build/@types/common/components/clusterWizard/customManifests/CustomManifestsAlert.d.ts +6 -0
- package/build/@types/common/components/clusterWizard/customManifests/CustomManifestsAlert.d.ts.map +1 -0
- package/build/@types/common/components/clusterWizard/customManifests/index.d.ts +2 -0
- package/build/@types/common/components/clusterWizard/customManifests/index.d.ts.map +1 -0
- package/build/@types/common/components/clusterWizard/index.d.ts +2 -0
- package/build/@types/common/components/clusterWizard/index.d.ts.map +1 -1
- package/build/@types/common/components/clusterWizard/networkingSteps/AvailableSubnetsControl.d.ts +2 -1
- package/build/@types/common/components/clusterWizard/networkingSteps/AvailableSubnetsControl.d.ts.map +1 -1
- package/build/@types/common/components/clusterWizard/networkingSteps/StackTypeControlGroup.d.ts +2 -1
- package/build/@types/common/components/clusterWizard/networkingSteps/StackTypeControlGroup.d.ts.map +1 -1
- package/build/@types/common/components/clusterWizard/networkingSteps/ThirdPartyCNIBanner.d.ts +3 -0
- package/build/@types/common/components/clusterWizard/networkingSteps/ThirdPartyCNIBanner.d.ts.map +1 -0
- package/build/@types/common/components/clusterWizard/networkingSteps/index.d.ts +1 -0
- package/build/@types/common/components/clusterWizard/networkingSteps/index.d.ts.map +1 -1
- package/build/@types/common/components/ui/formik/utils.d.ts +1 -0
- package/build/@types/common/components/ui/formik/utils.d.ts.map +1 -1
- package/build/@types/common/config/constants.d.ts +2 -2
- package/build/@types/common/config/constants.d.ts.map +1 -1
- package/build/@types/common/types/networkType.d.ts +2 -1
- package/build/@types/common/types/networkType.d.ts.map +1 -1
- package/build/@types/common/validationSchemas/networkingValidation.d.ts +10 -0
- package/build/@types/common/validationSchemas/networkingValidation.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/ControlPlaneNodesDropdown.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/manifestsConfiguration/CustomManifestsPage.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/networkConfiguration/NetworkTypeDropdown.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/networkConfiguration/networkConfigurationValidation.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/review/ReviewNetworkingTable.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/review/ReviewSummary.d.ts.map +1 -1
- package/build/@types/ocm/components/{clusterDetail/ClusterProperties.d.ts → clusterConfiguration/review/utils.d.ts} +1 -8
- package/build/@types/ocm/components/clusterConfiguration/review/utils.d.ts.map +1 -0
- package/build/@types/ocm/components/clusterConfiguration/review/utils.test.d.ts +2 -0
- package/build/@types/ocm/components/clusterConfiguration/review/utils.test.d.ts.map +1 -0
- package/build/@types/ocm/components/clusterConfiguration/staticIp/data/formDataToInfraEnvField.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/staticIp/data/nmstateTypes.d.ts +1 -0
- package/build/@types/ocm/components/clusterConfiguration/staticIp/data/nmstateTypes.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/staticIp/data/nmstateYaml.d.ts +1 -1
- package/build/@types/ocm/components/clusterConfiguration/staticIp/data/nmstateYaml.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterDetail/ClusterDetailsButtonGroup.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterDetail/index.d.ts +0 -1
- package/build/@types/ocm/components/clusterDetail/index.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterWizard/ClusterDetailsForm.d.ts.map +1 -1
- package/build/@types/ocm/components/clusters/AssistedInstallerHeader.d.ts +5 -1
- package/build/@types/ocm/components/clusters/AssistedInstallerHeader.d.ts.map +1 -1
- package/build/@types/ocm/components/clusters/ClustersListToolbar.d.ts +1 -2
- package/build/@types/ocm/components/clusters/ClustersListToolbar.d.ts.map +1 -1
- package/build/@types/ocm/components/clusters/ClustersTable.d.ts.map +1 -1
- package/build/@types/ocm/hooks/useClusterCustomManifests.d.ts.map +1 -1
- package/build/@types/ocm/hooks/useLateBinding.d.ts.map +1 -1
- package/build/@types/ocm/hooks/useUISettings.d.ts.map +1 -1
- package/build/@types/ocm/services/ClusterDetailsService.d.ts +2 -1
- package/build/@types/ocm/services/ClusterDetailsService.d.ts.map +1 -1
- package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentWizard.js +9 -1
- package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentWizard.js.map +1 -1
- package/build/cjs/cim/components/ClusterDeployment/NetworkConfiguration.js +46 -7
- package/build/cjs/cim/components/ClusterDeployment/NetworkConfiguration.js.map +1 -1
- package/build/cjs/cim/components/ClusterDeployment/customManifests/ClusterDeploymentCustomManifestsStep.js +22 -21
- package/build/cjs/cim/components/ClusterDeployment/customManifests/ClusterDeploymentCustomManifestsStep.js.map +1 -1
- package/build/cjs/cim/components/ClusterDeployment/networkConfigurationValidation.js +25 -9
- package/build/cjs/cim/components/ClusterDeployment/networkConfigurationValidation.js.map +1 -1
- package/build/cjs/cim/components/ClusterDeployment/networking/NetworkTypeDropdown.js +35 -0
- package/build/cjs/cim/components/ClusterDeployment/networking/NetworkTypeDropdown.js.map +1 -0
- package/build/cjs/cim/components/ClusterDeployment/review/ClusterDeploymentReviewStep.js +4 -4
- package/build/cjs/cim/components/ClusterDeployment/review/ClusterDeploymentReviewStep.js.map +1 -1
- package/build/cjs/cim/components/ClusterDeployment/use-networking-formik.js +13 -18
- package/build/cjs/cim/components/ClusterDeployment/use-networking-formik.js.map +1 -1
- package/build/cjs/cim/components/ClusterDeployment/wizardTransition.js +5 -1
- package/build/cjs/cim/components/ClusterDeployment/wizardTransition.js.map +1 -1
- package/build/cjs/cim/components/Hypershift/modals/NodePoolForm.js +1 -1
- package/build/cjs/cim/components/Hypershift/modals/NodePoolForm.js.map +1 -1
- package/build/cjs/cim/components/featureSupportLevels/ACMFeatureSupportLevelProvider.js +1 -4
- package/build/cjs/cim/components/featureSupportLevels/ACMFeatureSupportLevelProvider.js.map +1 -1
- package/build/cjs/cim/components/helpers/clusterDeployment.js +14 -10
- package/build/cjs/cim/components/helpers/clusterDeployment.js.map +1 -1
- package/build/cjs/cim/components/helpers/versions.js +39 -28
- package/build/cjs/cim/components/helpers/versions.js.map +1 -1
- package/build/cjs/cim/components/helpers/versions.test.js +423 -0
- package/build/cjs/cim/components/helpers/versions.test.js.map +1 -0
- package/build/cjs/cim/components/modals/CimConfiguration/CimConfigurationModal.js +39 -16
- package/build/cjs/cim/components/modals/CimConfiguration/CimConfigurationModal.js.map +1 -1
- package/build/cjs/cim/components/modals/CimConfiguration/persist.js +96 -136
- package/build/cjs/cim/components/modals/CimConfiguration/persist.js.map +1 -1
- package/build/cjs/cim/hooks/index.js +1 -0
- package/build/cjs/cim/hooks/index.js.map +1 -1
- package/build/cjs/cim/hooks/useAgents.js +13 -0
- package/build/cjs/cim/hooks/useAgents.js.map +1 -0
- package/build/cjs/common/components/clusterDetail/ClusterCredentials.js +10 -9
- package/build/cjs/common/components/clusterDetail/ClusterCredentials.js.map +1 -1
- package/build/cjs/common/components/clusterDetail/ConsoleModal.js +1 -10
- package/build/cjs/common/components/clusterDetail/ConsoleModal.js.map +1 -1
- package/build/cjs/common/components/clusterWizard/clusterDetailsValidation.js +34 -19
- package/build/cjs/common/components/clusterWizard/clusterDetailsValidation.js.map +1 -1
- package/build/cjs/common/components/clusterWizard/customManifests/CustomManifestsAlert.js +32 -0
- package/build/cjs/common/components/clusterWizard/customManifests/CustomManifestsAlert.js.map +1 -0
- package/build/cjs/common/components/clusterWizard/customManifests/index.js +5 -0
- package/build/cjs/common/components/clusterWizard/customManifests/index.js.map +1 -0
- package/build/cjs/common/components/clusterWizard/index.js +2 -0
- package/build/cjs/common/components/clusterWizard/index.js.map +1 -1
- package/build/cjs/common/components/clusterWizard/networkingSteps/AvailableSubnetsControl.js +8 -2
- package/build/cjs/common/components/clusterWizard/networkingSteps/AvailableSubnetsControl.js.map +1 -1
- package/build/cjs/common/components/clusterWizard/networkingSteps/ManagedNetworkingControlGroup.js +3 -3
- package/build/cjs/common/components/clusterWizard/networkingSteps/StackTypeControlGroup.js +29 -19
- package/build/cjs/common/components/clusterWizard/networkingSteps/StackTypeControlGroup.js.map +1 -1
- package/build/cjs/common/components/clusterWizard/networkingSteps/ThirdPartyCNIBanner.js +20 -0
- package/build/cjs/common/components/clusterWizard/networkingSteps/ThirdPartyCNIBanner.js.map +1 -0
- package/build/cjs/common/components/clusterWizard/networkingSteps/index.js +1 -0
- package/build/cjs/common/components/clusterWizard/networkingSteps/index.js.map +1 -1
- package/build/cjs/common/components/ui/formik/utils.js +5 -1
- package/build/cjs/common/components/ui/formik/utils.js.map +1 -1
- package/build/cjs/common/config/constants.js +13 -2
- package/build/cjs/common/config/constants.js.map +1 -1
- package/build/cjs/common/types/networkType.js +9 -8
- package/build/cjs/common/types/networkType.js.map +1 -1
- package/build/cjs/common/validationSchemas/networkingValidation.js +19 -1
- package/build/cjs/common/validationSchemas/networkingValidation.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/ControlPlaneNodesDropdown.js +4 -1
- package/build/cjs/ocm/components/clusterConfiguration/ControlPlaneNodesDropdown.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/manifestsConfiguration/CustomManifestsPage.js +1 -20
- package/build/cjs/ocm/components/clusterConfiguration/manifestsConfiguration/CustomManifestsPage.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfigurationForm.js +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfigurationForm.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/NetworkTypeDropdown.js +6 -9
- package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/NetworkTypeDropdown.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/networkConfigurationValidation.js +4 -4
- package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/networkConfigurationValidation.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/review/ReviewClusterDetailTable.js +2 -2
- package/build/cjs/ocm/components/clusterConfiguration/review/ReviewClusterDetailTable.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/review/ReviewNetworkingTable.js +6 -5
- package/build/cjs/ocm/components/clusterConfiguration/review/ReviewNetworkingTable.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/review/ReviewSummary.js +5 -2
- package/build/cjs/ocm/components/clusterConfiguration/review/ReviewSummary.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/review/utils.js +57 -0
- package/build/cjs/ocm/components/clusterConfiguration/review/utils.js.map +1 -0
- package/build/cjs/ocm/components/{clusterDetail/ClusterProperties.test.js → clusterConfiguration/review/utils.test.js} +13 -13
- package/build/cjs/ocm/components/clusterConfiguration/review/utils.test.js.map +1 -0
- package/build/cjs/ocm/components/clusterConfiguration/staticIp/data/formDataToInfraEnvField.js +2 -2
- package/build/cjs/ocm/components/clusterConfiguration/staticIp/data/formDataToInfraEnvField.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/staticIp/data/nmstateTypes.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/staticIp/data/nmstateYaml.js +3 -7
- package/build/cjs/ocm/components/clusterConfiguration/staticIp/data/nmstateYaml.js.map +1 -1
- package/build/cjs/ocm/components/clusterDetail/ClusterDetailsButtonGroup.js +8 -2
- package/build/cjs/ocm/components/clusterDetail/ClusterDetailsButtonGroup.js.map +1 -1
- package/build/cjs/ocm/components/clusterDetail/index.js +1 -3
- package/build/cjs/ocm/components/clusterDetail/index.js.map +1 -1
- package/build/cjs/ocm/components/clusterWizard/ClusterDetailsForm.js +10 -1
- package/build/cjs/ocm/components/clusterWizard/ClusterDetailsForm.js.map +1 -1
- package/build/cjs/ocm/components/clusters/AssistedInstallerHeader.js +2 -2
- package/build/cjs/ocm/components/clusters/AssistedInstallerHeader.js.map +1 -1
- package/build/cjs/ocm/components/clusters/ClusterPage.js +1 -1
- package/build/cjs/ocm/components/clusters/ClusterPage.js.map +1 -1
- package/build/cjs/ocm/components/clusters/ClustersListToolbar.js +2 -2
- package/build/cjs/ocm/components/clusters/ClustersListToolbar.js.map +1 -1
- package/build/cjs/ocm/components/clusters/ClustersTable.js +4 -3
- package/build/cjs/ocm/components/clusters/ClustersTable.js.map +1 -1
- package/build/cjs/ocm/components/featureSupportLevels/featureStateUtils.js +1 -1
- package/build/cjs/ocm/hooks/useClusterCustomManifests.js +3 -15
- package/build/cjs/ocm/hooks/useClusterCustomManifests.js.map +1 -1
- package/build/cjs/ocm/hooks/useLateBinding.js +41 -26
- package/build/cjs/ocm/hooks/useLateBinding.js.map +1 -1
- package/build/cjs/ocm/hooks/usePullSecret.js +2 -2
- package/build/cjs/ocm/hooks/useUISettings.js +1 -1
- package/build/cjs/ocm/hooks/useUISettings.js.map +1 -1
- package/build/cjs/ocm/services/ClusterDetailsService.js +4 -2
- package/build/cjs/ocm/services/ClusterDetailsService.js.map +1 -1
- package/lib/cim/components/ClusterDeployment/ClusterDeploymentWizard.tsx +10 -2
- package/lib/cim/components/ClusterDeployment/NetworkConfiguration.tsx +55 -6
- package/lib/cim/components/ClusterDeployment/customManifests/ClusterDeploymentCustomManifestsStep.tsx +18 -2
- package/lib/cim/components/ClusterDeployment/networkConfigurationValidation.ts +22 -8
- package/lib/cim/components/ClusterDeployment/networking/NetworkTypeDropdown.tsx +81 -0
- package/lib/cim/components/ClusterDeployment/review/ClusterDeploymentReviewStep.tsx +18 -14
- package/lib/cim/components/ClusterDeployment/types.ts +0 -1
- package/lib/cim/components/ClusterDeployment/use-networking-formik.ts +14 -22
- package/lib/cim/components/ClusterDeployment/wizardTransition.ts +5 -1
- package/lib/cim/components/Hypershift/modals/NodePoolForm.tsx +2 -2
- package/lib/cim/components/featureSupportLevels/ACMFeatureSupportLevelProvider.tsx +2 -5
- package/lib/cim/components/helpers/clusterDeployment.ts +9 -4
- package/lib/cim/components/helpers/versions.test.ts +465 -0
- package/lib/cim/components/helpers/versions.ts +37 -31
- package/lib/cim/components/modals/CimConfiguration/CimConfigurationModal.tsx +45 -18
- package/lib/cim/components/modals/CimConfiguration/persist.ts +97 -199
- package/lib/cim/hooks/index.tsx +1 -0
- package/lib/cim/hooks/useAgents.tsx +15 -0
- package/lib/cim/types/k8s/agent-cluster-install.ts +1 -1
- package/lib/common/components/clusterDetail/ClusterCredentials.tsx +49 -53
- package/lib/common/components/clusterDetail/ConsoleModal.tsx +0 -35
- package/lib/common/components/clusterWizard/clusterDetailsValidation.ts +38 -12
- package/lib/common/components/clusterWizard/customManifests/CustomManifestsAlert.tsx +39 -0
- package/lib/common/components/clusterWizard/customManifests/index.tsx +1 -0
- package/lib/common/components/clusterWizard/index.ts +2 -0
- package/lib/common/components/clusterWizard/networkingSteps/AvailableSubnetsControl.tsx +8 -1
- package/lib/common/components/clusterWizard/networkingSteps/ManagedNetworkingControlGroup.tsx +3 -3
- package/lib/common/components/clusterWizard/networkingSteps/StackTypeControlGroup.tsx +36 -26
- package/lib/common/components/clusterWizard/networkingSteps/ThirdPartyCNIBanner.tsx +28 -0
- package/lib/common/components/clusterWizard/networkingSteps/index.ts +1 -0
- package/lib/common/components/ui/formik/utils.ts +6 -0
- package/lib/common/config/constants.ts +14 -1
- package/lib/common/types/networkType.ts +9 -8
- package/lib/common/validationSchemas/networkingValidation.tsx +39 -1
- package/lib/ocm/components/clusterConfiguration/ControlPlaneNodesDropdown.tsx +6 -3
- package/lib/ocm/components/clusterConfiguration/manifestsConfiguration/CustomManifestsPage.tsx +10 -45
- package/lib/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfigurationForm.tsx +2 -2
- package/lib/ocm/components/clusterConfiguration/networkConfiguration/NetworkTypeDropdown.tsx +7 -24
- package/lib/ocm/components/clusterConfiguration/networkConfiguration/networkConfigurationValidation.ts +6 -5
- package/lib/ocm/components/clusterConfiguration/review/ReviewClusterDetailTable.tsx +1 -1
- package/lib/ocm/components/clusterConfiguration/review/ReviewNetworkingTable.tsx +10 -4
- package/lib/ocm/components/clusterConfiguration/review/ReviewSummary.tsx +9 -2
- package/lib/ocm/components/{clusterDetail/ClusterProperties.test.ts → clusterConfiguration/review/utils.test.ts} +1 -1
- package/lib/ocm/components/clusterConfiguration/review/utils.tsx +61 -0
- package/lib/ocm/components/clusterConfiguration/staticIp/data/formDataToInfraEnvField.ts +2 -0
- package/lib/ocm/components/clusterConfiguration/staticIp/data/nmstateTypes.ts +1 -0
- package/lib/ocm/components/clusterConfiguration/staticIp/data/nmstateYaml.ts +2 -0
- package/lib/ocm/components/clusterDetail/ClusterDetailsButtonGroup.tsx +27 -2
- package/lib/ocm/components/clusterDetail/index.ts +0 -1
- package/lib/ocm/components/clusterWizard/ClusterDetailsForm.tsx +10 -1
- package/lib/ocm/components/clusters/AssistedInstallerHeader.tsx +6 -2
- package/lib/ocm/components/clusters/ClusterPage.tsx +1 -1
- package/lib/ocm/components/clusters/ClustersListToolbar.tsx +3 -5
- package/lib/ocm/components/clusters/ClustersTable.tsx +60 -50
- package/lib/ocm/components/featureSupportLevels/featureStateUtils.ts +1 -1
- package/lib/ocm/hooks/useClusterCustomManifests.ts +3 -0
- package/lib/ocm/hooks/useLateBinding.ts +45 -24
- package/lib/ocm/hooks/usePullSecret.ts +2 -2
- package/lib/ocm/hooks/useUISettings.ts +3 -1
- package/lib/ocm/services/ClusterDetailsService.ts +6 -0
- package/package.json +9 -9
- package/build/@types/common/components/clusterWizard/networkingSteps/NetworkTypeControlGroup.d.ts +0 -7
- package/build/@types/common/components/clusterWizard/networkingSteps/NetworkTypeControlGroup.d.ts.map +0 -1
- package/build/@types/ocm/components/clusterDetail/AssistedInstallerExtraDetailCard.d.ts +0 -8
- package/build/@types/ocm/components/clusterDetail/AssistedInstallerExtraDetailCard.d.ts.map +0 -1
- package/build/@types/ocm/components/clusterDetail/ClusterProperties.d.ts.map +0 -1
- package/build/@types/ocm/components/clusterDetail/ClusterProperties.test.d.ts +0 -2
- package/build/@types/ocm/components/clusterDetail/ClusterProperties.test.d.ts.map +0 -1
- package/build/cjs/common/components/clusterWizard/networkingSteps/NetworkTypeControlGroup.js +0 -33
- package/build/cjs/common/components/clusterWizard/networkingSteps/NetworkTypeControlGroup.js.map +0 -1
- package/build/cjs/ocm/components/clusterDetail/AssistedInstallerExtraDetailCard.js +0 -40
- package/build/cjs/ocm/components/clusterDetail/AssistedInstallerExtraDetailCard.js.map +0 -1
- package/build/cjs/ocm/components/clusterDetail/ClusterProperties.js +0 -77
- package/build/cjs/ocm/components/clusterDetail/ClusterProperties.js.map +0 -1
- package/build/cjs/ocm/components/clusterDetail/ClusterProperties.test.js.map +0 -1
- package/lib/common/components/clusterWizard/networkingSteps/NetworkTypeControlGroup.tsx +0 -74
- package/lib/ocm/components/clusterDetail/AssistedInstallerExtraDetailCard.tsx +0 -69
- package/lib/ocm/components/clusterDetail/ClusterProperties.tsx +0 -169
|
@@ -1,59 +1,40 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.configureIngressLoadBalancer = exports.editAgentServiceConfig = exports.createAgentServiceConfig = exports.patchProvisioning = void 0;
|
|
4
|
+
exports.isIngressController = isIngressController;
|
|
4
5
|
const tslib_1 = require("tslib");
|
|
5
6
|
const dynamic_plugin_sdk_1 = require("@openshift-console/dynamic-plugin-sdk");
|
|
6
|
-
const react_core_1 = require("@patternfly/react-core");
|
|
7
7
|
const utils_1 = require("../../../../common/utils");
|
|
8
8
|
const types_1 = require("../../../types");
|
|
9
|
-
const utils_2 = require("
|
|
10
|
-
const utils_3 = require("../../../utils");
|
|
9
|
+
const utils_2 = require("../../../utils");
|
|
11
10
|
const ASSISTED_IMAGE_SERVICE_ROUTE_PREFIX = 'assisted-image-service-multicluster-engine';
|
|
12
|
-
|
|
13
|
-
// Find assisted-image-service's one and parse domain from there.
|
|
14
|
-
const getAssistedImageServiceRoute = (t, setError) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
11
|
+
const getAssistedImageServiceRoute = (t) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
15
12
|
var _a;
|
|
16
13
|
let allRoutes = [];
|
|
17
14
|
try {
|
|
18
15
|
allRoutes = yield (0, dynamic_plugin_sdk_1.k8sListItems)({ model: types_1.RouteModel, queryParams: {} });
|
|
19
16
|
}
|
|
20
17
|
catch (e) {
|
|
21
|
-
|
|
22
|
-
setError({
|
|
23
|
-
title: t('ai:Failed to save configuration'),
|
|
24
|
-
message: t('ai:Can not query routes.'),
|
|
25
|
-
});
|
|
26
|
-
return undefined;
|
|
18
|
+
throw new Error(`${t('ai:Failed to save configuration')}: ${(0, utils_1.getErrorMessage)(e)}`);
|
|
27
19
|
}
|
|
28
20
|
const assistedImageServiceRoute = allRoutes === null || allRoutes === void 0 ? void 0 : allRoutes.find((r) => { var _a; return ((_a = r.metadata) === null || _a === void 0 ? void 0 : _a.name) === 'assisted-image-service'; });
|
|
29
21
|
if (!((_a = assistedImageServiceRoute === null || assistedImageServiceRoute === void 0 ? void 0 : assistedImageServiceRoute.spec) === null || _a === void 0 ? void 0 : _a.host)) {
|
|
30
|
-
|
|
31
|
-
title: t('ai:Failed to save configuration'),
|
|
32
|
-
message: t('ai:Can not find host of the assisted-image-service route'),
|
|
33
|
-
});
|
|
34
|
-
return undefined;
|
|
22
|
+
throw new Error(`${t('ai:Failed to save configuration')}: ${t('ai:Can not find host of the assisted-image-service route')}`);
|
|
35
23
|
}
|
|
36
24
|
return assistedImageServiceRoute;
|
|
37
25
|
});
|
|
38
|
-
|
|
39
|
-
const getClusterDomain = (t, setError, assistedImageServiceRoute) => {
|
|
26
|
+
const getClusterDomain = (t, assistedImageServiceRoute) => {
|
|
40
27
|
var _a;
|
|
41
28
|
const prefix = `${ASSISTED_IMAGE_SERVICE_ROUTE_PREFIX}.`;
|
|
42
29
|
const host = ((_a = assistedImageServiceRoute.spec) === null || _a === void 0 ? void 0 : _a.host) || '';
|
|
43
30
|
const appsDomain = host.substring(host.indexOf(prefix) + prefix.length);
|
|
44
|
-
// the appsDomain can be prefixed either by "apps." or "nlb-apps." so search for first dot
|
|
45
31
|
const domain = appsDomain.substring(appsDomain.indexOf('.') + 1);
|
|
46
32
|
if (!domain) {
|
|
47
|
-
|
|
48
|
-
// console.error('Can not find domain in assistedImageServiceRoute: ', assistedImageServiceRoute);
|
|
49
|
-
setError({
|
|
50
|
-
title: t('ai:Can not find cluster domain.'),
|
|
51
|
-
});
|
|
33
|
+
throw new Error(t('ai:Can not find cluster domain.'));
|
|
52
34
|
}
|
|
53
35
|
return domain;
|
|
54
36
|
};
|
|
55
|
-
|
|
56
|
-
const patchAssistedImageServiceRoute = (t, setError, assistedImageServiceRoute, domain) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
37
|
+
const patchAssistedImageServiceRoute = (t, assistedImageServiceRoute, domain) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
57
38
|
var _a, _b;
|
|
58
39
|
const newHost = `${ASSISTED_IMAGE_SERVICE_ROUTE_PREFIX}.nlb-apps.${domain}`;
|
|
59
40
|
const labels = ((_a = assistedImageServiceRoute.metadata) === null || _a === void 0 ? void 0 : _a.labels) || {};
|
|
@@ -78,30 +59,25 @@ const patchAssistedImageServiceRoute = (t, setError, assistedImageServiceRoute,
|
|
|
78
59
|
});
|
|
79
60
|
}
|
|
80
61
|
catch (e) {
|
|
81
|
-
|
|
82
|
-
setError({
|
|
83
|
-
title: t('ai:Failed to patch assisted-image-service route for new domain.'),
|
|
84
|
-
});
|
|
85
|
-
return false;
|
|
62
|
+
throw new Error(`${t('ai:Failed to patch assisted-image-service route for new domain.')}: ${(0, utils_1.getErrorMessage)(e)}`);
|
|
86
63
|
}
|
|
87
|
-
return true;
|
|
88
64
|
});
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
65
|
+
function isIngressController() {
|
|
66
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
67
|
+
try {
|
|
68
|
+
yield (0, dynamic_plugin_sdk_1.k8sGet)({
|
|
69
|
+
name: 'ingress-controller-with-nlb',
|
|
70
|
+
ns: 'openshift-ingress-operator',
|
|
71
|
+
model: types_1.IngressControllerModel,
|
|
72
|
+
});
|
|
73
|
+
return true;
|
|
74
|
+
}
|
|
75
|
+
catch (_a) {
|
|
76
|
+
return false;
|
|
77
|
+
}
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
const createIngressController = (t, domain) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
105
81
|
const ingressController = {
|
|
106
82
|
apiVersion: 'operator.openshift.io/v1',
|
|
107
83
|
kind: 'IngressController',
|
|
@@ -132,46 +108,35 @@ const createIngressController = (t, setError, domain) => tslib_1.__awaiter(void
|
|
|
132
108
|
};
|
|
133
109
|
try {
|
|
134
110
|
yield (0, dynamic_plugin_sdk_1.k8sCreate)({ model: types_1.IngressControllerModel, data: ingressController });
|
|
135
|
-
return true;
|
|
136
111
|
}
|
|
137
112
|
catch (e) {
|
|
138
|
-
|
|
139
|
-
setError({
|
|
140
|
-
title: t('ai:Failed to create IngressController'),
|
|
141
|
-
});
|
|
113
|
+
throw new Error(`${t('ai:Failed to create IngressController')}: ${(0, utils_1.getErrorMessage)(e)}`);
|
|
142
114
|
}
|
|
143
|
-
return false;
|
|
144
115
|
});
|
|
145
|
-
const
|
|
146
|
-
var _b;
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
{
|
|
154
|
-
op: ((_b = provisioning.spec) === null || _b === void 0 ? void 0 : _b.watchAllNamespaces) ? 'replace' : 'add',
|
|
155
|
-
path: '/spec/watchAllNamespaces',
|
|
156
|
-
value: true,
|
|
157
|
-
},
|
|
158
|
-
];
|
|
159
|
-
yield (0, dynamic_plugin_sdk_1.k8sPatch)({
|
|
160
|
-
model: types_1.ProvisioningModel,
|
|
161
|
-
resource: provisioning,
|
|
162
|
-
data: patches,
|
|
163
|
-
});
|
|
164
|
-
}
|
|
165
|
-
catch (e) {
|
|
166
|
-
// console.error('Failed to patch provisioning-configuration: ', e);
|
|
167
|
-
setError({
|
|
168
|
-
title: t('ai:Failed to configure provisioning to enable registering hosts via BMC.'),
|
|
169
|
-
message: (0, utils_1.getErrorMessage)(e),
|
|
170
|
-
variant: react_core_1.AlertVariant.warning,
|
|
171
|
-
});
|
|
116
|
+
const patchProvisioning = () => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
117
|
+
var _a, _b;
|
|
118
|
+
const provisioning = yield (0, dynamic_plugin_sdk_1.k8sGet)({
|
|
119
|
+
model: types_1.ProvisioningModel,
|
|
120
|
+
name: 'provisioning-configuration',
|
|
121
|
+
});
|
|
122
|
+
if ((_a = provisioning.spec) === null || _a === void 0 ? void 0 : _a.watchAllNamespaces) {
|
|
123
|
+
return;
|
|
172
124
|
}
|
|
125
|
+
const patches = [
|
|
126
|
+
{
|
|
127
|
+
op: ((_b = provisioning.spec) === null || _b === void 0 ? void 0 : _b.watchAllNamespaces) === false ? 'replace' : 'add',
|
|
128
|
+
path: '/spec/watchAllNamespaces',
|
|
129
|
+
value: true,
|
|
130
|
+
},
|
|
131
|
+
];
|
|
132
|
+
yield (0, dynamic_plugin_sdk_1.k8sPatch)({
|
|
133
|
+
model: types_1.ProvisioningModel,
|
|
134
|
+
resource: provisioning,
|
|
135
|
+
data: patches,
|
|
136
|
+
});
|
|
173
137
|
});
|
|
174
|
-
|
|
138
|
+
exports.patchProvisioning = patchProvisioning;
|
|
139
|
+
const createAgentServiceConfig = (_a) => tslib_1.__awaiter(void 0, [_a], void 0, function* ({ t, values, }) {
|
|
175
140
|
try {
|
|
176
141
|
const agentServiceConfig = {
|
|
177
142
|
apiVersion: 'agent-install.openshift.io/v1beta1',
|
|
@@ -185,7 +150,7 @@ const createAgentServiceConfig = (_a) => tslib_1.__awaiter(void 0, [_a], void 0,
|
|
|
185
150
|
accessModes: ['ReadWriteOnce'],
|
|
186
151
|
resources: {
|
|
187
152
|
requests: {
|
|
188
|
-
storage: `${
|
|
153
|
+
storage: `${values.dbVolSize}Gi`,
|
|
189
154
|
},
|
|
190
155
|
},
|
|
191
156
|
},
|
|
@@ -193,7 +158,7 @@ const createAgentServiceConfig = (_a) => tslib_1.__awaiter(void 0, [_a], void 0,
|
|
|
193
158
|
accessModes: ['ReadWriteOnce'],
|
|
194
159
|
resources: {
|
|
195
160
|
requests: {
|
|
196
|
-
storage: `${
|
|
161
|
+
storage: `${values.fsVolSize}Gi`,
|
|
197
162
|
},
|
|
198
163
|
},
|
|
199
164
|
},
|
|
@@ -201,73 +166,68 @@ const createAgentServiceConfig = (_a) => tslib_1.__awaiter(void 0, [_a], void 0,
|
|
|
201
166
|
accessModes: ['ReadWriteOnce'],
|
|
202
167
|
resources: {
|
|
203
168
|
requests: {
|
|
204
|
-
storage: `${
|
|
169
|
+
storage: `${values.imgVolSize}Gi`,
|
|
205
170
|
},
|
|
206
171
|
},
|
|
207
172
|
},
|
|
208
173
|
},
|
|
209
174
|
};
|
|
210
|
-
if (ciscoIntersightURL) {
|
|
211
|
-
agentServiceConfig.metadata = Object.assign(Object.assign({}, agentServiceConfig.metadata), { annotations: { ciscoIntersightURL } });
|
|
175
|
+
if (values.ciscoIntersightURL) {
|
|
176
|
+
agentServiceConfig.metadata = Object.assign(Object.assign({}, agentServiceConfig.metadata), { annotations: { ciscoIntersightURL: values.ciscoIntersightURL } });
|
|
212
177
|
}
|
|
213
178
|
yield (0, dynamic_plugin_sdk_1.k8sCreate)({
|
|
214
179
|
model: types_1.AgentServiceConfigModel,
|
|
215
180
|
data: agentServiceConfig,
|
|
216
181
|
});
|
|
217
|
-
return true;
|
|
218
182
|
}
|
|
219
183
|
catch (e) {
|
|
220
|
-
|
|
221
|
-
title: t('ai:Failed to create AgentServiceConfig'),
|
|
222
|
-
message: (0, utils_1.getErrorMessage)(e),
|
|
223
|
-
});
|
|
224
|
-
return false;
|
|
184
|
+
throw new Error(`${t('ai:Failed to create AgentServiceConfig')}: ${(0, utils_1.getErrorMessage)(e)}`);
|
|
225
185
|
}
|
|
226
186
|
});
|
|
227
|
-
|
|
228
|
-
const
|
|
229
|
-
var _b, _c;
|
|
230
|
-
|
|
231
|
-
|
|
187
|
+
exports.createAgentServiceConfig = createAgentServiceConfig;
|
|
188
|
+
const editAgentServiceConfig = (_a) => tslib_1.__awaiter(void 0, [_a], void 0, function* ({ t, agentServiceConfig, values, }) {
|
|
189
|
+
var _b, _c, _d, _e, _f;
|
|
190
|
+
const patches = [];
|
|
191
|
+
if (((_c = (_b = agentServiceConfig.metadata) === null || _b === void 0 ? void 0 : _b.annotations) === null || _c === void 0 ? void 0 : _c['ciscoIntersightURL']) &&
|
|
192
|
+
!values.ciscoIntersightURL) {
|
|
193
|
+
patches.push({
|
|
194
|
+
op: 'remove',
|
|
195
|
+
path: '/metadata/annotations/ciscoIntersightURL',
|
|
196
|
+
});
|
|
232
197
|
}
|
|
233
|
-
if (!agentServiceConfig) {
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
imgVolSizeGiB,
|
|
240
|
-
ciscoIntersightURL,
|
|
241
|
-
}))) {
|
|
242
|
-
return false;
|
|
243
|
-
}
|
|
198
|
+
else if (!((_d = agentServiceConfig.metadata) === null || _d === void 0 ? void 0 : _d.annotations) && values.ciscoIntersightURL) {
|
|
199
|
+
patches.push({
|
|
200
|
+
op: 'add',
|
|
201
|
+
path: '/metadata/annotations',
|
|
202
|
+
value: { ciscoIntersightURL: values.ciscoIntersightURL },
|
|
203
|
+
});
|
|
244
204
|
}
|
|
245
|
-
else {
|
|
246
|
-
|
|
247
|
-
(0, utils_3.appendPatch)(patches, '/metadata/annotations/ciscoIntersightURL', ciscoIntersightURL, (_c = (_b = agentServiceConfig.metadata) === null || _b === void 0 ? void 0 : _b.annotations) === null || _c === void 0 ? void 0 : _c['ciscoIntersightURL']);
|
|
248
|
-
yield (0, dynamic_plugin_sdk_1.k8sPatch)({ model: types_1.AgentServiceConfigModel, resource: agentServiceConfig, data: patches });
|
|
205
|
+
else if (values.ciscoIntersightURL) {
|
|
206
|
+
(0, utils_2.appendPatch)(patches, '/metadata/annotations/ciscoIntersightURL', values.ciscoIntersightURL, (_f = (_e = agentServiceConfig.metadata) === null || _e === void 0 ? void 0 : _e.annotations) === null || _f === void 0 ? void 0 : _f['ciscoIntersightURL']);
|
|
249
207
|
}
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
return false;
|
|
260
|
-
}
|
|
261
|
-
const domain = getClusterDomain(t, setError, assistedImageServiceRoute);
|
|
262
|
-
if (!domain) {
|
|
263
|
-
return false;
|
|
264
|
-
}
|
|
265
|
-
if (!(yield createIngressController(t, setError, domain)) ||
|
|
266
|
-
!(yield patchAssistedImageServiceRoute(t, setError, assistedImageServiceRoute, domain))) {
|
|
267
|
-
return false;
|
|
268
|
-
}
|
|
208
|
+
if (patches.length === 0) {
|
|
209
|
+
return;
|
|
210
|
+
}
|
|
211
|
+
try {
|
|
212
|
+
yield (0, dynamic_plugin_sdk_1.k8sPatch)({
|
|
213
|
+
model: types_1.AgentServiceConfigModel,
|
|
214
|
+
resource: agentServiceConfig,
|
|
215
|
+
data: patches,
|
|
216
|
+
});
|
|
269
217
|
}
|
|
270
|
-
|
|
218
|
+
catch (e) {
|
|
219
|
+
throw new Error(`${t('ai:Failed to save configuration')}: ${(0, utils_1.getErrorMessage)(e)}`);
|
|
220
|
+
}
|
|
221
|
+
});
|
|
222
|
+
exports.editAgentServiceConfig = editAgentServiceConfig;
|
|
223
|
+
const configureIngressLoadBalancer = (_a) => tslib_1.__awaiter(void 0, [_a], void 0, function* ({ t }) {
|
|
224
|
+
if (yield isIngressController()) {
|
|
225
|
+
return;
|
|
226
|
+
}
|
|
227
|
+
const assistedImageServiceRoute = yield getAssistedImageServiceRoute(t);
|
|
228
|
+
const domain = getClusterDomain(t, assistedImageServiceRoute);
|
|
229
|
+
yield createIngressController(t, domain);
|
|
230
|
+
yield patchAssistedImageServiceRoute(t, assistedImageServiceRoute, domain);
|
|
271
231
|
});
|
|
272
|
-
exports.
|
|
232
|
+
exports.configureIngressLoadBalancer = configureIngressLoadBalancer;
|
|
273
233
|
//# sourceMappingURL=persist.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"persist.js","sourceRoot":"","sources":["../../../../../../lib/cim/components/modals/CimConfiguration/persist.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"persist.js","sourceRoot":"","sources":["../../../../../../lib/cim/components/modals/CimConfiguration/persist.ts"],"names":[],"mappings":";;;AAmGA,kDAWC;;AA9GD,8EAO+C;AAE/C,oDAA2D;AAE3D,0CAOwB;AACxB,0CAA6C;AAG7C,MAAM,mCAAmC,GAAG,4CAA4C,CAAC;AAEzF,MAAM,4BAA4B,GAAG,CAAO,CAAY,EAA6B,EAAE;;I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kBAAkB,EACzB,MAAA,MAAA,kBAAkB,CAAC,QAAQ,0CAAE,WAAW,0CAAG,oBAAoB,CAAC,CACjE,CAAC;IACJ,CAAC;IAED,IAAI,OAAO,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACzB,OAAO;IACT,CAAC;IAED,IAAI,CAAC;QACH,MAAM,IAAA,6BAAQ,EAAC;YACb,KAAK,EAAE,+BAAuB;YAC9B,QAAQ,EAAE,kBAAkB;YAC5B,IAAI,EAAE,OAAO;SACd,CAAC,CAAC;IACL,CAAC;IAAC,OAAO,CAAC,EAAE,CAAC;QACX,MAAM,IAAI,KAAK,CAAC,GAAG,CAAC,CAAC,iCAAiC,CAAC,KAAK,IAAA,uBAAe,EAAC,CAAC,CAAC,EAAE,CAAC,CAAC;IACpF,CAAC;AACH,CAAC,CAAA,CAAC;AA/CW,QAAA,sBAAsB,0BA+CjC;AAEK,MAAM,4BAA4B,GAAG,KAAgC,EAAE,oDAA3B,EAAE,CAAC,EAAoB;IACxE,IAAI,MAAM,mBAAmB,EAAE,EAAE,CAAC;QAChC,OAAO;IACT,CAAC;IAED,MAAM,yBAAyB,GAAG,MAAM,4BAA4B,CAAC,CAAC,CAAC,CAAC;IACxE,MAAM,MAAM,GAAG,gBAAgB,CAAC,CAAC,EAAE,yBAAyB,CAAC,CAAC;IAC9D,MAAM,uBAAuB,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC;IACzC,MAAM,8BAA8B,CAAC,CAAC,EAAE,yBAAyB,EAAE,MAAM,CAAC,CAAC;AAC7E,CAAC,CAAA,CAAC;AATW,QAAA,4BAA4B,gCASvC"}
|
|
@@ -4,4 +4,5 @@ const tslib_1 = require("tslib");
|
|
|
4
4
|
tslib_1.__exportStar(require("./useConfigMaps"), exports);
|
|
5
5
|
tslib_1.__exportStar(require("./useAgentServiceConfig"), exports);
|
|
6
6
|
tslib_1.__exportStar(require("./useEvents"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./useAgents"), exports);
|
|
7
8
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../lib/cim/hooks/index.tsx"],"names":[],"mappings":";;;AAAA,0DAAgC;AAChC,kEAAwC;AACxC,sDAA4B"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../lib/cim/hooks/index.tsx"],"names":[],"mappings":";;;AAAA,0DAAgC;AAChC,kEAAwC;AACxC,sDAA4B;AAC5B,sDAA4B"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.useAgents = void 0;
|
|
4
|
+
const useK8sWatchResource_1 = require("./useK8sWatchResource");
|
|
5
|
+
const useAgents = (props) => (0, useK8sWatchResource_1.useK8sWatchResource)({
|
|
6
|
+
groupVersionKind: {
|
|
7
|
+
group: 'agent-install.openshift.io',
|
|
8
|
+
kind: 'Agent',
|
|
9
|
+
version: 'v1beta1',
|
|
10
|
+
},
|
|
11
|
+
}, props);
|
|
12
|
+
exports.useAgents = useAgents;
|
|
13
|
+
//# sourceMappingURL=useAgents.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useAgents.js","sourceRoot":"","sources":["../../../../lib/cim/hooks/useAgents.tsx"],"names":[],"mappings":";;;AAAA,+DAA4D;AAIrD,MAAM,SAAS,GAAG,CAAC,KAAwB,EAAE,EAAE,CACpD,IAAA,yCAAmB,EACjB;IACE,gBAAgB,EAAE;QAChB,KAAK,EAAE,4BAA4B;QACnC,IAAI,EAAE,OAAO;QACb,OAAO,EAAE,SAAS;KACnB;CACF,EACD,KAAK,CACN,CAAC;AAVS,QAAA,SAAS,aAUlB"}
|
|
@@ -7,7 +7,6 @@ const react_core_1 = require("@patternfly/react-core");
|
|
|
7
7
|
const uiState_1 = require("../../components/ui/uiState");
|
|
8
8
|
const DetailList_1 = require("../../components/ui/DetailList");
|
|
9
9
|
const ConsoleModal_1 = require("./ConsoleModal");
|
|
10
|
-
const external_link_alt_icon_1 = require("@patternfly/react-icons/dist/js/icons/external-link-alt-icon");
|
|
11
10
|
const use_translation_wrapper_1 = require("../../hooks/use-translation-wrapper");
|
|
12
11
|
const getConsoleUrl = (consoleUrl, isMceOperatorEnabled) => {
|
|
13
12
|
if (isMceOperatorEnabled) {
|
|
@@ -19,6 +18,7 @@ const getConsoleUrl = (consoleUrl, isMceOperatorEnabled) => {
|
|
|
19
18
|
};
|
|
20
19
|
exports.getConsoleUrl = getConsoleUrl;
|
|
21
20
|
const ClusterCredentials = ({ cluster, credentials, error = false, retry, idPrefix = 'cluster-creds', credentialsError = '', notAvailable = false, isMceEnabled = false, }) => {
|
|
21
|
+
var _a, _b;
|
|
22
22
|
let credentialsBody;
|
|
23
23
|
const { t } = (0, use_translation_wrapper_1.useTranslation)();
|
|
24
24
|
if (error) {
|
|
@@ -43,14 +43,15 @@ const ClusterCredentials = ({ cluster, credentials, error = false, retry, idPref
|
|
|
43
43
|
const consoleUrl = credentials.consoleUrl
|
|
44
44
|
? (0, exports.getConsoleUrl)(credentials.consoleUrl, isMceEnabled)
|
|
45
45
|
: '';
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
46
|
+
const hasVips = Boolean(((_a = cluster.apiVips) === null || _a === void 0 ? void 0 : _a.length) && ((_b = cluster.ingressVips) === null || _b === void 0 ? void 0 : _b.length));
|
|
47
|
+
credentialsBody = (react_1.default.createElement(react_1.default.Fragment, null,
|
|
48
|
+
react_1.default.createElement(DetailList_1.DetailList, null,
|
|
49
|
+
credentials.consoleUrl && (react_1.default.createElement(DetailList_1.DetailItem, { title: t('ai:Web Console URL'), value: react_1.default.createElement(react_1.default.Fragment, null,
|
|
50
|
+
react_1.default.createElement(react_core_1.ClipboardCopy, { isReadOnly: true, className: "pf-v6-u-my-sm", "data-testid": `${idPrefix}-link-console-url` }, consoleUrl),
|
|
51
|
+
hasVips && (react_1.default.createElement(ConsoleModal_1.TroubleshootingOpenshiftConsoleButton, { consoleUrl: consoleUrl, cluster: cluster, idPrefix: idPrefix }))) })),
|
|
52
|
+
credentials.username && (react_1.default.createElement(react_1.default.Fragment, null,
|
|
53
|
+
react_1.default.createElement(DetailList_1.DetailItem, { title: t('ai:Username'), value: react_1.default.createElement(react_core_1.ClipboardCopy, { isReadOnly: true, className: "pf-v6-u-my-sm" }, credentials.username) }),
|
|
54
|
+
react_1.default.createElement(DetailList_1.DetailItem, { title: t('ai:Password'), value: react_1.default.createElement(react_core_1.ClipboardCopy, { isReadOnly: true, className: "pf-v6-u-my-sm", onCopy: (event) => (0, react_core_1.clipboardCopyFunc)(event, credentials.password) }, "\u2022\u2022\u2022\u2022\u2022") }))))));
|
|
54
55
|
}
|
|
55
56
|
return react_1.default.createElement(react_core_1.GridItem, { span: 12 }, credentialsBody);
|
|
56
57
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ClusterCredentials.js","sourceRoot":"","sources":["../../../../../lib/common/components/clusterDetail/ClusterCredentials.tsx"],"names":[],"mappings":";;;;AAAA,0DAA0B;AAC1B,
|
|
1
|
+
{"version":3,"file":"ClusterCredentials.js","sourceRoot":"","sources":["../../../../../lib/common/components/clusterDetail/ClusterCredentials.tsx"],"names":[],"mappings":";;;;AAAA,0DAA0B;AAC1B,uDAA2F;AAE3F,yDAAuE;AACvE,+DAAwE;AACxE,iDAAuE;AACvE,iFAAqE;AAa9D,MAAM,aAAa,GAAG,CAAC,UAAkB,EAAE,oBAA6B,EAAE,EAAE;IACjF,IAAI,oBAAoB,EAAE,CAAC;QACzB,OAAO,UAAU,CAAC,MAAM,CAAC,qCAAqC,CAAC,CAAC;IAClE,CAAC;SAAM,CAAC;QACN,OAAO,UAAU,CAAC;IACpB,CAAC;AACH,CAAC,CAAC;AANW,QAAA,aAAa,iBAMxB;AAEF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ports, "__esModule", { value: true });
|
|
3
|
-
exports.ConsoleModal = exports.TroubleshootingOpenshiftConsoleButton = exports.
|
|
3
|
+
exports.ConsoleModal = exports.TroubleshootingOpenshiftConsoleButton = exports.WebConsoleHint = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const react_1 = tslib_1.__importDefault(require("react"));
|
|
6
6
|
const react_core_1 = require("@patternfly/react-core");
|
|
7
7
|
const info_circle_icon_1 = require("@patternfly/react-icons/dist/js/icons/info-circle-icon");
|
|
8
8
|
const api_1 = require("../../api");
|
|
9
|
-
const Toolbar_1 = require("../ui/Toolbar");
|
|
10
9
|
const PrismCode_1 = tslib_1.__importDefault(require("../ui/PrismCode"));
|
|
11
10
|
const use_translation_wrapper_1 = require("../../hooks/use-translation-wrapper");
|
|
12
11
|
const selectors_1 = require("../../selectors");
|
|
@@ -46,14 +45,6 @@ const WebConsoleHint = ({ cluster, consoleUrl }) => {
|
|
|
46
45
|
react_1.default.createElement(ModalExpandableSection, { toggleText: t('ai:Option 2: Update your local /etc/hosts or /etc/resolv.conf files'), className: "pf-v6-u-pb-md", isExpanded: !isDNSExpanded, onToggle: handleToggle, requiredList: etcHosts })));
|
|
47
46
|
};
|
|
48
47
|
exports.WebConsoleHint = WebConsoleHint;
|
|
49
|
-
const LaunchOpenshiftConsoleButton = ({ cluster, consoleUrl, isDisabled, id, }) => {
|
|
50
|
-
const [isOpen, setOpen] = react_1.default.useState(false);
|
|
51
|
-
const { t } = (0, use_translation_wrapper_1.useTranslation)();
|
|
52
|
-
return (react_1.default.createElement(react_1.default.Fragment, null,
|
|
53
|
-
react_1.default.createElement(Toolbar_1.ToolbarButton, { type: "button", variant: react_core_1.ButtonVariant.primary, isDisabled: isDisabled, onClick: () => setOpen(true), "data-testid": id }, t('ai:Launch OpenShift Console')),
|
|
54
|
-
react_1.default.createElement(exports.ConsoleModal, { closeModal: () => setOpen(false), consoleUrl: consoleUrl, cluster: cluster, isOpen: isOpen })));
|
|
55
|
-
};
|
|
56
|
-
exports.LaunchOpenshiftConsoleButton = LaunchOpenshiftConsoleButton;
|
|
57
48
|
const TroubleshootingOpenshiftConsoleButton = ({ cluster, consoleUrl, idPrefix, }) => {
|
|
58
49
|
const [isOpen, setOpen] = react_1.default.useState(false);
|
|
59
50
|
const { t } = (0, use_translation_wrapper_1.useTranslation)();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConsoleModal.js","sourceRoot":"","sources":["../../../../../lib/common/components/clusterDetail/ConsoleModal.tsx"],"names":[],"mappings":";;;;AAAA,0DAA0B;AAC1B,uDAUgC;AAChC,6FAAwF;AACxF,mCAAkD;AAClD,
|
|
1
|
+
{"version":3,"file":"ConsoleModal.js","sourceRoot":"","sources":["../../../../../lib/common/components/clusterDetail/ConsoleModal.tsx"],"names":[],"mappings":";;;;AAAA,0DAA0B;AAC1B,uDAUgC;AAChC,6FAAwF;AACxF,mCAAkD;AAClD,wEAAwC;AACxC,iFAAqE;AACrE,+CAAiE;AAsBjE,MAAM,qBAAqB,GAAG,CAAC,aAAuB,EAAU,EAAE,CAChE,aAAa,IAAI,aAAa,CAAC,MAAM,GAAG,CAAC;IACvC,CAAC,CAAC,CAAC,GAAG,aAAa,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,IAAI,EAAE,EAAE,CAAC,GAAG,IAAI,KAAK,IAAI,EAAE,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;IAC1F,CAAC,CAAC,EAAE,CAAC;AAET,MAAM,sBAAsB,GAA0C,CAAC,KAAK,EAAE,EAAE;IAC9E,MAAM,EAAE,YAAY,KAAoB,KAAK,EAApB,UAAU,kBAAK,KAAK,EAAvC,gBAA+B,CAAQ,CAAC;IAC9C,OAAO,CACL,8BAAC,8BAAiB,oBAAK,UAAU;QAC/B,8BAAC,mBAAS,IAAC,IAAI,EAAE,qBAAqB,CAAC,YAAY,CAAC,EAAE,QAAQ,EAAC,QA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AAC;AACJ,CAAC,CAAC;AA3BW,QAAA,qCAAqC,yCA2BhD;AAEK,MAAM,YAAY,GAAgC,CAAC,EACxD,UAAU,EACV,OAAO,EACP,UAAU,EACV,MAAM,GACP,EAAE,EAAE;IACH,MAAM,EAAE,CAAC,EAAE,GAAG,IAAA,wCAAc,GAAE,CAAC;IAC/B,MAAM,OAAO,GAAG;QACd,8BAAC,mBAAM,IACL,IAAI,EAAC,QAAQ,EACb,GAAG,EAAC,QAAQ,EACZ,OAAO,EAAE,0BAAa,CAAC,OAAO,EAC9B,OAAO,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,UAAU,EAAE,QAAQ,EAAE,UAAU,CAAC,EAC5D,UAAU,EAAE,CAAC,UAAU,IAEtB,CAAC,CAAC,6BAA6B,CAAC,CAC1B;QACT,8BAAC,mBAAM,IAAC,OAAO,EAAE,0BAAa,CAAC,SAAS,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,UAAU,EAAE,EAAE,GAAG,EAAC,OAAO,IAC/E,CAAC,CAAC,UAAU,CAAC,CACP;KACV,CAAC;IACF,OAAO,CACL,8BAAC,kBAAK,IAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,yBAAY,CAAC,KAAK;QACrE,8BAAC,wBAAW,IAAC,KAAK,EAAE,CAAC,CAAC,0CAA0C,CAAC,GAAI;QACrE,8BAAC,sBAAS;YACR,8BAAC,sBAAc,IAAC,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,UAAU,GAAI,CAClD;QACZ,8BAAC,wBAAW,QAAE,OAAO,CAAe,CAC9B,CACT,CAAC;AACJ,CAAC,CAAC;AA9BW,QAAA,YAAY,gBA8BvB"}
|
|
@@ -27,27 +27,42 @@ const parseTangServers = (tangServersString) => {
|
|
|
27
27
|
return emptyTangServers();
|
|
28
28
|
};
|
|
29
29
|
exports.parseTangServers = parseTangServers;
|
|
30
|
+
const parseDiskEncryption = (diskEncryption) => {
|
|
31
|
+
var _a;
|
|
32
|
+
const enableOn = {
|
|
33
|
+
enableDiskEncryptionOnMasters: false,
|
|
34
|
+
enableDiskEncryptionOnWorkers: false,
|
|
35
|
+
enableDiskEncryptionOnArbiters: false,
|
|
36
|
+
};
|
|
37
|
+
if ((diskEncryption === null || diskEncryption === void 0 ? void 0 : diskEncryption.enableOn) === 'all') {
|
|
38
|
+
enableOn.enableDiskEncryptionOnMasters = true;
|
|
39
|
+
enableOn.enableDiskEncryptionOnWorkers = true;
|
|
40
|
+
enableOn.enableDiskEncryptionOnArbiters = true;
|
|
41
|
+
}
|
|
42
|
+
else {
|
|
43
|
+
const types = (_a = diskEncryption === null || diskEncryption === void 0 ? void 0 : diskEncryption.enableOn) === null || _a === void 0 ? void 0 : _a.split(',');
|
|
44
|
+
types === null || types === void 0 ? void 0 : types.forEach((type) => {
|
|
45
|
+
switch (type) {
|
|
46
|
+
case 'masters':
|
|
47
|
+
enableOn.enableDiskEncryptionOnMasters = true;
|
|
48
|
+
break;
|
|
49
|
+
case 'workers':
|
|
50
|
+
enableOn.enableDiskEncryptionOnWorkers = true;
|
|
51
|
+
break;
|
|
52
|
+
case 'arbiters':
|
|
53
|
+
enableOn.enableDiskEncryptionOnArbiters = true;
|
|
54
|
+
break;
|
|
55
|
+
}
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
return enableOn;
|
|
59
|
+
};
|
|
30
60
|
const getClusterDetailsInitialValues = ({ cluster, pullSecret, managedDomains, ocpVersions, baseDomain, }) => {
|
|
31
|
-
var _a, _b, _c, _d, _e
|
|
61
|
+
var _a, _b, _c, _d, _e;
|
|
32
62
|
const { name = '', baseDnsDomain = baseDomain || '', openshiftVersion = (0, ui_1.getDefaultOpenShiftVersion)(ocpVersions), controlPlaneCount = 3, } = cluster || {};
|
|
33
|
-
return {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
pullSecret: pullSecret || '',
|
|
37
|
-
baseDnsDomain,
|
|
38
|
-
controlPlaneCount,
|
|
39
|
-
useRedHatDnsService: !!baseDnsDomain && managedDomains.map((d) => d.domain).includes(baseDnsDomain),
|
|
40
|
-
enableDiskEncryptionOnMasters: ['all', 'masters'].includes((_b = (_a = cluster === null || cluster === void 0 ? void 0 : cluster.diskEncryption) === null || _a === void 0 ? void 0 : _a.enableOn) !== null && _b !== void 0 ? _b : 'none'),
|
|
41
|
-
enableDiskEncryptionOnWorkers: ['all', 'workers'].includes((_d = (_c = cluster === null || cluster === void 0 ? void 0 : cluster.diskEncryption) === null || _c === void 0 ? void 0 : _c.enableOn) !== null && _d !== void 0 ? _d : 'none'),
|
|
42
|
-
diskEncryptionMode: (_f = (_e = cluster === null || cluster === void 0 ? void 0 : cluster.diskEncryption) === null || _e === void 0 ? void 0 : _e.mode) !== null && _f !== void 0 ? _f : 'tpmv2',
|
|
43
|
-
diskEncryptionTangServers: (0, exports.parseTangServers)((_g = cluster === null || cluster === void 0 ? void 0 : cluster.diskEncryption) === null || _g === void 0 ? void 0 : _g.tangServers),
|
|
44
|
-
diskEncryption: (_h = cluster === null || cluster === void 0 ? void 0 : cluster.diskEncryption) !== null && _h !== void 0 ? _h : {},
|
|
45
|
-
cpuArchitecture: (cluster === null || cluster === void 0 ? void 0 : cluster.cpuArchitecture) || (0, types_1.getDefaultCpuArchitecture)(),
|
|
46
|
-
platform: ((_j = cluster === null || cluster === void 0 ? void 0 : cluster.platform) === null || _j === void 0 ? void 0 : _j.type) || 'baremetal',
|
|
47
|
-
customOpenshiftSelect: null,
|
|
48
|
-
userManagedNetworking: (cluster === null || cluster === void 0 ? void 0 : cluster.userManagedNetworking) || false,
|
|
49
|
-
enableDiskEncryptionOnArbiters: ['all', 'arbiters'].includes((_l = (_k = cluster === null || cluster === void 0 ? void 0 : cluster.diskEncryption) === null || _k === void 0 ? void 0 : _k.enableOn) !== null && _l !== void 0 ? _l : 'none'),
|
|
50
|
-
};
|
|
63
|
+
return Object.assign({ name,
|
|
64
|
+
openshiftVersion, pullSecret: pullSecret || '', baseDnsDomain,
|
|
65
|
+
controlPlaneCount, useRedHatDnsService: !!baseDnsDomain && managedDomains.map((d) => d.domain).includes(baseDnsDomain), cpuArchitecture: (cluster === null || cluster === void 0 ? void 0 : cluster.cpuArchitecture) || (0, types_1.getDefaultCpuArchitecture)(), platform: ((_a = cluster === null || cluster === void 0 ? void 0 : cluster.platform) === null || _a === void 0 ? void 0 : _a.type) || 'baremetal', customOpenshiftSelect: null, userManagedNetworking: (cluster === null || cluster === void 0 ? void 0 : cluster.userManagedNetworking) || false, diskEncryptionMode: (_c = (_b = cluster === null || cluster === void 0 ? void 0 : cluster.diskEncryption) === null || _b === void 0 ? void 0 : _b.mode) !== null && _c !== void 0 ? _c : 'tpmv2', diskEncryptionTangServers: (0, exports.parseTangServers)((_d = cluster === null || cluster === void 0 ? void 0 : cluster.diskEncryption) === null || _d === void 0 ? void 0 : _d.tangServers), diskEncryption: (_e = cluster === null || cluster === void 0 ? void 0 : cluster.diskEncryption) !== null && _e !== void 0 ? _e : {} }, parseDiskEncryption(cluster === null || cluster === void 0 ? void 0 : cluster.diskEncryption));
|
|
51
66
|
};
|
|
52
67
|
exports.getClusterDetailsInitialValues = getClusterDetailsInitialValues;
|
|
53
68
|
const getClusterDetailsValidationSchema = ({ usedClusterNames, pullSecretSet, validateUniqueName, isOcm, t, }) => Yup.lazy((values) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"clusterDetailsValidation.js","sourceRoot":"","sources":["../../../../../lib/common/components/clusterWizard/clusterDetailsValidation.ts"],"names":[],"mappings":";;;;AAAA,iDAA2B;AAO3B,uCAAoF;AAEpF,8BAAmD;AACnD,+DAKiC;AAGjC,MAAM,gBAAgB,GAAG,GAAiB,EAAE;IAC1C,OAAO;QACL;YACE,GAAG,EAAE,EAAE;YACP,UAAU,EAAE,EAAE;SACf;KACF,CAAC;AACJ,CAAC,CAAC;AAEK,MAAM,gBAAgB,GAAG,CAAC,iBAA0B,EAAgB,EAAE;IAC3E,IAAI,CAAC,iBAAiB,EAAE,CAAC;QACvB,OAAO,gBAAgB,EAAE,CAAC;IAC5B,CAAC;IAED,IAAI,CAAC;QACH,OAAO,IAAI,CAAC,KAAK,CAAC,iBAAiB,CAAiB,CAAC;IACvD,CAAC;IAAC,OAAO,CAAC,EAAE,CAAC;QACX,kDAAkD;IACpD,CAAC;IACD,OAAO,gBAAgB,EAAE,CAAC;AAC5B,CAAC,CAAC;AAXW,QAAA,gBAAgB,oBAW3B;AAEK,MAAM,8BAA8B,GAAG,CAAC,EAC7C,OAAO,EACP,UAAU,EACV,cAAc,EACd,WAAW,EACX,UAAU,GAOX,EAAwB,EAAE;;IACzB,MAAM,EACJ,IAAI,GAAG,EAAE,EACT,aAAa,GAAG,UAAU,IAAI,EAAE,EAChC,gBAAgB,GAAG,IAAA,+BAA0B,EAAC,WAAW,CAAC,EAC1D,iBAAiB,GAAG,CAAC,GACtB,GAAG,OAAO,IAAI,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"clusterDetailsValidation.js","sourceRoot":"","sources":["../../../../../lib/common/components/clusterWizard/clusterDetailsValidation.ts"],"names":[],"mappings":";;;;AAAA,iDAA2B;AAO3B,uCAAoF;AAEpF,8BAAmD;AACnD,+DAKiC;AAGjC,MAAM,gBAAgB,GAAG,GAAiB,EAAE;IAC1C,OAAO;QACL;YACE,GAAG,EAAE,EAAE;YACP,UAAU,EAAE,EAAE;SACf;KACF,CAAC;AACJ,CAAC,CAAC;AAEK,MAAM,gBAAgB,GAAG,CAAC,iBAA0B,EAAgB,EAAE;IAC3E,IAAI,CAAC,iBAAiB,EAAE,CAAC;QACvB,OAAO,gBAAgB,EAAE,CAAC;IAC5B,CAAC;IAED,IAAI,CAAC;QACH,OAAO,IAAI,CAAC,KAAK,CAAC,iBAAiB,CAAiB,CAAC;IACvD,CAAC;IAAC,OAAO,CAAC,EAAE,CAAC;QACX,kDAAkD;IACpD,CAAC;IACD,OAAO,gBAAgB,EAAE,CAAC;AAC5B,CAAC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