@openshift-assisted/ui-lib 2.14.1-cim → 2.14.2-cim
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/@types/cim/components/ClusterDeployment/ACMClusterDeploymentDetailsStep.d.ts +2 -3
- package/build/@types/cim/components/ClusterDeployment/ACMClusterDeploymentDetailsStep.d.ts.map +1 -1
- package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentDetailsForm.d.ts +3 -0
- package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentDetailsForm.d.ts.map +1 -1
- package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentDetailsStep.d.ts.map +1 -1
- package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentHostDiscoveryTable.d.ts.map +1 -1
- package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentHostSelectionStep.d.ts.map +1 -1
- package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentHostsDiscovery.d.ts.map +1 -1
- package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentHostsDiscoveryStep.d.ts +1 -1
- package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentHostsDiscoveryStep.d.ts.map +1 -1
- package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentNetworkingStep.d.ts +15 -2
- package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentNetworkingStep.d.ts.map +1 -1
- package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentReviewStep.d.ts +1 -2
- package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentReviewStep.d.ts.map +1 -1
- package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentWizard.d.ts +1 -2
- package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentWizard.d.ts.map +1 -1
- package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentWizardContext.d.ts +8 -7
- package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentWizardContext.d.ts.map +1 -1
- package/build/@types/cim/components/ClusterDeployment/components/ClusterDeploymentHostsSelectionAdvanced.d.ts +17 -0
- package/build/@types/cim/components/ClusterDeployment/components/ClusterDeploymentHostsSelectionAdvanced.d.ts.map +1 -0
- package/build/@types/cim/components/ClusterDeployment/components/ClusterScaleUpAutoHostsSelection.d.ts +8 -0
- package/build/@types/cim/components/ClusterDeployment/components/ClusterScaleUpAutoHostsSelection.d.ts.map +1 -0
- package/build/@types/cim/components/ClusterDeployment/components/ValidationSection.d.ts +16 -0
- package/build/@types/cim/components/ClusterDeployment/components/ValidationSection.d.ts.map +1 -0
- package/build/@types/cim/components/ClusterDeployment/constants.d.ts +2 -0
- package/build/@types/cim/components/ClusterDeployment/constants.d.ts.map +1 -1
- package/build/@types/cim/components/ClusterDeployment/index.d.ts +1 -2
- package/build/@types/cim/components/ClusterDeployment/index.d.ts.map +1 -1
- package/build/@types/cim/components/ClusterDeployment/networkConfigurationValidation.d.ts +1 -11
- package/build/@types/cim/components/ClusterDeployment/networkConfigurationValidation.d.ts.map +1 -1
- package/build/@types/cim/components/ClusterDeployment/types.d.ts +7 -9
- package/build/@types/cim/components/ClusterDeployment/types.d.ts.map +1 -1
- package/build/@types/cim/components/ClusterDeployment/use-networking-formik.d.ts +8 -2
- package/build/@types/cim/components/ClusterDeployment/use-networking-formik.d.ts.map +1 -1
- package/build/@types/cim/components/Hypershift/DetailsPage/HypershiftKubeconfigDownload.d.ts.map +1 -1
- package/build/@types/cim/components/Hypershift/types.d.ts +6 -3
- package/build/@types/cim/components/Hypershift/types.d.ts.map +1 -1
- package/build/@types/cim/components/InfraEnv/InfraEnvAgentTable.d.ts.map +1 -1
- package/build/@types/cim/components/helpers/agents.d.ts +3 -0
- 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/modals/EditAgentModal.d.ts.map +1 -1
- package/build/@types/cim/components/modals/ScaleUpModal.d.ts +3 -0
- package/build/@types/cim/components/modals/ScaleUpModal.d.ts.map +1 -1
- package/build/@types/common/components/clusterWizard/networkingSteps/AvailableSubnetsControl.d.ts.map +1 -1
- package/build/@types/common/components/hosts/EditHostForm.d.ts.map +1 -1
- package/build/@types/common/components/ui/formik/validationSchemas.d.ts.map +1 -1
- package/build/cjs/cim/components/ClusterDeployment/ACMClusterDeploymentDetailsStep.js +9 -7
- package/build/cjs/cim/components/ClusterDeployment/ACMClusterDeploymentDetailsStep.js.map +1 -1
- package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentDetailsForm.js +26 -1
- package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentDetailsForm.js.map +1 -1
- package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentDetailsStep.js +13 -29
- package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentDetailsStep.js.map +1 -1
- package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentHostDiscoveryTable.js +2 -12
- package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentHostDiscoveryTable.js.map +1 -1
- package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentHostSelectionStep.js +50 -26
- package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentHostSelectionStep.js.map +1 -1
- package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentHostsDiscovery.js +3 -3
- package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentHostsDiscovery.js.map +1 -1
- package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentHostsDiscoveryStep.js +39 -21
- package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentHostsDiscoveryStep.js.map +1 -1
- package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentNetworkingStep.js +58 -27
- package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentNetworkingStep.js.map +1 -1
- package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentReviewStep.js +24 -24
- package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentReviewStep.js.map +1 -1
- package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentWizard.js +26 -42
- package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentWizard.js.map +1 -1
- package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentWizardContext.js +12 -8
- package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentWizardContext.js.map +1 -1
- package/build/cjs/cim/components/ClusterDeployment/NetworkConfiguration.js +5 -5
- package/build/cjs/cim/components/ClusterDeployment/NetworkConfiguration.js.map +1 -1
- package/build/cjs/cim/components/ClusterDeployment/components/ClusterDeploymentHostsSelectionAdvanced.js +50 -0
- package/build/cjs/cim/components/ClusterDeployment/components/ClusterDeploymentHostsSelectionAdvanced.js.map +1 -0
- package/build/cjs/cim/components/ClusterDeployment/components/ClusterScaleUpAutoHostsSelection.js +24 -0
- package/build/cjs/cim/components/ClusterDeployment/components/ClusterScaleUpAutoHostsSelection.js.map +1 -0
- package/build/cjs/cim/components/ClusterDeployment/components/ValidationSection.js +17 -0
- package/build/cjs/cim/components/ClusterDeployment/components/ValidationSection.js.map +1 -0
- package/build/cjs/cim/components/ClusterDeployment/constants.js +2 -0
- package/build/cjs/cim/components/ClusterDeployment/constants.js.map +1 -1
- package/build/cjs/cim/components/ClusterDeployment/index.js +2 -5
- package/build/cjs/cim/components/ClusterDeployment/index.js.map +1 -1
- package/build/cjs/cim/components/ClusterDeployment/networkConfigurationValidation.js +1 -14
- package/build/cjs/cim/components/ClusterDeployment/networkConfigurationValidation.js.map +1 -1
- package/build/cjs/cim/components/ClusterDeployment/use-networking-formik.js +2 -2
- package/build/cjs/cim/components/ClusterDeployment/use-networking-formik.js.map +1 -1
- package/build/cjs/cim/components/Hypershift/DetailsPage/HypershiftKubeconfigDownload.js +6 -4
- package/build/cjs/cim/components/Hypershift/DetailsPage/HypershiftKubeconfigDownload.js.map +1 -1
- package/build/cjs/cim/components/InfraEnv/InfraEnvAgentTable.js +2 -12
- package/build/cjs/cim/components/InfraEnv/InfraEnvAgentTable.js.map +1 -1
- package/build/cjs/cim/components/helpers/agents.js +19 -1
- package/build/cjs/cim/components/helpers/agents.js.map +1 -1
- package/build/cjs/cim/components/helpers/toAssisted.js +25 -23
- package/build/cjs/cim/components/helpers/toAssisted.js.map +1 -1
- package/build/cjs/cim/components/modals/EditAgentModal.js +2 -2
- package/build/cjs/cim/components/modals/EditAgentModal.js.map +1 -1
- package/build/cjs/cim/components/modals/ScaleUpModal.js +3 -2
- package/build/cjs/cim/components/modals/ScaleUpModal.js.map +1 -1
- package/build/cjs/common/components/clusterWizard/networkingSteps/AvailableSubnetsControl.js +14 -18
- package/build/cjs/common/components/clusterWizard/networkingSteps/AvailableSubnetsControl.js.map +1 -1
- package/build/cjs/common/components/clusterWizard/networkingSteps/VirtualIPControlGroup.js +4 -4
- package/build/cjs/common/components/clusterWizard/networkingSteps/VirtualIPControlGroup.js.map +1 -1
- package/build/cjs/common/components/hosts/EditHostForm.js +3 -3
- package/build/cjs/common/components/hosts/EditHostForm.js.map +1 -1
- package/build/cjs/common/components/ui/formik/validationSchemas.js +18 -15
- package/build/cjs/common/components/ui/formik/validationSchemas.js.map +1 -1
- package/build/cjs/common/config/constants.js +1 -1
- package/build/cjs/common/config/constants.js.map +1 -1
- package/lib/cim/components/ClusterDeployment/ACMClusterDeploymentDetailsStep.tsx +11 -9
- package/lib/cim/components/ClusterDeployment/ClusterDeploymentDetailsForm.tsx +63 -3
- package/lib/cim/components/ClusterDeployment/ClusterDeploymentDetailsStep.tsx +25 -53
- package/lib/cim/components/ClusterDeployment/ClusterDeploymentHostDiscoveryTable.tsx +7 -16
- package/lib/cim/components/ClusterDeployment/ClusterDeploymentHostSelectionStep.tsx +102 -59
- package/lib/cim/components/ClusterDeployment/ClusterDeploymentHostsDiscovery.tsx +16 -10
- package/lib/cim/components/ClusterDeployment/ClusterDeploymentHostsDiscoveryStep.tsx +84 -48
- package/lib/cim/components/ClusterDeployment/ClusterDeploymentNetworkingStep.tsx +106 -54
- package/lib/cim/components/ClusterDeployment/ClusterDeploymentReviewStep.tsx +96 -85
- package/lib/cim/components/ClusterDeployment/ClusterDeploymentWizard.tsx +109 -119
- package/lib/cim/components/ClusterDeployment/ClusterDeploymentWizardContext.tsx +27 -14
- package/lib/cim/components/ClusterDeployment/NetworkConfiguration.tsx +5 -5
- package/lib/cim/components/ClusterDeployment/components/ClusterDeploymentHostsSelectionAdvanced.tsx +107 -0
- package/lib/cim/components/ClusterDeployment/components/ClusterScaleUpAutoHostsSelection.tsx +49 -0
- package/lib/cim/components/ClusterDeployment/components/ValidationSection.tsx +41 -0
- package/lib/cim/components/ClusterDeployment/constants.ts +3 -1
- package/lib/cim/components/ClusterDeployment/index.ts +1 -3
- package/lib/cim/components/ClusterDeployment/networkConfigurationValidation.ts +1 -26
- package/lib/cim/components/ClusterDeployment/types.ts +7 -10
- package/lib/cim/components/ClusterDeployment/use-networking-formik.ts +3 -3
- package/lib/cim/components/Hypershift/DetailsPage/HypershiftKubeconfigDownload.tsx +4 -2
- package/lib/cim/components/Hypershift/types.ts +6 -3
- package/lib/cim/components/InfraEnv/InfraEnvAgentTable.tsx +7 -16
- package/lib/cim/components/helpers/agents.ts +30 -1
- package/lib/cim/components/helpers/toAssisted.ts +12 -8
- package/lib/cim/components/modals/EditAgentModal.tsx +2 -1
- package/lib/cim/components/modals/ScaleUpModal.tsx +12 -2
- package/lib/common/components/clusterWizard/networkingSteps/AvailableSubnetsControl.tsx +50 -61
- package/lib/common/components/clusterWizard/networkingSteps/VirtualIPControlGroup.tsx +4 -4
- package/lib/common/components/hosts/EditHostForm.tsx +16 -6
- package/lib/common/components/ui/formik/validationSchemas.ts +13 -10
- package/lib/common/config/constants.ts +1 -1
- package/package.json +4 -3
- package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentCreateProgress.d.ts +0 -10
- package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentCreateProgress.d.ts.map +0 -1
- package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentWizardFooter.d.ts +0 -13
- package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentWizardFooter.d.ts.map +0 -1
- package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentWizardNavigation.d.ts +0 -4
- package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentWizardNavigation.d.ts.map +0 -1
- package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentWizardStep.d.ts +0 -7
- package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentWizardStep.d.ts.map +0 -1
- package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentCreateProgress.js +0 -31
- package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentCreateProgress.js.map +0 -1
- package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentWizardFooter.js +0 -50
- package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentWizardFooter.js.map +0 -1
- package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentWizardNavigation.js +0 -35
- package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentWizardNavigation.js.map +0 -1
- package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentWizardStep.js +0 -9
- package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentWizardStep.js.map +0 -1
- package/lib/cim/components/ClusterDeployment/ClusterDeploymentCreateProgress.tsx +0 -79
- package/lib/cim/components/ClusterDeployment/ClusterDeploymentWizardFooter.tsx +0 -128
- package/lib/cim/components/ClusterDeployment/ClusterDeploymentWizardNavigation.tsx +0 -81
- package/lib/cim/components/ClusterDeployment/ClusterDeploymentWizardStep.tsx +0 -13
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { WizardFooter, WizardFooterGenericProps } from '../../../common';
|
|
3
|
-
import { AgentClusterInstallK8sResource } from '../../types/k8s/agent-cluster-install';
|
|
4
|
-
import { AgentK8sResource } from '../../types/k8s/agent';
|
|
5
|
-
type ClusterDeploymentWizardFooterProps = React.ComponentProps<typeof WizardFooter> & WizardFooterGenericProps & {
|
|
6
|
-
agentClusterInstall?: AgentClusterInstallK8sResource;
|
|
7
|
-
agents?: AgentK8sResource[];
|
|
8
|
-
showClusterErrors?: boolean;
|
|
9
|
-
onSyncError?: VoidFunction;
|
|
10
|
-
};
|
|
11
|
-
declare const ClusterDeploymentWizardFooter: React.FC<ClusterDeploymentWizardFooterProps>;
|
|
12
|
-
export default ClusterDeploymentWizardFooter;
|
|
13
|
-
//# sourceMappingURL=ClusterDeploymentWizardFooter.d.ts.map
|
package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentWizardFooter.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ClusterDeploymentWizardFooter.d.ts","sourceRoot":"","sources":["../../../../../lib/cim/components/ClusterDeployment/ClusterDeploymentWizardFooter.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAEL,YAAY,EAEZ,wBAAwB,EAEzB,MAAM,iBAAiB,CAAC;AAMzB,OAAO,EAAE,8BAA8B,EAAE,MAAM,uCAAuC,CAAC;AACvF,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAqCzD,KAAK,kCAAkC,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,YAAY,CAAC,GACjF,wBAAwB,GAAG;IACzB,mBAAmB,CAAC,EAAE,8BAA8B,CAAC;IACrD,MAAM,CAAC,EAAE,gBAAgB,EAAE,CAAC;IAC5B,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,WAAW,CAAC,EAAE,YAAY,CAAC;CAC5B,CAAC;AAEJ,QAAA,MAAM,6BAA6B,EAAE,KAAK,CAAC,EAAE,CAAC,kCAAkC,CAiE/E,CAAC;AAEF,eAAe,6BAA6B,CAAC"}
|
package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentWizardNavigation.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ClusterDeploymentWizardNavigation.d.ts","sourceRoot":"","sources":["../../../../../lib/cim/components/ClusterDeployment/ClusterDeploymentWizardNavigation.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAW1B,QAAA,MAAM,iCAAiC,EAAE,KAAK,CAAC,EAAE,CAAC,EAEjD,CAiEA,CAAC;AAEF,eAAe,iCAAiC,CAAC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
type ClusterDeploymentWizardStepProps = {
|
|
3
|
-
footer: React.ReactNode;
|
|
4
|
-
};
|
|
5
|
-
declare const ClusterDeploymentWizardStep: React.FC<ClusterDeploymentWizardStepProps>;
|
|
6
|
-
export default ClusterDeploymentWizardStep;
|
|
7
|
-
//# sourceMappingURL=ClusterDeploymentWizardStep.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ClusterDeploymentWizardStep.d.ts","sourceRoot":"","sources":["../../../../../lib/cim/components/ClusterDeployment/ClusterDeploymentWizardStep.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,KAAK,gCAAgC,GAAG;IACtC,MAAM,EAAE,KAAK,CAAC,SAAS,CAAC;CACzB,CAAC;AAEF,QAAA,MAAM,2BAA2B,EAAE,KAAK,CAAC,EAAE,CAAC,gCAAgC,CAE3E,CAAC;AAEF,eAAe,2BAA2B,CAAC"}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const tslib_1 = require("tslib");
|
|
4
|
-
const React = tslib_1.__importStar(require("react"));
|
|
5
|
-
const check_circle_icon_1 = require("@patternfly/react-icons/dist/js/icons/check-circle-icon");
|
|
6
|
-
const global_palette_green_500_1 = require("@patternfly/react-tokens/dist/js/global_palette_green_500");
|
|
7
|
-
const react_core_1 = require("@patternfly/react-core");
|
|
8
|
-
const helpers_1 = require("./helpers");
|
|
9
|
-
const use_translation_wrapper_1 = require("../../../common/hooks/use-translation-wrapper");
|
|
10
|
-
const GreenCheckCircleIcon = (props) => (React.createElement(check_circle_icon_1.CheckCircleIcon, Object.assign({}, props, { color: global_palette_green_500_1.global_palette_green_500.value })));
|
|
11
|
-
const ClusterDeploymentCreateProgress = ({ agentClusterInstall, toDetails, toListView, }) => {
|
|
12
|
-
const { t } = (0, use_translation_wrapper_1.useTranslation)();
|
|
13
|
-
return (React.createElement(react_core_1.Bullseye, null,
|
|
14
|
-
React.createElement(react_core_1.EmptyState, null,
|
|
15
|
-
(0, helpers_1.isInstallationReady)(agentClusterInstall) ? (React.createElement(React.Fragment, null,
|
|
16
|
-
React.createElement(react_core_1.EmptyStateIcon, { icon: GreenCheckCircleIcon }),
|
|
17
|
-
React.createElement(react_core_1.Title, { headingLevel: "h4", size: "lg" }, t('ai:Cluster is ready for installation')),
|
|
18
|
-
React.createElement(react_core_1.EmptyStateBody, null,
|
|
19
|
-
React.createElement("div", null, t('ai:This cluster has been created and is ready to begin installation.')),
|
|
20
|
-
React.createElement("div", null, t('ai:To see the status of the installation see the details page.'))))) : (React.createElement(React.Fragment, null,
|
|
21
|
-
React.createElement(react_core_1.EmptyStateIcon, { icon: react_core_1.Spinner }),
|
|
22
|
-
React.createElement(react_core_1.Title, { headingLevel: "h4", size: "lg" }, t('ai:Preparing cluster installation')),
|
|
23
|
-
React.createElement(react_core_1.EmptyStateBody, null,
|
|
24
|
-
React.createElement("div", null, t('ai:This cluster is in the process of getting ready to start installation.')),
|
|
25
|
-
React.createElement("div", null, t('ai:If you exit this flow you can see its status in the list view or details page.'))))),
|
|
26
|
-
React.createElement(react_core_1.EmptyStateActions, null,
|
|
27
|
-
React.createElement(react_core_1.Button, { variant: "primary", onClick: toDetails }, t('ai:See cluster details')),
|
|
28
|
-
React.createElement(react_core_1.Button, { variant: "link", onClick: toListView }, t('ai:Go to cluster list'))))));
|
|
29
|
-
};
|
|
30
|
-
exports.default = ClusterDeploymentCreateProgress;
|
|
31
|
-
//# sourceMappingURL=ClusterDeploymentCreateProgress.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ClusterDeploymentCreateProgress.js","sourceRoot":"","sources":["../../../../../lib/cim/components/ClusterDeployment/ClusterDeploymentCreateProgress.tsx"],"names":[],"mappings":";;;AAAA,qDAA+B;AAC/B,+FAA0F;AAC1F,wGAAgH;AAChH,uDASgC;AAChC,uCAAgD;AAEhD,2FAA+E;AAE/E,MAAM,oBAAoB,GAAa,CAAC,KAAK,EAAE,EAAE,CAAC,CAChD,oBAAC,mCAAe,oBAAK,KAAK,IAAE,KAAK,EAAE,mDAAO,CAAC,KAAK,IAAI,CACrD,CAAC;AAQF,MAAM,+BAA+B,GAAmD,CAAC,EACvF,mBAAmB,EACnB,SAAS,EACT,UAAU,GACX,EAAE,EAAE;IACH,MAAM,EAAE,CAAC,EAAE,GAAG,IAAA,wCAAc,GAAE,CAAC;IAC/B,OAAO,CACL,oBAAC,qBAAQ;QACP,oBAAC,uBAAU;YACR,IAAA,6BAAmB,EAAC,mBAAmB,CAAC,CAAC,CAAC,CAAC,CAC1C;gBACE,oBAAC,2BAAc,IAAC,IAAI,EAAE,oBAAoB,GAAI;gBAC9C,oBAAC,kBAAK,IAAC,YAAY,EAAC,IAAI,EAAC,IAAI,EAAC,IAAI,IAC/B,CAAC,CAAC,sCAAsC,CAAC,CACpC;gBACR,oBAAC,2BAAc;oBACb,iCAAM,CAAC,CAAC,sEAAsE,CAAC,CAAO;oBACtF,iCAAM,CAAC,CAAC,gEAAgE,CAAC,CAAO,CACjE,CAChB,CACJ,CAAC,CAAC,CAAC,CACF;gBACE,oBAAC,2BAAc,IAAC,IAAI,EAAE,oBAAO,GAAI;gBACjC,oBAAC,kBAAK,IAAC,YAAY,EAAC,IAAI,EAAC,IAAI,EAAC,IAAI,IAC/B,CAAC,CAAC,mCAAmC,CAAC,CACjC;gBACR,oBAAC,2BAAc;oBACb,iCACG,CAAC,CAAC,2EAA2E,CAAC,CAC3E;oBACN,iCACG,CAAC,CACA,mFAAmF,CACpF,CACG,CACS,CAChB,CACJ;YACD,oBAAC,8BAAiB;gBAChB,oBAAC,mBAAM,IAAC,OAAO,EAAC,SAAS,EAAC,OAAO,EAAE,SAAS,IACzC,CAAC,CAAC,wBAAwB,CAAC,CACrB;gBACT,oBAAC,mBAAM,IAAC,OAAO,EAAC,MAAM,EAAC,OAAO,EAAE,UAAU,IACvC,CAAC,CAAC,uBAAuB,CAAC,CACpB,CACS,CACT,CACJ,CACZ,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,+BAA+B,CAAC"}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const tslib_1 = require("tslib");
|
|
4
|
-
const react_1 = tslib_1.__importDefault(require("react"));
|
|
5
|
-
const react_core_1 = require("@patternfly/react-core");
|
|
6
|
-
const common_1 = require("../../../common");
|
|
7
|
-
const ClusterDeploymentWizardContext_1 = tslib_1.__importDefault(require("./ClusterDeploymentWizardContext"));
|
|
8
|
-
const wizardTransition_1 = require("./wizardTransition");
|
|
9
|
-
const use_translation_wrapper_1 = require("../../../common/hooks/use-translation-wrapper");
|
|
10
|
-
const ValidationsRunningAlert_1 = tslib_1.__importDefault(require("../common/ValidationsRunningAlert"));
|
|
11
|
-
const ValidationSection = ({ currentStepId, clusterStatus, validationsInfo, hosts, children, }) => {
|
|
12
|
-
return (react_1.default.createElement(react_core_1.AlertGroup, null,
|
|
13
|
-
children,
|
|
14
|
-
clusterStatus && (react_1.default.createElement(common_1.ClusterWizardStepValidationsAlert, { currentStepId: currentStepId, clusterStatus: clusterStatus, hosts: hosts, validationsInfo: validationsInfo, wizardStepsValidationsMap: wizardTransition_1.wizardStepsValidationsMap },
|
|
15
|
-
react_1.default.createElement(ValidationsRunningAlert_1.default, null)))));
|
|
16
|
-
};
|
|
17
|
-
const ClusterDeploymentWizardFooter = (_a) => {
|
|
18
|
-
var _b, _c, _d, _e, _f, _g;
|
|
19
|
-
var { agentClusterInstall, agents, showClusterErrors, children, onSyncError, isNextDisabled } = _a, rest = tslib_1.__rest(_a, ["agentClusterInstall", "agents", "showClusterErrors", "children", "onSyncError", "isNextDisabled"]);
|
|
20
|
-
const { alerts } = (0, common_1.useAlerts)();
|
|
21
|
-
const { currentStepId } = react_1.default.useContext(ClusterDeploymentWizardContext_1.default);
|
|
22
|
-
const clusterStatus = showClusterErrors
|
|
23
|
-
? (_c = (_b = agentClusterInstall === null || agentClusterInstall === void 0 ? void 0 : agentClusterInstall.status) === null || _b === void 0 ? void 0 : _b.debugInfo) === null || _c === void 0 ? void 0 : _c.state
|
|
24
|
-
: undefined;
|
|
25
|
-
const validationsInfo = showClusterErrors
|
|
26
|
-
? (_d = agentClusterInstall === null || agentClusterInstall === void 0 ? void 0 : agentClusterInstall.status) === null || _d === void 0 ? void 0 : _d.validationsInfo
|
|
27
|
-
: undefined;
|
|
28
|
-
const hosts = react_1.default.useMemo(() => (agents || []).reduce((result, agent) => {
|
|
29
|
-
var _a, _b, _c;
|
|
30
|
-
const status = (_b = (_a = agent.status) === null || _a === void 0 ? void 0 : _a.debugInfo) === null || _b === void 0 ? void 0 : _b.state;
|
|
31
|
-
if (status) {
|
|
32
|
-
result.push({ status, validationsInfo: (_c = agent.status) === null || _c === void 0 ? void 0 : _c.validationsInfo });
|
|
33
|
-
}
|
|
34
|
-
return result;
|
|
35
|
-
}, []), [agents]);
|
|
36
|
-
const syncError = (_g = (_f = (_e = agentClusterInstall === null || agentClusterInstall === void 0 ? void 0 : agentClusterInstall.status) === null || _e === void 0 ? void 0 : _e.conditions) === null || _f === void 0 ? void 0 : _f.find((c) => c.type === 'SpecSynced' && c.status === 'False')) === null || _g === void 0 ? void 0 : _g.message;
|
|
37
|
-
const { t } = (0, use_translation_wrapper_1.useTranslation)();
|
|
38
|
-
react_1.default.useEffect(() => {
|
|
39
|
-
if (syncError && onSyncError) {
|
|
40
|
-
onSyncError();
|
|
41
|
-
}
|
|
42
|
-
}, [syncError, onSyncError]);
|
|
43
|
-
const alertsSection = alerts.length ? react_1.default.createElement(common_1.Alerts, null) : undefined;
|
|
44
|
-
const errorsSection = (react_1.default.createElement(ValidationSection, { currentStepId: currentStepId, clusterStatus: clusterStatus, validationsInfo: validationsInfo, hosts: hosts },
|
|
45
|
-
syncError && (react_1.default.createElement(react_core_1.Alert, { variant: react_core_1.AlertVariant.danger, title: t('ai:An error occured'), isInline: true }, syncError)),
|
|
46
|
-
children));
|
|
47
|
-
return (react_1.default.createElement(common_1.WizardFooter, Object.assign({ alerts: alertsSection, errors: errorsSection, isNextDisabled: isNextDisabled || !!syncError }, rest)));
|
|
48
|
-
};
|
|
49
|
-
exports.default = ClusterDeploymentWizardFooter;
|
|
50
|
-
//# sourceMappingURL=ClusterDeploymentWizardFooter.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ClusterDeploymentWizardFooter.js","sourceRoot":"","sources":["../../../../../lib/cim/components/ClusterDeployment/ClusterDeploymentWizardFooter.tsx"],"names":[],"mappings":"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"}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const tslib_1 = require("tslib");
|
|
4
|
-
const react_1 = tslib_1.__importDefault(require("react"));
|
|
5
|
-
const deprecated_1 = require("@patternfly/react-core/deprecated");
|
|
6
|
-
const common_1 = require("../../../common");
|
|
7
|
-
const constants_1 = require("./constants");
|
|
8
|
-
const ClusterDeploymentWizardContext_1 = tslib_1.__importDefault(require("./ClusterDeploymentWizardContext"));
|
|
9
|
-
const helpers_1 = require("./helpers");
|
|
10
|
-
const use_translation_wrapper_1 = require("../../../common/hooks/use-translation-wrapper");
|
|
11
|
-
const wizardSteps = Object.keys(constants_1.wizardStepNames);
|
|
12
|
-
const ClusterDeploymentWizardNavigation = () => {
|
|
13
|
-
const { currentStepId, setCurrentStepId, clusterDeployment } = react_1.default.useContext(ClusterDeploymentWizardContext_1.default);
|
|
14
|
-
const { t } = (0, use_translation_wrapper_1.useTranslation)();
|
|
15
|
-
const stepNames = (0, constants_1.wizardStepNames)(t);
|
|
16
|
-
return (react_1.default.createElement(deprecated_1.WizardNav, null,
|
|
17
|
-
react_1.default.createElement(common_1.WizardNavItem, { key: "installation-type", content: t('ai:Installation type'), step: 0, isDisabled: true }),
|
|
18
|
-
react_1.default.createElement(common_1.WizardNavItem, { key: "cluster-details", content: stepNames['cluster-details'], isCurrent: currentStepId === 'cluster-details',
|
|
19
|
-
// isValid={ () => !cluster || canNextHostDiscovery({ cluster }) }
|
|
20
|
-
isDisabled: false, step: 1, onNavItemClick: () => setCurrentStepId('cluster-details') }),
|
|
21
|
-
react_1.default.createElement(common_1.WizardNavItem, { key: "automation", content: t('ai:Automation'), step: 2, isDisabled: true }),
|
|
22
|
-
(0, helpers_1.isCIMFlow)(clusterDeployment) ? (react_1.default.createElement(common_1.WizardNavItem, { key: "hosts-selection", content: stepNames['hosts-selection'], isDisabled: !wizardSteps.slice(1).includes(currentStepId),
|
|
23
|
-
// isValid={ () => !cluster || canNextHostDiscovery({ cluster }) }
|
|
24
|
-
isCurrent: currentStepId === 'hosts-selection', step: 2, onNavItemClick: () => setCurrentStepId('hosts-selection') })) : (react_1.default.createElement(common_1.WizardNavItem, { key: "hosts-discovery", content: stepNames['hosts-discovery'], isDisabled: !wizardSteps.slice(1).includes(currentStepId),
|
|
25
|
-
// isValid={ () => !cluster || canNextHostDiscovery({ cluster }) }
|
|
26
|
-
isCurrent: currentStepId === 'hosts-discovery', step: 2, onNavItemClick: () => setCurrentStepId('hosts-discovery') })),
|
|
27
|
-
react_1.default.createElement(common_1.WizardNavItem, { key: "networking", content: stepNames['networking'], isDisabled: !wizardSteps.slice(2).includes(currentStepId),
|
|
28
|
-
// isValid={ () => !cluster || canNextHostDiscovery({ cluster }) }
|
|
29
|
-
isCurrent: currentStepId === 'networking', step: 3, onNavItemClick: () => setCurrentStepId('networking') }),
|
|
30
|
-
react_1.default.createElement(common_1.WizardNavItem, { key: "review", content: stepNames['review'], isDisabled: !wizardSteps.slice(3).includes(currentStepId),
|
|
31
|
-
// isValid={ () => !cluster || canNextHostDiscovery({ cluster }) }
|
|
32
|
-
isCurrent: currentStepId === 'review', step: 4, onNavItemClick: () => setCurrentStepId('review') })));
|
|
33
|
-
};
|
|
34
|
-
exports.default = ClusterDeploymentWizardNavigation;
|
|
35
|
-
//# sourceMappingURL=ClusterDeploymentWizardNavigation.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ClusterDeploymentWizardNavigation.js","sourceRoot":"","sources":["../../../../../lib/cim/components/ClusterDeployment/ClusterDeploymentWizardNavigation.tsx"],"names":[],"mappings":"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"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const tslib_1 = require("tslib");
|
|
4
|
-
const React = tslib_1.__importStar(require("react"));
|
|
5
|
-
const clusterWizard_1 = require("../../../common/components/clusterWizard");
|
|
6
|
-
const ClusterDeploymentWizardNavigation_1 = tslib_1.__importDefault(require("./ClusterDeploymentWizardNavigation"));
|
|
7
|
-
const ClusterDeploymentWizardStep = (props) => (React.createElement(clusterWizard_1.ClusterWizardStep, Object.assign({ navigation: React.createElement(ClusterDeploymentWizardNavigation_1.default, null) }, props)));
|
|
8
|
-
exports.default = ClusterDeploymentWizardStep;
|
|
9
|
-
//# sourceMappingURL=ClusterDeploymentWizardStep.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ClusterDeploymentWizardStep.js","sourceRoot":"","sources":["../../../../../lib/cim/components/ClusterDeployment/ClusterDeploymentWizardStep.tsx"],"names":[],"mappings":";;;AAAA,qDAA+B;AAC/B,4EAA6E;AAC7E,oHAAoF;AAMpF,MAAM,2BAA2B,GAA+C,CAAC,KAAK,EAAE,EAAE,CAAC,CACzF,oBAAC,iCAAiB,kBAAC,UAAU,EAAE,oBAAC,2CAAiC,OAAG,IAAM,KAAK,EAAI,CACpF,CAAC;AAEF,kBAAe,2BAA2B,CAAC"}
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { CheckCircleIcon } from '@patternfly/react-icons/dist/js/icons/check-circle-icon';
|
|
3
|
-
import { global_palette_green_500 as okColor } from '@patternfly/react-tokens/dist/js/global_palette_green_500';
|
|
4
|
-
import {
|
|
5
|
-
Bullseye,
|
|
6
|
-
Button,
|
|
7
|
-
EmptyState,
|
|
8
|
-
EmptyStateBody,
|
|
9
|
-
EmptyStateIcon,
|
|
10
|
-
EmptyStateActions,
|
|
11
|
-
Spinner,
|
|
12
|
-
Title,
|
|
13
|
-
} from '@patternfly/react-core';
|
|
14
|
-
import { isInstallationReady } from './helpers';
|
|
15
|
-
import { AgentClusterInstallK8sResource } from '../../types';
|
|
16
|
-
import { useTranslation } from '../../../common/hooks/use-translation-wrapper';
|
|
17
|
-
|
|
18
|
-
const GreenCheckCircleIcon: React.FC = (props) => (
|
|
19
|
-
<CheckCircleIcon {...props} color={okColor.value} />
|
|
20
|
-
);
|
|
21
|
-
|
|
22
|
-
type ClusterDeploymentCreateProgressProps = {
|
|
23
|
-
agentClusterInstall: AgentClusterInstallK8sResource;
|
|
24
|
-
toDetails: VoidFunction;
|
|
25
|
-
toListView: VoidFunction;
|
|
26
|
-
};
|
|
27
|
-
|
|
28
|
-
const ClusterDeploymentCreateProgress: React.FC<ClusterDeploymentCreateProgressProps> = ({
|
|
29
|
-
agentClusterInstall,
|
|
30
|
-
toDetails,
|
|
31
|
-
toListView,
|
|
32
|
-
}) => {
|
|
33
|
-
const { t } = useTranslation();
|
|
34
|
-
return (
|
|
35
|
-
<Bullseye>
|
|
36
|
-
<EmptyState>
|
|
37
|
-
{isInstallationReady(agentClusterInstall) ? (
|
|
38
|
-
<>
|
|
39
|
-
<EmptyStateIcon icon={GreenCheckCircleIcon} />
|
|
40
|
-
<Title headingLevel="h4" size="lg">
|
|
41
|
-
{t('ai:Cluster is ready for installation')}
|
|
42
|
-
</Title>
|
|
43
|
-
<EmptyStateBody>
|
|
44
|
-
<div>{t('ai:This cluster has been created and is ready to begin installation.')}</div>
|
|
45
|
-
<div>{t('ai:To see the status of the installation see the details page.')}</div>
|
|
46
|
-
</EmptyStateBody>
|
|
47
|
-
</>
|
|
48
|
-
) : (
|
|
49
|
-
<>
|
|
50
|
-
<EmptyStateIcon icon={Spinner} />
|
|
51
|
-
<Title headingLevel="h4" size="lg">
|
|
52
|
-
{t('ai:Preparing cluster installation')}
|
|
53
|
-
</Title>
|
|
54
|
-
<EmptyStateBody>
|
|
55
|
-
<div>
|
|
56
|
-
{t('ai:This cluster is in the process of getting ready to start installation.')}
|
|
57
|
-
</div>
|
|
58
|
-
<div>
|
|
59
|
-
{t(
|
|
60
|
-
'ai:If you exit this flow you can see its status in the list view or details page.',
|
|
61
|
-
)}
|
|
62
|
-
</div>
|
|
63
|
-
</EmptyStateBody>
|
|
64
|
-
</>
|
|
65
|
-
)}
|
|
66
|
-
<EmptyStateActions>
|
|
67
|
-
<Button variant="primary" onClick={toDetails}>
|
|
68
|
-
{t('ai:See cluster details')}
|
|
69
|
-
</Button>
|
|
70
|
-
<Button variant="link" onClick={toListView}>
|
|
71
|
-
{t('ai:Go to cluster list')}
|
|
72
|
-
</Button>
|
|
73
|
-
</EmptyStateActions>
|
|
74
|
-
</EmptyState>
|
|
75
|
-
</Bullseye>
|
|
76
|
-
);
|
|
77
|
-
};
|
|
78
|
-
|
|
79
|
-
export default ClusterDeploymentCreateProgress;
|
|
@@ -1,128 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { Alert, AlertGroup, AlertVariant } from '@patternfly/react-core';
|
|
3
|
-
import {
|
|
4
|
-
Alerts,
|
|
5
|
-
WizardFooter,
|
|
6
|
-
useAlerts,
|
|
7
|
-
WizardFooterGenericProps,
|
|
8
|
-
ClusterWizardStepValidationsAlert,
|
|
9
|
-
} from '../../../common';
|
|
10
|
-
import ClusterDeploymentWizardContext from './ClusterDeploymentWizardContext';
|
|
11
|
-
import { ClusterWizardStepHostStatusDeterminationObject } from '../../../common/types/hosts';
|
|
12
|
-
import { ValidationsInfo } from '../../../common/types/clusters';
|
|
13
|
-
import { Cluster } from '@openshift-assisted/types/assisted-installer-service';
|
|
14
|
-
import { ClusterWizardStepsType, wizardStepsValidationsMap } from './wizardTransition';
|
|
15
|
-
import { AgentClusterInstallK8sResource } from '../../types/k8s/agent-cluster-install';
|
|
16
|
-
import { AgentK8sResource } from '../../types/k8s/agent';
|
|
17
|
-
import { useTranslation } from '../../../common/hooks/use-translation-wrapper';
|
|
18
|
-
import ValidationsRunningAlert from '../common/ValidationsRunningAlert';
|
|
19
|
-
|
|
20
|
-
type ValidationSectionProps = {
|
|
21
|
-
requireProxy?: boolean;
|
|
22
|
-
currentStepId: ClusterWizardStepsType;
|
|
23
|
-
validationsInfo?: ValidationsInfo;
|
|
24
|
-
clusterStatus?: Cluster['status'];
|
|
25
|
-
hosts: ClusterWizardStepHostStatusDeterminationObject[];
|
|
26
|
-
};
|
|
27
|
-
|
|
28
|
-
const ValidationSection: React.FC<ValidationSectionProps> = ({
|
|
29
|
-
currentStepId,
|
|
30
|
-
clusterStatus,
|
|
31
|
-
validationsInfo,
|
|
32
|
-
hosts,
|
|
33
|
-
children,
|
|
34
|
-
}) => {
|
|
35
|
-
return (
|
|
36
|
-
<AlertGroup>
|
|
37
|
-
{children}
|
|
38
|
-
{clusterStatus && (
|
|
39
|
-
<ClusterWizardStepValidationsAlert
|
|
40
|
-
currentStepId={currentStepId}
|
|
41
|
-
clusterStatus={clusterStatus}
|
|
42
|
-
hosts={hosts}
|
|
43
|
-
validationsInfo={validationsInfo}
|
|
44
|
-
wizardStepsValidationsMap={wizardStepsValidationsMap}
|
|
45
|
-
>
|
|
46
|
-
<ValidationsRunningAlert />
|
|
47
|
-
</ClusterWizardStepValidationsAlert>
|
|
48
|
-
)}
|
|
49
|
-
</AlertGroup>
|
|
50
|
-
);
|
|
51
|
-
};
|
|
52
|
-
|
|
53
|
-
type ClusterDeploymentWizardFooterProps = React.ComponentProps<typeof WizardFooter> &
|
|
54
|
-
WizardFooterGenericProps & {
|
|
55
|
-
agentClusterInstall?: AgentClusterInstallK8sResource;
|
|
56
|
-
agents?: AgentK8sResource[];
|
|
57
|
-
showClusterErrors?: boolean;
|
|
58
|
-
onSyncError?: VoidFunction;
|
|
59
|
-
};
|
|
60
|
-
|
|
61
|
-
const ClusterDeploymentWizardFooter: React.FC<ClusterDeploymentWizardFooterProps> = ({
|
|
62
|
-
agentClusterInstall,
|
|
63
|
-
agents,
|
|
64
|
-
showClusterErrors,
|
|
65
|
-
children,
|
|
66
|
-
onSyncError,
|
|
67
|
-
isNextDisabled,
|
|
68
|
-
...rest
|
|
69
|
-
}) => {
|
|
70
|
-
const { alerts } = useAlerts();
|
|
71
|
-
const { currentStepId } = React.useContext(ClusterDeploymentWizardContext);
|
|
72
|
-
const clusterStatus = showClusterErrors
|
|
73
|
-
? agentClusterInstall?.status?.debugInfo?.state
|
|
74
|
-
: undefined;
|
|
75
|
-
const validationsInfo = showClusterErrors
|
|
76
|
-
? agentClusterInstall?.status?.validationsInfo
|
|
77
|
-
: undefined;
|
|
78
|
-
const hosts = React.useMemo(
|
|
79
|
-
() =>
|
|
80
|
-
(agents || []).reduce<ClusterWizardStepHostStatusDeterminationObject[]>((result, agent) => {
|
|
81
|
-
const status = agent.status?.debugInfo?.state;
|
|
82
|
-
if (status) {
|
|
83
|
-
result.push({ status, validationsInfo: agent.status?.validationsInfo });
|
|
84
|
-
}
|
|
85
|
-
return result;
|
|
86
|
-
}, []),
|
|
87
|
-
[agents],
|
|
88
|
-
);
|
|
89
|
-
|
|
90
|
-
const syncError = agentClusterInstall?.status?.conditions?.find(
|
|
91
|
-
(c) => c.type === 'SpecSynced' && c.status === 'False',
|
|
92
|
-
)?.message;
|
|
93
|
-
|
|
94
|
-
const { t } = useTranslation();
|
|
95
|
-
React.useEffect(() => {
|
|
96
|
-
if (syncError && onSyncError) {
|
|
97
|
-
onSyncError();
|
|
98
|
-
}
|
|
99
|
-
}, [syncError, onSyncError]);
|
|
100
|
-
|
|
101
|
-
const alertsSection = alerts.length ? <Alerts /> : undefined;
|
|
102
|
-
const errorsSection = (
|
|
103
|
-
<ValidationSection
|
|
104
|
-
currentStepId={currentStepId}
|
|
105
|
-
clusterStatus={clusterStatus}
|
|
106
|
-
validationsInfo={validationsInfo}
|
|
107
|
-
hosts={hosts}
|
|
108
|
-
>
|
|
109
|
-
{syncError && (
|
|
110
|
-
<Alert variant={AlertVariant.danger} title={t('ai:An error occured')} isInline>
|
|
111
|
-
{syncError}
|
|
112
|
-
</Alert>
|
|
113
|
-
)}
|
|
114
|
-
{children}
|
|
115
|
-
</ValidationSection>
|
|
116
|
-
);
|
|
117
|
-
|
|
118
|
-
return (
|
|
119
|
-
<WizardFooter
|
|
120
|
-
alerts={alertsSection}
|
|
121
|
-
errors={errorsSection}
|
|
122
|
-
isNextDisabled={isNextDisabled || !!syncError}
|
|
123
|
-
{...rest}
|
|
124
|
-
/>
|
|
125
|
-
);
|
|
126
|
-
};
|
|
127
|
-
|
|
128
|
-
export default ClusterDeploymentWizardFooter;
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { WizardNav } from '@patternfly/react-core/deprecated';
|
|
3
|
-
import { WizardNavItem } from '../../../common';
|
|
4
|
-
import { wizardStepNames } from './constants';
|
|
5
|
-
import ClusterDeploymentWizardContext from './ClusterDeploymentWizardContext';
|
|
6
|
-
import { ClusterDeploymentWizardStepsType } from './types';
|
|
7
|
-
import { isCIMFlow } from './helpers';
|
|
8
|
-
import { useTranslation } from '../../../common/hooks/use-translation-wrapper';
|
|
9
|
-
|
|
10
|
-
const wizardSteps = Object.keys(wizardStepNames) as ClusterDeploymentWizardStepsType[];
|
|
11
|
-
|
|
12
|
-
const ClusterDeploymentWizardNavigation: React.FC<{
|
|
13
|
-
// cluster?: Cluster
|
|
14
|
-
}> = () => {
|
|
15
|
-
const { currentStepId, setCurrentStepId, clusterDeployment } = React.useContext(
|
|
16
|
-
ClusterDeploymentWizardContext,
|
|
17
|
-
);
|
|
18
|
-
const { t } = useTranslation();
|
|
19
|
-
const stepNames = wizardStepNames(t);
|
|
20
|
-
return (
|
|
21
|
-
<WizardNav>
|
|
22
|
-
<WizardNavItem
|
|
23
|
-
key="installation-type"
|
|
24
|
-
content={t('ai:Installation type')}
|
|
25
|
-
step={0}
|
|
26
|
-
isDisabled
|
|
27
|
-
/>
|
|
28
|
-
<WizardNavItem
|
|
29
|
-
key="cluster-details"
|
|
30
|
-
content={stepNames['cluster-details']}
|
|
31
|
-
isCurrent={currentStepId === 'cluster-details'}
|
|
32
|
-
// isValid={ () => !cluster || canNextHostDiscovery({ cluster }) }
|
|
33
|
-
isDisabled={false}
|
|
34
|
-
step={1}
|
|
35
|
-
onNavItemClick={() => setCurrentStepId('cluster-details')}
|
|
36
|
-
/>
|
|
37
|
-
<WizardNavItem key="automation" content={t('ai:Automation')} step={2} isDisabled />
|
|
38
|
-
{isCIMFlow(clusterDeployment) ? (
|
|
39
|
-
<WizardNavItem
|
|
40
|
-
key="hosts-selection"
|
|
41
|
-
content={stepNames['hosts-selection']}
|
|
42
|
-
isDisabled={!wizardSteps.slice(1).includes(currentStepId)}
|
|
43
|
-
// isValid={ () => !cluster || canNextHostDiscovery({ cluster }) }
|
|
44
|
-
isCurrent={currentStepId === 'hosts-selection'}
|
|
45
|
-
step={2}
|
|
46
|
-
onNavItemClick={() => setCurrentStepId('hosts-selection')}
|
|
47
|
-
/>
|
|
48
|
-
) : (
|
|
49
|
-
<WizardNavItem
|
|
50
|
-
key="hosts-discovery"
|
|
51
|
-
content={stepNames['hosts-discovery']}
|
|
52
|
-
isDisabled={!wizardSteps.slice(1).includes(currentStepId)}
|
|
53
|
-
// isValid={ () => !cluster || canNextHostDiscovery({ cluster }) }
|
|
54
|
-
isCurrent={currentStepId === 'hosts-discovery'}
|
|
55
|
-
step={2}
|
|
56
|
-
onNavItemClick={() => setCurrentStepId('hosts-discovery')}
|
|
57
|
-
/>
|
|
58
|
-
)}
|
|
59
|
-
<WizardNavItem
|
|
60
|
-
key="networking"
|
|
61
|
-
content={stepNames['networking']}
|
|
62
|
-
isDisabled={!wizardSteps.slice(2).includes(currentStepId)}
|
|
63
|
-
// isValid={ () => !cluster || canNextHostDiscovery({ cluster }) }
|
|
64
|
-
isCurrent={currentStepId === 'networking'}
|
|
65
|
-
step={3}
|
|
66
|
-
onNavItemClick={() => setCurrentStepId('networking')}
|
|
67
|
-
/>
|
|
68
|
-
<WizardNavItem
|
|
69
|
-
key="review"
|
|
70
|
-
content={stepNames['review']}
|
|
71
|
-
isDisabled={!wizardSteps.slice(3).includes(currentStepId)}
|
|
72
|
-
// isValid={ () => !cluster || canNextHostDiscovery({ cluster }) }
|
|
73
|
-
isCurrent={currentStepId === 'review'}
|
|
74
|
-
step={4}
|
|
75
|
-
onNavItemClick={() => setCurrentStepId('review')}
|
|
76
|
-
/>
|
|
77
|
-
</WizardNav>
|
|
78
|
-
);
|
|
79
|
-
};
|
|
80
|
-
|
|
81
|
-
export default ClusterDeploymentWizardNavigation;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { ClusterWizardStep } from '../../../common/components/clusterWizard';
|
|
3
|
-
import ClusterDeploymentWizardNavigation from './ClusterDeploymentWizardNavigation';
|
|
4
|
-
|
|
5
|
-
type ClusterDeploymentWizardStepProps = {
|
|
6
|
-
footer: React.ReactNode;
|
|
7
|
-
};
|
|
8
|
-
|
|
9
|
-
const ClusterDeploymentWizardStep: React.FC<ClusterDeploymentWizardStepProps> = (props) => (
|
|
10
|
-
<ClusterWizardStep navigation={<ClusterDeploymentWizardNavigation />} {...props} />
|
|
11
|
-
);
|
|
12
|
-
|
|
13
|
-
export default ClusterDeploymentWizardStep;
|