@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.
Files changed (61) hide show
  1. package/build/@types/cim/components/ClusterDeployment/NetworkConfiguration.d.ts +1 -1
  2. package/build/@types/cim/components/ClusterDeployment/NetworkConfiguration.d.ts.map +1 -1
  3. package/build/@types/cim/components/ClusterDeployment/networkConfigurationValidation.d.ts +1 -1
  4. package/build/@types/cim/components/ClusterDeployment/networkConfigurationValidation.d.ts.map +1 -1
  5. package/build/@types/cim/components/ClusterDeployment/use-networking-formik.d.ts +4 -4
  6. package/build/@types/cim/components/ClusterDeployment/use-networking-formik.d.ts.map +1 -1
  7. package/build/@types/cim/components/helpers/clusterDeployment.d.ts.map +1 -1
  8. package/build/@types/common/components/clusterWizard/networkingSteps/AvailableSubnetsControl.d.ts +2 -1
  9. package/build/@types/common/components/clusterWizard/networkingSteps/AvailableSubnetsControl.d.ts.map +1 -1
  10. package/build/@types/common/components/clusterWizard/networkingSteps/StackTypeControlGroup.d.ts +2 -1
  11. package/build/@types/common/components/clusterWizard/networkingSteps/StackTypeControlGroup.d.ts.map +1 -1
  12. package/build/@types/common/components/ui/OpenShiftVersionDropdown.d.ts.map +1 -1
  13. package/build/@types/common/components/ui/formik/utils.d.ts +1 -0
  14. package/build/@types/common/components/ui/formik/utils.d.ts.map +1 -1
  15. package/build/@types/common/components/ui/utils.d.ts +3 -0
  16. package/build/@types/common/components/ui/utils.d.ts.map +1 -1
  17. package/build/@types/common/config/constants.d.ts +2 -2
  18. package/build/@types/common/config/constants.d.ts.map +1 -1
  19. package/build/@types/common/validationSchemas/networkingValidation.d.ts +10 -0
  20. package/build/@types/common/validationSchemas/networkingValidation.d.ts.map +1 -1
  21. package/build/@types/ocm/components/clusterConfiguration/networkConfiguration/networkConfigurationValidation.d.ts.map +1 -1
  22. package/build/cjs/cim/components/ClusterDeployment/NetworkConfiguration.js +44 -5
  23. package/build/cjs/cim/components/ClusterDeployment/NetworkConfiguration.js.map +1 -1
  24. package/build/cjs/cim/components/ClusterDeployment/networkConfigurationValidation.js +27 -11
  25. package/build/cjs/cim/components/ClusterDeployment/networkConfigurationValidation.js.map +1 -1
  26. package/build/cjs/cim/components/ClusterDeployment/use-networking-formik.js +13 -18
  27. package/build/cjs/cim/components/ClusterDeployment/use-networking-formik.js.map +1 -1
  28. package/build/cjs/cim/components/helpers/clusterDeployment.js +14 -10
  29. package/build/cjs/cim/components/helpers/clusterDeployment.js.map +1 -1
  30. package/build/cjs/common/components/clusterWizard/networkingSteps/AvailableSubnetsControl.js +8 -2
  31. package/build/cjs/common/components/clusterWizard/networkingSteps/AvailableSubnetsControl.js.map +1 -1
  32. package/build/cjs/common/components/clusterWizard/networkingSteps/StackTypeControlGroup.js +29 -19
  33. package/build/cjs/common/components/clusterWizard/networkingSteps/StackTypeControlGroup.js.map +1 -1
  34. package/build/cjs/common/components/ui/OpenShiftVersionDropdown.js +13 -16
  35. package/build/cjs/common/components/ui/OpenShiftVersionDropdown.js.map +1 -1
  36. package/build/cjs/common/components/ui/formik/utils.js +5 -1
  37. package/build/cjs/common/components/ui/formik/utils.js.map +1 -1
  38. package/build/cjs/common/components/ui/utils.js +5 -1
  39. package/build/cjs/common/components/ui/utils.js.map +1 -1
  40. package/build/cjs/common/config/constants.js +9 -2
  41. package/build/cjs/common/config/constants.js.map +1 -1
  42. package/build/cjs/common/validationSchemas/networkingValidation.js +19 -1
  43. package/build/cjs/common/validationSchemas/networkingValidation.js.map +1 -1
  44. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfigurationForm.js +1 -1
  45. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfigurationForm.js.map +1 -1
  46. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/networkConfigurationValidation.js +4 -4
  47. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/networkConfigurationValidation.js.map +1 -1
  48. package/lib/cim/components/ClusterDeployment/NetworkConfiguration.tsx +51 -3
  49. package/lib/cim/components/ClusterDeployment/networkConfigurationValidation.ts +22 -8
  50. package/lib/cim/components/ClusterDeployment/use-networking-formik.ts +14 -22
  51. package/lib/cim/components/helpers/clusterDeployment.ts +9 -4
  52. package/lib/common/components/clusterWizard/networkingSteps/AvailableSubnetsControl.tsx +8 -1
  53. package/lib/common/components/clusterWizard/networkingSteps/StackTypeControlGroup.tsx +37 -27
  54. package/lib/common/components/ui/OpenShiftVersionDropdown.tsx +20 -28
  55. package/lib/common/components/ui/formik/utils.ts +6 -0
  56. package/lib/common/components/ui/utils.ts +7 -0
  57. package/lib/common/config/constants.ts +10 -1
  58. package/lib/common/validationSchemas/networkingValidation.tsx +39 -1
  59. package/lib/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfigurationForm.tsx +2 -2
  60. package/lib/ocm/components/clusterConfiguration/networkConfiguration/networkConfigurationValidation.ts +6 -5
  61. package/package.json +3 -3
@@ -11,7 +11,7 @@ import {
11
11
  serviceNetworkValidationSchema,
12
12
  IPv4ValidationSchema,
13
13
  sshPublicKeyValidationSchema,
14
- IPV4_STACK,
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 : IPV4_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']) => stackType === IPV4_STACK,
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 === IPV4_STACK,
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 === IPV4_STACK,
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-cim",
4
- "@openshift-assisted/types": "2.17.4-cim",
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.4-cim"
143
+ "version": "2.17.7-cim"
144
144
  }