Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(CSI-226): support IPv6 in APIclient (#287)
### TL;DR This PR adds validation functions to check for valid IPv4, IPv6 addresses, and hostnames in the `resetDefaultEndpoints` method and skips endpoints that do not pass validation. ### What changed? - Introduced `isValidIPv4Address`, `isValidIPv6Address`, and `isValidHostname` functions. - Updated the `resetDefaultEndpoints` method to utilize these validation functions and skip invalid endpoints. ### How to test? - Add unit tests to check validation functions with various inputs. - Test CSI plugin basic sanity in IPv6-enabled Kubernetes cluster against IPv6-only Weka cluster (install, create PVC, create pod) ### Why make this change? - This change ensures that IPv6 addresses can be specified in configuration ---
- Loading branch information