Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow modified IPv6 address as CPIC name
CloudPrivateIPConfig's name is supposed to be an IPv4 or IPv6 address. However, the K8s constraints do not allow colons in the names of the resources, so for IPv6 addresses the names are the addresses fully expanded with colons replaced with dots. E.g. `fc00:f853:ccd:e793::54` becomes `fc00.f853.0ccd.e793.0000.0000.0000.0054`. This means that standard K8s validation of `format: ipv6` will not work as it'll try parsing the address using golang's `net` library and that will fail due to `s/\:/\./`. This commit replaces `format: ipv6` with a pattern that matches fully expanded IPv6 addresses to fix the problem.
- Loading branch information