Categorygithub.com/easywithgo/ingress-controller
repositorypackage
0.0.0-20211031152450-52feba56d297
Repository: https://github.com/easywithgo/ingress-controller.git
Documentation: pkg.go.dev

# README

ingress-controller

monitor changes to an ingress in kubernetes

This is meant to automatically monitor the changes in kubernetes ingress definitions. This will manage an inmemory map of all the ingresses currently available within a kube cluster.

Matcher

Three matchers are available PrefixMatch, ExactMatch and RegexMatch are available.

Example

  controller := InitIngressController(context.Background(), kubeclient)
	namespace, ingressName, serviceRoute, found := controller.PrefixMatch("host.com", "/query")
	namespace, ingressName, serviceRoute, found := controller.ExactMatch("host.com", "/query")

Read Issues to identify what needs to be done.