diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md index 43dc95d8..c87487f3 100644 --- a/RELEASE_NOTES.md +++ b/RELEASE_NOTES.md @@ -4,7 +4,7 @@ ## General -* Added support for IPV6 addresses in the Kubernetes 'apiVIP' field +* Added support for IPv6 addresses in the Kubernetes 'apiVIP' field ## API diff --git a/docs/building-images.md b/docs/building-images.md index f1ca374f..71600f56 100644 --- a/docs/building-images.md +++ b/docs/building-images.md @@ -261,7 +261,7 @@ kubernetes: * `network` - Required for multi-node clusters, optional for single-node clusters; Defines the network configuration for bootstrapping a cluster. * `apiVIP` - Required for multi-node clusters, optional for single-node clusters; Specifies the IP address which - will serve as the cluster LoadBalancer, backed by MetalLB. Supports IPV4 and IPV6 addresses. + will serve as the cluster LoadBalancer, backed by MetalLB. Supports IPv4 and IPv6 addresses. * `apiHost` - Optional; Specifies the domain address for accessing the cluster. * `nodes` - Required for multi-node clusters; Defines a list of all nodes that form the cluster. * `hostname` - Required; Indicates the fully qualified domain name (FQDN) to identify the particular node on which diff --git a/pkg/combustion/kubernetes.go b/pkg/combustion/kubernetes.go index 86b0e8d0..da48f045 100644 --- a/pkg/combustion/kubernetes.go +++ b/pkg/combustion/kubernetes.go @@ -319,7 +319,7 @@ func (c *Combustion) downloadRKE2Artefacts(ctx *image.Context, cluster *kubernet func kubernetesVIPManifest(k *image.Kubernetes) (string, error) { ip, err := netip.ParseAddr(k.Network.APIVIP) if err != nil { - return "", fmt.Errorf("parsing kubernetes APIVIP address: %w", err) + return "", fmt.Errorf("parsing kubernetes apiVIP address: %w", err) } manifest := struct { diff --git a/pkg/combustion/kubernetes_test.go b/pkg/combustion/kubernetes_test.go index ffe7562d..f0412642 100644 --- a/pkg/combustion/kubernetes_test.go +++ b/pkg/combustion/kubernetes_test.go @@ -862,5 +862,5 @@ func TestKubernetesVIPManifestInvalidIP(t *testing.T) { } _, err := kubernetesVIPManifest(k8s) - require.ErrorContains(t, err, "parsing kubernetes APIVIP address: ParseAddr(\"1111\"): unable to parse IP") + require.ErrorContains(t, err, "parsing kubernetes apiVIP address: ParseAddr(\"1111\"): unable to parse IP") } diff --git a/pkg/kubernetes/cluster.go b/pkg/kubernetes/cluster.go index d0bc6b3a..2b5eaf57 100644 --- a/pkg/kubernetes/cluster.go +++ b/pkg/kubernetes/cluster.go @@ -57,7 +57,7 @@ func NewCluster(kubernetes *image.Kubernetes, configPath string) (*Cluster, erro ip, err := netip.ParseAddr(kubernetes.Network.APIVIP) if err != nil { - return nil, fmt.Errorf("parsing kubernetes APIVIP address: %w", err) + return nil, fmt.Errorf("parsing kubernetes apiVIP address: %w", err) } setMultiNodeConfigDefaults(kubernetes, serverConfig, &ip)