nginx

package
v1.3.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 19, 2024 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewIngressNginxTCPUDPExposer

func NewIngressNginxTCPUDPExposer(configMapInterface configMapInterface) *ingressNginxTcpUpdExposer

NewIngressNginxTCPUDPExposer creates a new instance of the ingressNginxTcpUpdExposer.

Types

type IngressController

type IngressController struct {
	// contains filtered or unexported fields
}

func NewNginxController

func NewNginxController(configMapInterface configMapInterface) *IngressController

func (IngressController) DeleteExposedPorts

func (intue IngressController) DeleteExposedPorts(ctx context.Context, namespace string, targetServiceName string) error

DeleteExposedPorts removes all service related entries in the corresponding tcp/udp configmaps. If the configmap has no entries left this method won't delete the configmap. This would lead to numerous errors in the nginx log.

func (IngressController) ExposeOrUpdateExposedPorts

func (intue IngressController) ExposeOrUpdateExposedPorts(ctx context.Context, namespace string, targetServiceName string, exposedPorts util.ExposedPorts) error

ExposeOrUpdateExposedPorts creates or updates the matching tcp/udp configmap for nginx routing. It also deletes all legacy entries from the service. Port 80 and 443 will be ignored.

see: https://kubernetes.github.io/ingress-nginx/user-guide/exposing-tcp-udp-services/

func (*IngressController) GetAdditionalConfigurationKey

func (c *IngressController) GetAdditionalConfigurationKey() string

func (*IngressController) GetControllerSpec

func (c *IngressController) GetControllerSpec() string

func (*IngressController) GetName

func (c *IngressController) GetName() string

func (*IngressController) GetRewriteAnnotationKey

func (c *IngressController) GetRewriteAnnotationKey() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL