lgy1027 opened a new issue #630:
URL: https://github.com/apache/apisix-ingress-controller/issues/630


   ````
   w := int(100)
        route := &v2alpha1.ApisixRoute{
                ObjectMeta:metav1.ObjectMeta{
                        Name: "test-lgy",
                        Namespace: "lgy",
                },
                Spec:&v2alpha1.ApisixRouteSpec{
                        HTTP: []*v2alpha1.ApisixRouteHTTP{
                                &v2alpha1.ApisixRouteHTTP{
                                        Name: "rule1",
                                        Match: &v2alpha1.ApisixRouteHTTPMatch{
                                                Hosts: 
[]string{"local.httpbin.org"},
                                                Paths: []string{"/*"},
                                        },
                                        Backends: 
[]*v2alpha1.ApisixRouteHTTPBackend{
                                                
&v2alpha1.ApisixRouteHTTPBackend{
                                                        ServiceName: 
"httpbin-lgy",
                                                        ServicePort: 
intstr.IntOrString{
                                                                Type: 
intstr.Int,
                                                                IntVal: 80,
                                                        },
                                                        Weight:&w,
                                                },
                                        },
                                },
                        },
                },
        }
        result, err := 
client.ApisixV2alpha1().ApisixRoutes("lgy").Create(context.TODO(),route,v1.CreateOptions{})
        fmt.Println(err)
        fmt.Println(result)
   ````
   
   create ApisixRoute err!
   
![微信截图_20210816140106](https://user-images.githubusercontent.com/38779388/129517962-26bc6e35-73b7-437e-9c70-ac1600e57c77.png)
   
   APISIXX VERSION:
   
![image](https://user-images.githubusercontent.com/38779388/129518101-ba58e4be-5aa8-4b3b-95dd-30014041d773.png)
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to