Documentation ¶
Index ¶
- func AddTLSInfo(ingress *v1beta1.Ingress, ingressName string, ingressHost string)
- func AddTLSInfoTemplate(ingress *v1beta1.Ingress, secretName string, ingressHost string)
- func AppendSlashInPathAnnotationIfNotPresent(currentAnnotations map[string]interface{}) map[string]interface{}
- func CreateForwardAnnotationsMap(splittedAnnotations []string) map[string]string
- func CreateFromIngressInfo(ingresInfo IngressInfo) *v1beta1.Ingress
- func GetFromListMatchingGivenServiceName(ingressList *v1beta1.IngressList, serviceName string) v1beta1.Ingress
- func IsEmpty(ingress v1beta1.Ingress) bool
- func ShouldAddTLS(ingressConfig map[string]interface{}, defaultTLS bool) bool
- type IngressInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddTLSInfoTemplate ¶ added in v0.0.17
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 ¶
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 ShouldAddTLS ¶
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
Click to show internal directories.
Click to hide internal directories.