Skip to content

Commit

Permalink
fix: create route failure
Browse files Browse the repository at this point in the history
Signed-off-by: 张启航 <[email protected]>
  • Loading branch information
ZhangSetSail committed Jan 13, 2025
1 parent ee7342d commit a01971d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion api/controller/apigateway/api_gateway_route.go
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,9 @@ func (g Struct) CreateHTTPAPIRoute(w http.ResponseWriter, r *http.Request) {
defaultDomain := r.URL.Query().Get("default") == "true"

for _, sl := range sLabel {
labels[sl] = "service_alias"
if sl != "" {
labels[sl] = "service_alias"
}
}

c := k8s.Default().ApiSixClient.ApisixV2()
Expand Down

0 comments on commit a01971d

Please sign in to comment.