solo-io / gloo-portal-issues

Public tracker for issues related to Gloo Portal
https://docs.solo.io/gloo-portal/latest/
1 stars 3 forks source link

version [...] does not exist on API Product [...] #96

Closed bcollard closed 3 years ago

bcollard commented 3 years ago

Describe the bug Given an existing Environment referencing apiproducts as in:

  apiProducts:
    - namespaces:
      - "*" 
      labels:
      - key: app
        operator: In
        values:
        - petstore
      versions:
        names:
        - v1
        - v2

If I remove the v2 from the targeted APIProduct, then the controller reports this error:

status:
  modifiedDate: "2021-08-16T12:58:28.979262736Z"
  observedGeneration: 1
  reason: version [v1] does not exist on API Product [petstore-product.default]
  state: Invalid

Expected behavior

Additional context Add any other context about the problem here, e.g.

bcollard commented 3 years ago

my bad! it was due to an error of mine!