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

   ### Current Behavior
   
   Create a ApisixRoute with timeout, we can not find any `timeout` config in 
route via apisix-dashboard
   
   ### Expected Behavior
   
   `timeout config` sync successfully
   
   ### Error Logs
   
   no error log
   
   ### Steps to Reproduce
   
   1. install Apisix ingress controller via helm chart with version 1.6.0
   2. create a ApisixRoute with `timeout`:
   ```yaml
   apiVersion: apisix.apache.org/v2
   kind: ApisixUpstream
   metadata:
     name: httpbin-upstream
   spec:
     externalNodes:
       - type: Domain
         name: 127.0.0.1
         port: 8088
   ---
   apiVersion: apisix.apache.org/v2
   kind: ApisixRoute
   metadata:
     name: httpbin-route
   spec:
     http:
       - name: rule1
         timeout:
           connect: 60s
           read: 60s
           send: 60s
         match:
           hosts:
             - local.httpbin.org
           paths:
             - /*
         upstreams:
           - name: httpbin-upstream
   ```
   3. check this ApisixRoute with kubectl command: `kubectl get ar 
httpbin-route -o yaml`, output:
   ```yaml
   apiVersion: apisix.apache.org/v2
   kind: ApisixRoute
   metadata:
     annotations:
       kubectl.kubernetes.io/last-applied-configuration: |
         
{"apiVersion":"apisix.apache.org/v2","kind":"ApisixRoute","metadata":{"annotations":{},"name":"httpbin-route","namespace":"default"},"spec":{"http":[{"match":{"hosts":["local.httpbin.org"],"paths":["/*"]},"name":"rule1","timeout":{"connect":"60s","read":"60s","send":"60s"},"upstreams":[{"name":"httpbin-upstream"}]}]}}
     creationTimestamp: "2023-03-21T07:35:14Z"
     generation: 1
     name: httpbin-route
     namespace: default
     resourceVersion: "210787"
     uid: d51925fb-a30b-4af6-9aae-6cdc5e3b7e88
   spec:
     http:
     - match:
         hosts:
         - local.httpbin.org
         paths:
         - /*
       name: rule1
       timeout:
         connect: 60s
         read: 60s
         send: 60s
       upstreams:
       - name: httpbin-upstream
   status:
     conditions:
     - message: Sync Successfully
       observedGeneration: 1
       reason: ResourcesSynced
       status: "True"
       type: ResourcesAvailable
   ```
   4. check this route via apisix-dashboard:
   - upstream data: 
   ```yaml
   {
     "nodes": [
       {
         "host": "127.0.0.1",
         "port": 8088,
         "weight": 100
       }
     ],
     "type": "roundrobin",
     "hash_on": "vars",
     "scheme": "http",
     "pass_host": "pass",
     "name": "default_httpbin-upstream",
     "desc": "Created by apisix-ingress-controller, DO NOT modify it manually",
     "labels": {
       "managed-by": "apisix-ingress-controller",
       "meta_weight": "100"
     }
   }
   ```
   - route data:
   ```yaml
   {
     "uris": [
       "/*"
     ],
     "name": "default_httpbin-route_rule1",
     "desc": "Created by apisix-ingress-controller, DO NOT modify it manually",
     "hosts": [
       "local.httpbin.org"
     ],
     "upstream_id": "f69035a2",
     "labels": {
       "managed-by": "apisix-ingress-controller"
     },
     "status": 1
   }
   ```
   
   
   
   ### Environment
   
   - APISIX Ingress controller version (run `apisix-ingress-controller version 
--long`)
   ```sh
   Version: 1.6.0
   Git SHA: no-git-module
   Go Version: go1.19.4
   Building OS/Arch: linux/amd64
   Running OS/Arch: linux/amd64
   ```
   - Kubernetes cluster version (run `kubectl version`)
   ```sh
   Client Version: version.Info{Major:"1", Minor:"25", GitVersion:"v1.25.4", 
GitCommit:"872a965c6c6526caa949f0c6ac028ef7aff3fb78", GitTreeState:"clean", 
BuildDate:"2022-11-09T13:36:36Z", GoVersion:"go1.19.3", Compiler:"gc", 
Platform:"darwin/amd64"}
   Kustomize Version: v4.5.7
   Server Version: version.Info{Major:"1", Minor:"25", GitVersion:"v1.25.4", 
GitCommit:"872a965c6c6526caa949f0c6ac028ef7aff3fb78", GitTreeState:"clean", 
BuildDate:"2022-11-09T13:29:58Z", GoVersion:"go1.19.3", Compiler:"gc", 
Platform:"linux/amd64"}
   
   ```
   - OS version if running APISIX Ingress controller in a bare-metal 
environment (run `uname -a`)
   ```sh
   Darwin fabricedeMacBook-Pro.local 22.3.0 Darwin Kernel Version 22.3.0: Mon 
Jan 30 20:42:11 PST 2023; root:xnu-8792.81.3~2/RELEASE_X86_64 x86_64
   ```
   


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