wolgod opened a new issue, #1317:
URL: https://github.com/apache/apisix-ingress-controller/issues/1317

   ### Issue description
   
   apisixroute 内容变动的时候apisixroute status显示成功,但是并没有同步到apisix中
   
   ### Environment
   
   - your apisix-ingress-controller version (output of 
apisix-ingress-controller version --long):1.4.1
   - your Kubernetes cluster version (output of kubectl version):1.18
   - if you run apisix-ingress-controller in Bare-metal environment, also show 
your OS version (uname -a):centos7
   
   
   ### Minimal test code / Steps to reproduce
   
   begin the apisixroute 
   
   ```apiVersion: apisix.apache.org/v2beta3
   kind: ApisixRoute
   metadata:
     name: basik-k8s-prod
     namespace: ns-1
   spec:
     http:
       - authentication:
           enable: false
           type: basicAuth
         backends:
           - serviceName: basik-k8s-prod
             servicePort: 30096
             weight: 100
         match:
           hosts:
             - basik-k8s-prod.aii.com
           paths:
             - /*
         name: rule-0
         websocket: true
       - authentication:
           enable: false
           type: basicAuth
         backends:
           - serviceName: basik-k8s-prod
             servicePort: 30096
             weight: 100
         match:
           hosts:
             - zhiguanapi-basic.bbb.cn
           paths:
             - /openapi*
         name: rule-1
         websocket: true
   ```
   过了一段时间后,2022-09-01T10:31更改了这个apisixtoute里面的路由,通过以下方式更新
   ```
        _, err = ingressClient.Create(cont, ing, metav1.CreateOptions{})
           ....
        _, err = ingressClient.Update(cont, ing, metav1.UpdateOptions{})
   
   ```
   最后的资源文件如下:
   ```
   apiVersion: apisix.apache.org/v2beta3
   kind: ApisixRoute
   metadata:
     creationTimestamp: "2022-07-14T12:20:54Z"
     generation: 4
     managedFields:
       - apiVersion: apisix.apache.org/v2beta3
         fieldsType: FieldsV1
         fieldsV1:
           f:spec: {}
         manager: myapp
         operation: Update
         time: "2022-07-25T08:49:26Z"
       - apiVersion: apisix.apache.org/v2beta3
         fieldsType: FieldsV1
         fieldsV1:
           f:status: {}
         manager: apisix-ingress-controller
         operation: Update
         time: "2022-08-08T11:44:30Z"
       - apiVersion: apisix.apache.org/v2beta3
         fieldsType: FieldsV1
         fieldsV1:
           f:spec:
             f:http: {}
         manager: k8s-api
         operation: Update
         time: "2022-09-01T10:31:24Z"
     name: basik-k8s-prod
     namespace: ns-1
     resourceVersion: "1123054337"
     selfLink: 
/apis/apisix.apache.org/v2beta3/namespaces/ns-2277/apisixroutes/basik-k8s-prod
     uid: 3835e88a-9b88-4e84-81c5-5f43063e63dd
   spec:
     http:
       - authentication:
           enable: false
           type: basicAuth
         backends:
           - serviceName: basik-k8s-prod
             servicePort: 30096
             weight: 100
         match:
           hosts:
             - basik-k8s-prod.aii.com
           paths:
             - /*
         name: rule-0
         websocket: true
       - authentication:
           enable: false
           type: basicAuth
         backends:
           - serviceName: basik-k8s-prod
             servicePort: 30096
             weight: 100
         match:
           hosts:
             - zhiguanapi-basic.bbb.cn
           paths:
             - /openapi/*
         name: rule-1
         websocket: true
       - authentication:
           enable: false
           type: basicAuth
         backends:
           - serviceName: basik-k8s-prod
             servicePort: 30096
             weight: 100
         match:
           hosts:
             - zhiguanapi.ccc.cn
           paths:
             - /openapi_v2/*
         name: rule-2
         websocket: true
       - authentication:
           enable: false
           type: basicAuth
         backends:
           - serviceName: basik-k8s-prod
             servicePort: 30096
             weight: 100
         match:
           hosts:
             - zhiguanapi-basic.bbb.cn
           paths:
             - /openapi_v2/*
         name: rule-3
         websocket: true
   status:
     conditions:
       - message: Sync Successfully
         observedGeneration: 3
         reason: ResourcesSynced
         status: "True"
         type: ResourcesAvailable
   ```
   变化就是路由有原来的
   basik-k8s-prod.aii.com/*
   zhiguanapi-basic.bbb.cn/openapi*
   变成了 
   basik-k8s-prod.aii.com/*
   zhiguanapi-basic.bbb.cn/openapi/*
   zhiguanapi.ccc.cn/openapi_v2/*
   zhiguanapi-basic.bbb.cn/openapi_v2/*
   
   
   
当我重启了controller之后,路由才同步过来,现在看来apisixroute的状态显示同步成功,但是并没有同步到apisix中去,看源码没有找到原因,希望可以得到回复
   
   ### Actual result
   
   路由能够成功同步
   
   ### Error log
   
   没找到error log
   
   ### Expected result
   
   _No response_


-- 
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