Documentation ¶
Index ¶
- func NewIngressNginxTCPUDPExposer(configMapInterface configMapInterface) *ingressNginxTcpUpdExposer
- type IngressController
- func (intue IngressController) DeleteExposedPorts(ctx context.Context, namespace string, targetServiceName string) error
- func (intue IngressController) ExposeOrUpdateExposedPorts(ctx context.Context, namespace string, targetServiceName string, ...) error
- func (c *IngressController) GetAdditionalConfigurationKey() string
- func (c *IngressController) GetControllerSpec() string
- func (c *IngressController) GetName() string
- func (c *IngressController) GetRewriteAnnotationKey() string
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
Click to show internal directories.
Click to hide internal directories.