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
In the next update, I am expecting to pass nil/empty resource and version 2 to above call.
I was hoping that it would generate a snapshot with updated version and empty resources, but I get something like this -
This issue has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in the next 7 days unless it is tagged "help wanted" or "no stalebot" or other activity occurs. Thank you for your contributions.
Hey,
From the current implementation at https://github.com/envoyproxy/go-control-plane/blob/main/pkg/cache/v3/snapshot.go#L51, you need to provide the types you are explicitly setting to "empty". The current snapshot cache code work with a logic per type (even if the current snapshot API "constructors" don't let you set distinct versions). This could be used for instance to avoid sending updates for unchanged types in sotw version if nothing has changed for a given type
I have a query below.
I pass a valid resource and a version (lets say 1) to below method -
In the next update, I am expecting to pass nil/empty resource and version 2 to above call.
I was hoping that it would generate a snapshot with updated version and empty resources, but I get something like this -
Because of version not present in new snapshot the
RespondDelta
gives empty version like this and my envoy config does not get updated in time.Is there way to handle this situation or is this behaviour expected because of any reason ?
The text was updated successfully, but these errors were encountered: