const kubernetesServiceName …
type Controller …
type Config …
func New(config Config, client kubernetes.Interface, serviceInformer v1informers.ServiceInformer) *Controller { … }
func (c *Controller) Start(stopCh <-chan struct{ … }
func (c *Controller) Stop() { … }
func (c *Controller) Run(ch <-chan struct{ … }
func (c *Controller) UpdateKubernetesService(reconcile bool) error { … }
func createPortAndServiceSpec(servicePort int, targetServicePort int, nodePort int, servicePortName string) ([]corev1.ServicePort, corev1.ServiceType) { … }
func createEndpointPortSpec(endpointPort int, endpointPortName string) []corev1.EndpointPort { … }
func (c *Controller) CreateOrUpdateMasterServiceIfNeeded(serviceName string, serviceIP net.IP, servicePorts []corev1.ServicePort, serviceType corev1.ServiceType, reconcile bool) error { … }
func getMasterServiceUpdateIfNeeded(svc *corev1.Service, servicePorts []corev1.ServicePort, serviceType corev1.ServiceType) (s *corev1.Service, updated bool) { … }
func checkServiceFormat(s *corev1.Service, ports []corev1.ServicePort, serviceType corev1.ServiceType) (formatCorrect bool) { … }