From d95449998bd8a3cbddebdc74a738c48698fe22ec Mon Sep 17 00:00:00 2001 From: John Winston <59228178+winston0410@users.noreply.github.com> Date: Wed, 3 Jul 2024 17:13:05 +0100 Subject: [PATCH] feat: pass address to LoadBalancerIP (#184) --- pkg/controllers/wireguard_controller.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/controllers/wireguard_controller.go b/pkg/controllers/wireguard_controller.go index 68a87a86..0fbcbe3b 100644 --- a/pkg/controllers/wireguard_controller.go +++ b/pkg/controllers/wireguard_controller.go @@ -618,7 +618,8 @@ func (r *WireguardReconciler) serviceForWireguard(m *v1alpha1.Wireguard, service Labels: labels, }, Spec: corev1.ServiceSpec{ - Selector: labels, + LoadBalancerIP: m.Spec.Address, + Selector: labels, Ports: []corev1.ServicePort{{ Protocol: corev1.ProtocolUDP, NodePort: m.Spec.NodePort,