INNER CODE UNIT · Go
init
wasmCloud/wasmCloud · runtime-gateway/main.go:28
func init() {
utilruntime.Must(corev1.AddToScheme(scheme))
utilruntime.Must(appsv1.AddToScheme(scheme))
utilruntime.Must(runtimev1alpha1.AddToScheme(scheme))
}
func main() {
var (
devMode bool
bindAddr string
fallbackEndpoint string
)
flag.BoolVar(&devMode, "dev-mode", false, "Enable development mode logging")
flag.StringVar(&bindAddr, "bind-addr", ":8000", "Address to bind the HTTP gateway to")
flag.StringVar(&fallbackEndpoint, "fallback-endpoint", "", "Proxy Requests are routed to this endpoint when no workloads are found. Example: 'http://notfound.svc.cluster.local")
flag.Parse()