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

   ### Issue description
   
   In the ApisixUpstream controller, [there is the logic to update 
status](https://github.com/apache/apisix-ingress-controller/blob/1.6.0/pkg/providers/apisix/apisix_upstream.go#L196),
 but there is no status sub-resource in the [CRD 
definition](https://github.com/apache/apisix-ingress-controller/blob/1.6.0/samples/deploy/crd/v1/ApisixUpstream.yaml#L408).
 It should be added.
   
   
   ### Environment
   
   - your apisix-ingress-controller version (output of 
apisix-ingress-controller version --long): 1.6.0
   - your Kubernetes cluster version (output of kubectl version):
   - if you run apisix-ingress-controller in Bare-metal environment, also show 
your OS version (uname -a):
   
   
   ### Minimal test code / Steps to reproduce
   
   1.
   
   ### Actual result
   
   ```shell
   $ kubectl  get au -o yaml
   
   apiVersion: v1
   items:
   - apiVersion: apisix.apache.org/v2
     kind: ApisixUpstream
     metadata:
       annotations:
         kubectl.kubernetes.io/last-applied-configuration: |
           
{"apiVersion":"apisix.apache.org/v2","kind":"ApisixUpstream","metadata":{"annotations":{},"name":"httpbin-upstream","namespace":"default"},"spec":{"externalNodes":[{"name":"httpbin.org","type":"Domain"}]}}
       creationTimestamp: "2023-01-30T03:02:05Z"
       generation: 1
       name: httpbin-upstream
       namespace: default
       resourceVersion: "18166983575"
       uid: 4f2efc9c-be5b-4edc-931d-c6b48a30cc1b
     spec:
       externalNodes:
       - name: httpbin.org
         type: Domain
   kind: List
   metadata:
     resourceVersion: ""
   ```
   
   ### Error log
   
   none
   
   ### Expected result
   
   Consistent with ApisixRoute resrouce, there is a status sub-resource.
   
   ```shell
   $ kubectl  get ar -o yaml
   
   apiVersion: v1
   items:
   - 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","upstreams":[{"name":"httpbin-upstream"}]}]}}
       creationTimestamp: "2023-01-30T03:02:06Z"
       generation: 1
       name: httpbin-route
       namespace: default
       resourceVersion: "18166983720"
       uid: 7f8df1bb-aa77-473d-aa6a-9e2ebc2ace46
     spec:
       http:
       - match:
           hosts:
           - local.httpbin.org
           paths:
           - /*
         name: rule1
         upstreams:
         - name: httpbin-upstream
     status:
       conditions:
       - message: Sync Successfully
         observedGeneration: 1
         reason: ResourcesSynced
         status: "True"
         type: ResourcesAvailable
   kind: List
   metadata:
     resourceVersion: ""
   ```


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