fix apigateway clientset bug

This commit is contained in:
Jeff
2019-09-26 19:14:16 +08:00
committed by zryfish
parent fe0108d28f
commit 28af678748
3 changed files with 57 additions and 6 deletions

View File

@@ -18,8 +18,8 @@
package main
import (
"github.com/mholt/caddy/caddy/caddymain"
"github.com/mholt/caddy/caddyhttp/httpserver"
"kubesphere.io/kubesphere/cmd/ks-apigateway/app"
"os"
// Install apis
_ "kubesphere.io/kubesphere/pkg/apigateway/caddy-plugin/authenticate"
@@ -28,8 +28,10 @@ import (
)
func main() {
httpserver.RegisterDevDirective("authenticate", "jwt")
httpserver.RegisterDevDirective("authentication", "jwt")
httpserver.RegisterDevDirective("swagger", "jwt")
caddymain.Run()
cmd := app.NewAPIGatewayCommand()
if err := cmd.Execute(); err != nil {
os.Exit(1)
}
}