-
Notifications
You must be signed in to change notification settings - Fork 387
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Move to Patch API on infra-client #2995
Comments
/cc @arkodg |
Hey @ardikabs I understand the need for the patch API, but can you help explain your issue a little more, why is the update repeating multiple times |
@arkodg |
Apart from the Update or Patch API, I also observed that the equality check on the Deployment object will always result in false (mean to trigger gateway/internal/infrastructure/kubernetes/infra_resource.go Lines 88 to 90 in c655811
This is also the reason why EG keeps reconciling the infrastructure resource on any operation to Gateway API/Envoy Gateway resource, even though there is no changed on the infra layer. For instance, when a user supplies non-default EnvoyDeployment but leaves the |
if this makes sense, I would like to work on this @arkodg |
Description:
Follow up from #2807, which is still happening in the latest version (v1.0.0). I noticed this behavior because the EG is utilizing the Update API instead of the Patch API in infra-client.
gateway/internal/infrastructure/kubernetes/infra_client.go
Lines 40 to 45 in c655811
As a result, instead of only updating the changed field, it turned out to re-applies all fields causing the field to revert to its original value, instead of updating what changed. For example on the Deployment object, if the replicas field is set to null, it will be reverted to null.
So, I tried in my local to use Patch API, and it worked as expected.
[optional Relevant Links:]
The text was updated successfully, but these errors were encountered: