@openshift-assisted/ui-lib 2.47.1 → 2.47.2
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/common/components/clusterConfiguration/utils.d.ts +1 -3
- package/build/@types/common/components/clusterConfiguration/utils.d.ts.map +1 -1
- package/build/@types/common/components/ui/formik/validationSchemas.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/networkConfiguration/AvailableSubnetsControl.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/networkConfiguration/StackTypeControl.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/clusterDetail/ClusterProperties.d.ts.map +1 -1
- package/build/cjs/common/components/clusterConfiguration/utils.js.map +1 -1
- package/build/cjs/common/components/ui/formik/validationSchemas.js +110 -6
- package/build/cjs/common/components/ui/formik/validationSchemas.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/AvailableSubnetsControl.js +31 -0
- package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/AvailableSubnetsControl.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/StackTypeControl.js +23 -4
- package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/StackTypeControl.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/networkConfigurationValidation.js +32 -37
- package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/networkConfigurationValidation.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/review/ReviewNetworkingTable.js +27 -9
- package/build/cjs/ocm/components/clusterConfiguration/review/ReviewNetworkingTable.js.map +1 -1
- package/build/cjs/ocm/components/clusterDetail/ClusterProperties.js +2 -2
- package/build/cjs/ocm/components/clusterDetail/ClusterProperties.js.map +1 -1
- package/build/cjs/ocm/components/clusters/AssistedInstallerHeader.js +1 -1
- package/build/cjs/ocm/components/clusters/AssistedInstallerHeader.js.map +1 -1
- package/lib/common/components/clusterConfiguration/utils.ts +1 -3
- package/lib/common/components/ui/formik/validationSchemas.ts +132 -16
- package/lib/ocm/components/clusterConfiguration/networkConfiguration/AvailableSubnetsControl.tsx +29 -0
- package/lib/ocm/components/clusterConfiguration/networkConfiguration/StackTypeControl.tsx +25 -3
- package/lib/ocm/components/clusterConfiguration/networkConfiguration/networkConfigurationValidation.ts +6 -14
- package/lib/ocm/components/clusterConfiguration/review/ReviewNetworkingTable.tsx +39 -14
- package/lib/ocm/components/clusterDetail/ClusterProperties.tsx +2 -2
- package/lib/ocm/components/clusters/AssistedInstallerHeader.tsx +1 -1
- package/package.json +3 -3
|
@@ -1,12 +1,7 @@
|
|
|
1
1
|
import { Title } from '@patternfly/react-core';
|
|
2
2
|
import { Table, TableVariant, Tbody, Td, Tr } from '@patternfly/react-table';
|
|
3
3
|
import React from 'react';
|
|
4
|
-
import {
|
|
5
|
-
genericTableRowKey,
|
|
6
|
-
isDualStack,
|
|
7
|
-
selectApiVip,
|
|
8
|
-
selectIngressVip,
|
|
9
|
-
} from '../../../../common';
|
|
4
|
+
import { genericTableRowKey, isDualStack } from '../../../../common';
|
|
10
5
|
import {
|
|
11
6
|
getManagementType,
|
|
12
7
|
getStackTypeLabel,
|
|
@@ -58,7 +53,7 @@ export const ReviewNetworkingTable = ({ cluster }: { cluster: Cluster }) => {
|
|
|
58
53
|
)),
|
|
59
54
|
props: { 'data-testid': 'machine-networks' },
|
|
60
55
|
},
|
|
61
|
-
isDualStack(
|
|
56
|
+
isDualStack(cluster)
|
|
62
57
|
? {
|
|
63
58
|
title: cluster.machineNetworks?.map((network, index) => (
|
|
64
59
|
<span key={network.cidr}>
|
|
@@ -78,9 +73,24 @@ export const ReviewNetworkingTable = ({ cluster }: { cluster: Cluster }) => {
|
|
|
78
73
|
cells: [
|
|
79
74
|
{ title: 'API IP' },
|
|
80
75
|
{
|
|
81
|
-
title:
|
|
82
|
-
|
|
76
|
+
title: cluster.apiVips?.map((apiVip) => (
|
|
77
|
+
<span key={apiVip.ip}>
|
|
78
|
+
{apiVip.ip}
|
|
79
|
+
<br />
|
|
80
|
+
</span>
|
|
81
|
+
)),
|
|
82
|
+
props: { 'data-testid': 'api-vip' },
|
|
83
83
|
},
|
|
84
|
+
isDualStack(cluster)
|
|
85
|
+
? {
|
|
86
|
+
title: cluster.apiVips?.map((apiVip, index) => (
|
|
87
|
+
<span key={apiVip.ip}>
|
|
88
|
+
{index === 0 ? 'Primary' : 'Secondary'}
|
|
89
|
+
<br />
|
|
90
|
+
</span>
|
|
91
|
+
)),
|
|
92
|
+
}
|
|
93
|
+
: { title: '' },
|
|
84
94
|
],
|
|
85
95
|
});
|
|
86
96
|
|
|
@@ -91,9 +101,24 @@ export const ReviewNetworkingTable = ({ cluster }: { cluster: Cluster }) => {
|
|
|
91
101
|
cells: [
|
|
92
102
|
{ title: 'Ingress IP' },
|
|
93
103
|
{
|
|
94
|
-
title:
|
|
95
|
-
|
|
104
|
+
title: cluster.ingressVips?.map((ingressVip) => (
|
|
105
|
+
<span key={ingressVip.ip}>
|
|
106
|
+
{ingressVip.ip}
|
|
107
|
+
<br />
|
|
108
|
+
</span>
|
|
109
|
+
)),
|
|
110
|
+
props: { 'data-testid': 'ingress-vip' },
|
|
96
111
|
},
|
|
112
|
+
isDualStack(cluster)
|
|
113
|
+
? {
|
|
114
|
+
title: cluster.ingressVips?.map((ingressVip, index) => (
|
|
115
|
+
<span key={ingressVip.ip}>
|
|
116
|
+
{index === 0 ? 'Primary' : 'Secondary'}
|
|
117
|
+
<br />
|
|
118
|
+
</span>
|
|
119
|
+
)),
|
|
120
|
+
}
|
|
121
|
+
: { title: '' },
|
|
97
122
|
],
|
|
98
123
|
});
|
|
99
124
|
|
|
@@ -115,7 +140,7 @@ export const ReviewNetworkingTable = ({ cluster }: { cluster: Cluster }) => {
|
|
|
115
140
|
)),
|
|
116
141
|
props: { 'data-testid': 'cluster-network-cidr' },
|
|
117
142
|
},
|
|
118
|
-
isDualStack(
|
|
143
|
+
isDualStack(cluster) && {
|
|
119
144
|
title: cluster.clusterNetworks?.map((network, index) => (
|
|
120
145
|
<span key={network.cidr}>
|
|
121
146
|
{index === 0 ? 'Primary' : 'Secondary'}
|
|
@@ -138,7 +163,7 @@ export const ReviewNetworkingTable = ({ cluster }: { cluster: Cluster }) => {
|
|
|
138
163
|
)),
|
|
139
164
|
props: { 'data-testid': 'cluster-network-prefix' },
|
|
140
165
|
},
|
|
141
|
-
isDualStack(
|
|
166
|
+
isDualStack(cluster) && {
|
|
142
167
|
title: cluster.clusterNetworks?.map((network, index) => (
|
|
143
168
|
<span key={network.hostPrefix}>
|
|
144
169
|
{index === 0 ? 'Primary' : 'Secondary'}
|
|
@@ -161,7 +186,7 @@ export const ReviewNetworkingTable = ({ cluster }: { cluster: Cluster }) => {
|
|
|
161
186
|
)),
|
|
162
187
|
props: { 'data-testid': 'service-network-cidr' },
|
|
163
188
|
},
|
|
164
|
-
isDualStack(
|
|
189
|
+
isDualStack(cluster) && {
|
|
165
190
|
title: cluster.serviceNetworks?.map((network, index) => (
|
|
166
191
|
<span key={network.cidr}>
|
|
167
192
|
{index === 0 ? 'Primary' : 'Secondary'}
|
|
@@ -41,7 +41,7 @@ export const getManagementType = ({ userManagedNetworking }: Cluster): string =>
|
|
|
41
41
|
};
|
|
42
42
|
|
|
43
43
|
export const getStackTypeLabel = (cluster: Cluster): string =>
|
|
44
|
-
isDualStack(
|
|
44
|
+
isDualStack(cluster) ? 'Dual-stack' : 'IPv4';
|
|
45
45
|
|
|
46
46
|
export const getDiskEncryptionEnabledOnStatus = (diskEncryption: DiskEncryption['enableOn']) => {
|
|
47
47
|
let diskEncryptionType = null;
|
|
@@ -67,7 +67,7 @@ export const getDiskEncryptionEnabledOnStatus = (diskEncryption: DiskEncryption[
|
|
|
67
67
|
|
|
68
68
|
const ClusterProperties = ({ cluster, externalMode = false }: ClusterPropertiesProps) => {
|
|
69
69
|
const { t } = useTranslation();
|
|
70
|
-
const isDualStackType = isDualStack(
|
|
70
|
+
const isDualStackType = isDualStack(cluster);
|
|
71
71
|
const featureSupportLevelContext = useNewFeatureSupportLevel();
|
|
72
72
|
|
|
73
73
|
const activeFeatureConfiguration = featureSupportLevelContext.activeFeatureConfiguration;
|
|
@@ -24,7 +24,7 @@ export const AssistedInstallerHeader = () => {
|
|
|
24
24
|
</SplitItem>
|
|
25
25
|
{isInOcm && (
|
|
26
26
|
<SplitItem>
|
|
27
|
-
<Content component="a" data-testid="whats-new-link">
|
|
27
|
+
<Content component="a" data-testid="whats-new-link" hidden={true}>
|
|
28
28
|
What's new in Assisted Installer?
|
|
29
29
|
</Content>
|
|
30
30
|
</SplitItem>
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"dependencies": {
|
|
3
|
-
"@openshift-assisted/locales": "2.47.
|
|
4
|
-
"@openshift-assisted/types": "2.47.
|
|
3
|
+
"@openshift-assisted/locales": "2.47.2",
|
|
4
|
+
"@openshift-assisted/types": "2.47.2",
|
|
5
5
|
"@openshift-console/dynamic-plugin-sdk": "0.0.3",
|
|
6
6
|
"@patternfly/patternfly": "6.2.3",
|
|
7
7
|
"@patternfly/react-code-editor": "6.2.2",
|
|
@@ -140,5 +140,5 @@
|
|
|
140
140
|
]
|
|
141
141
|
}
|
|
142
142
|
},
|
|
143
|
-
"version": "2.47.
|
|
143
|
+
"version": "2.47.2"
|
|
144
144
|
}
|