@openshift-assisted/ui-lib 2.17.4-cim → 2.17.7-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/NetworkConfiguration.d.ts +1 -1
- package/build/@types/cim/components/ClusterDeployment/NetworkConfiguration.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/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/helpers/clusterDeployment.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/ui/OpenShiftVersionDropdown.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/components/ui/utils.d.ts +3 -0
- package/build/@types/common/components/ui/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/validationSchemas/networkingValidation.d.ts +10 -0
- package/build/@types/common/validationSchemas/networkingValidation.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/networkConfiguration/networkConfigurationValidation.d.ts.map +1 -1
- package/build/cjs/cim/components/ClusterDeployment/NetworkConfiguration.js +44 -5
- package/build/cjs/cim/components/ClusterDeployment/NetworkConfiguration.js.map +1 -1
- package/build/cjs/cim/components/ClusterDeployment/networkConfigurationValidation.js +27 -11
- package/build/cjs/cim/components/ClusterDeployment/networkConfigurationValidation.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/helpers/clusterDeployment.js +14 -10
- package/build/cjs/cim/components/helpers/clusterDeployment.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/StackTypeControlGroup.js +29 -19
- package/build/cjs/common/components/clusterWizard/networkingSteps/StackTypeControlGroup.js.map +1 -1
- package/build/cjs/common/components/ui/OpenShiftVersionDropdown.js +13 -16
- package/build/cjs/common/components/ui/OpenShiftVersionDropdown.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/components/ui/utils.js +5 -1
- package/build/cjs/common/components/ui/utils.js.map +1 -1
- package/build/cjs/common/config/constants.js +9 -2
- package/build/cjs/common/config/constants.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/networkConfiguration/NetworkConfigurationForm.js +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfigurationForm.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/lib/cim/components/ClusterDeployment/NetworkConfiguration.tsx +51 -3
- package/lib/cim/components/ClusterDeployment/networkConfigurationValidation.ts +22 -8
- package/lib/cim/components/ClusterDeployment/use-networking-formik.ts +14 -22
- package/lib/cim/components/helpers/clusterDeployment.ts +9 -4
- package/lib/common/components/clusterWizard/networkingSteps/AvailableSubnetsControl.tsx +8 -1
- package/lib/common/components/clusterWizard/networkingSteps/StackTypeControlGroup.tsx +37 -27
- package/lib/common/components/ui/OpenShiftVersionDropdown.tsx +20 -28
- package/lib/common/components/ui/formik/utils.ts +6 -0
- package/lib/common/components/ui/utils.ts +7 -0
- package/lib/common/config/constants.ts +10 -1
- package/lib/common/validationSchemas/networkingValidation.tsx +39 -1
- package/lib/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfigurationForm.tsx +2 -2
- package/lib/ocm/components/clusterConfiguration/networkConfiguration/networkConfigurationValidation.ts +6 -5
- package/package.json +3 -3
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
serviceNetworkValidationSchema,
|
|
12
12
|
IPv4ValidationSchema,
|
|
13
13
|
sshPublicKeyValidationSchema,
|
|
14
|
-
|
|
14
|
+
SINGLE_STACK,
|
|
15
15
|
DUAL_STACK,
|
|
16
16
|
vipArrayValidationSchema,
|
|
17
17
|
NETWORK_TYPE_OVN,
|
|
@@ -50,7 +50,7 @@ export const getNetworkInitialValues = (
|
|
|
50
50
|
: 'clusterManaged',
|
|
51
51
|
networkType: cluster.networkType || NETWORK_TYPE_OVN,
|
|
52
52
|
machineNetworks: cluster.machineNetworks || [],
|
|
53
|
-
stackType: isDualStackType ? DUAL_STACK :
|
|
53
|
+
stackType: isDualStackType ? DUAL_STACK : SINGLE_STACK,
|
|
54
54
|
clusterNetworks:
|
|
55
55
|
cluster.clusterNetworks ||
|
|
56
56
|
(isDualStackType
|
|
@@ -85,7 +85,8 @@ export const getNetworkConfigurationValidationSchema = (
|
|
|
85
85
|
values.managedNetworkingType === 'userManaged'
|
|
86
86
|
? Yup.array()
|
|
87
87
|
: machineNetworksValidationSchema.when('stackType', {
|
|
88
|
-
is: (stackType: NetworkConfigurationValues['stackType']) =>
|
|
88
|
+
is: (stackType: NetworkConfigurationValues['stackType']) =>
|
|
89
|
+
stackType === SINGLE_STACK,
|
|
89
90
|
then: () => machineNetworksValidationSchema.concat(IPv4ValidationSchema),
|
|
90
91
|
otherwise: () =>
|
|
91
92
|
values.machineNetworks && values.machineNetworks?.length >= 2
|
|
@@ -95,13 +96,13 @@ export const getNetworkConfigurationValidationSchema = (
|
|
|
95
96
|
: Yup.array(),
|
|
96
97
|
}),
|
|
97
98
|
clusterNetworks: clusterNetworksValidationSchema(t).when('stackType', {
|
|
98
|
-
is: (stackType: NetworkConfigurationValues['stackType']) => stackType ===
|
|
99
|
+
is: (stackType: NetworkConfigurationValues['stackType']) => stackType === SINGLE_STACK,
|
|
99
100
|
then: (schema) => schema.concat(IPv4ValidationSchema),
|
|
100
101
|
otherwise: (schema) =>
|
|
101
102
|
schema.concat(dualStackValidationSchema('cluster network', t, openshiftVersion)),
|
|
102
103
|
}),
|
|
103
104
|
serviceNetworks: serviceNetworkValidationSchema(t).when('stackType', {
|
|
104
|
-
is: (stackType: NetworkConfigurationValues['stackType']) => stackType ===
|
|
105
|
+
is: (stackType: NetworkConfigurationValues['stackType']) => stackType === SINGLE_STACK,
|
|
105
106
|
then: (schema) => schema.concat(IPv4ValidationSchema),
|
|
106
107
|
otherwise: (schema) =>
|
|
107
108
|
schema.concat(dualStackValidationSchema('service network', t, openshiftVersion)),
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"dependencies": {
|
|
3
|
-
"@openshift-assisted/locales": "2.17.
|
|
4
|
-
"@openshift-assisted/types": "2.17.
|
|
3
|
+
"@openshift-assisted/locales": "2.17.7-cim",
|
|
4
|
+
"@openshift-assisted/types": "2.17.7-cim",
|
|
5
5
|
"@openshift-console/dynamic-plugin-sdk": "1.0.0",
|
|
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.17.
|
|
143
|
+
"version": "2.17.7-cim"
|
|
144
144
|
}
|