Replace deprecated loadBalancerIP
field from created Service
objects with custom annotations
#156
Labels
loadBalancerIP
field from created Service
objects with custom annotations
#156
Please describe the solution you would like.
The
VirtualMachineService
controller has the logic to create aService
CR without selectors which gets the load balancer IP address as provided by the configured LoadBalancer provider. Currently, the created Service CR has the IP address populates in itsSpec.loadBalancerIP
field.This field has been deprecated since k8s 1.24 and will be removed in a future release. The alternate course of action suggested is to use a custom annotation to set the information on the
Service
object instead of setting thespec.loadBalancerIP
value on the Service CR.This issue is to track updating the controller logic for the
VirtualMachineService
CR to set the load balancer IP address via a custom annotation along with setting the value on theService.Spec.loadBalancerIP
. Eventually, for backwards compatibility we will need to replace the logic for the creation of a Service object with:k8s.io/apimachinery/pkg/apis/meta/v1/unstructured.Unstructured
typeService
CR.Is there anything else you would like to add?
The documentation for the deprecation and the alternate course of action can be found here:
The text was updated successfully, but these errors were encountered: