mirror of
https://github.com/eliasstepanik/caddy-ingess.git
synced 2026-01-17 15:38:27 +00:00
23 lines
532 B
Go
23 lines
532 B
Go
package main
|
|
|
|
import (
|
|
"flag"
|
|
|
|
"github.com/caddyserver/ingress/internal/caddy"
|
|
)
|
|
|
|
func parseFlags() caddy.ControllerConfig {
|
|
var namespace string
|
|
flag.StringVar(&namespace, "namespace", "", "the namespace that you would like to observe kubernetes ingress resources in.")
|
|
|
|
var configMapName string
|
|
flag.StringVar(&configMapName, "config-map", "", "defines the config map name from where to load global options")
|
|
|
|
flag.Parse()
|
|
|
|
return caddy.ControllerConfig{
|
|
WatchNamespace: namespace,
|
|
ConfigMapName: configMapName,
|
|
}
|
|
}
|