You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the validation webhook failurePolicy is set to Fail, we treat the CRs that come with the gloo helm chart (Gateways for OSS, extauth/ratelimit upstreams for EE) as helm hook resources so that we can ensure they get installed in a specific order (i.e. after the validation service is ready).
This can cause issues on upgrades if the extauth/ratelimit upstreams are being used, because helm will delete and recreate the hook resources during the upgrade. When helm tries to delete the upstreams, the validation service gets called, which checks if the upstream deletion would cause any translation errors. If a Proxy is referencing the upstreams, a translation error will occur and the validation service will reject the deletion of the upstreams, causing the helm upgrade to fail.
Steps to reproduce the bug
Install GlooEE with custom htttp gateway config that references the upstreams:
client.go:252: [debug] Deleting "extauth" in gloo-system...
client.go:267: [debug] Failed to delete "upstreams/extauth", err: admission webhook "gateway.gloo-system.svc" denied the request: resource incompatible with current Gloo snapshot: [failed to validate Proxy with Gloo validation server: HttpListener Error: ProcessingError. Reason: extauth server upstream not found name:"extauth" namespace:"gloo-system"]
client.go:252: [debug] Deleting "rate-limit" in gloo-system...
client.go:267: [debug] Failed to delete "upstreams/rate-limit", err: admission webhook "gateway.gloo-system.svc" denied the request: resource incompatible with current Gloo snapshot: [failed to validate Proxy with Gloo validation server: HttpListener Error: ProcessingError. Reason: ratelimit server upstream not found name:"rate-limit" namespace:"gloo-system"; HttpListener Error: ProcessingError. Reason: ratelimit server upstream not found name:"rate-limit" namespace:"gloo-system"]
Expected Behavior
upgrade should succeed
Additional Context
No response
The text was updated successfully, but these errors were encountered:
Gloo Edge Version
1.11.x (latest stable)
Kubernetes Version
No response
Describe the bug
When the validation webhook failurePolicy is set to Fail, we treat the CRs that come with the gloo helm chart (Gateways for OSS, extauth/ratelimit upstreams for EE) as helm hook resources so that we can ensure they get installed in a specific order (i.e. after the validation service is ready).
This can cause issues on upgrades if the extauth/ratelimit upstreams are being used, because helm will delete and recreate the hook resources during the upgrade. When helm tries to delete the upstreams, the validation service gets called, which checks if the upstream deletion would cause any translation errors. If a Proxy is referencing the upstreams, a translation error will occur and the validation service will reject the deletion of the upstreams, causing the helm upgrade to fail.
Steps to reproduce the bug
Install GlooEE with custom htttp gateway config that references the upstreams:
Install petstore service
and a VS that routes to it:
Upgrade GlooEE, with failurePolicy=Fail:
Errors like this will be seen:
Expected Behavior
upgrade should succeed
Additional Context
No response
The text was updated successfully, but these errors were encountered: