ingresses

package
v0.0.20 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddTLSInfo

func AddTLSInfo(ingress *v1beta1.Ingress, ingressName string, ingressHost string)

func AddTLSInfoTemplate added in v0.0.17

func AddTLSInfoTemplate(ingress *v1beta1.Ingress, secretName string, ingressHost string)

func AppendSlashInPathAnnotationIfNotPresent

func AppendSlashInPathAnnotationIfNotPresent(currentAnnotations map[string]interface{}) map[string]interface{}

Looks for Ingress URL Path annotation, and if it doesn't start with a /, appends it

func CreateForwardAnnotationsMap

func CreateForwardAnnotationsMap(splittedAnnotations []string) map[string]string

Generate a map of annotations to forward to Ingress

func CreateFromIngressInfo

func CreateFromIngressInfo(ingresInfo IngressInfo) *v1beta1.Ingress

func GetFromListMatchingGivenServiceName

func GetFromListMatchingGivenServiceName(ingressList *v1beta1.IngressList, serviceName string) v1beta1.Ingress

func IsEmpty

func IsEmpty(ingress v1beta1.Ingress) bool

func ShouldAddTLS

func ShouldAddTLS(ingressConfig map[string]interface{}, defaultTLS bool) bool

Types

type IngressInfo

type IngressInfo struct {
	IngressName           string
	Namespace             string
	ForwardAnnotationsMap map[string]string
	IngressHost           string
	IngressPath           string
	ServiceName           string
	ServicePort           int
	AddTLS                bool
	SecretName            string
}

func CreateIngressInfo

func CreateIngressInfo(newServiceObject *v1.Service, configuration config.Configuration) IngressInfo

Jump to

Keyboard shortcuts

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