mirror of
https://github.com/eliasstepanik/caddy-ingess.git
synced 2026-01-10 20:18:28 +00:00
* feat: Add plugin system to controller * add priority system and default empty tls connection policy
15 lines
394 B
Go
15 lines
394 B
Go
package ingress
|
|
|
|
import v1 "k8s.io/api/networking/v1"
|
|
|
|
const (
|
|
annotationPrefix = "caddy.ingress.kubernetes.io"
|
|
rewriteToAnnotation = "rewrite-to"
|
|
rewriteStripPrefixAnnotation = "rewrite-strip-prefix"
|
|
disableSSLRedirect = "disable-ssl-redirect"
|
|
)
|
|
|
|
func getAnnotation(ing *v1.Ingress, rule string) string {
|
|
return ing.Annotations[annotationPrefix+"/"+rule]
|
|
}
|