Skip to content

[1.13] Fix PushContext.sidecarIndex.rootConfig flipping issue (#40575)#41253

Merged
istio-testing merged 2 commits intoistio:release-1.13from
howardjohn:13/fix-root-config
Oct 3, 2022
Merged

[1.13] Fix PushContext.sidecarIndex.rootConfig flipping issue (#40575)#41253
istio-testing merged 2 commits intoistio:release-1.13from
howardjohn:13/fix-root-config

Conversation

@howardjohn
Copy link
Copy Markdown
Member

@howardjohn howardjohn commented Oct 3, 2022

When a PushRequest doesn't have Service/VirtualService/DestinationRule/Sidecar change, in PushContext.updateContext(), initSidecarScopes() will not be invoked, new PushContext only copies sidecarIndex.sidecarsByNamespace from old one, sidecarIndex.rootConfig becomes nil.

When workload namespace doesn't have Sidecar resource, this causes new ADS connection's SidecarScope being created by DefaultSidecarScopeForNamespace(), the global default sidecar in istio root namespace is not respected.

(cherry picked from commit 5da33de)

Please provide a description of this PR:

l8huang and others added 2 commits October 3, 2022 11:29
When a PushRequest doesn't have Service/VirtualService/DestinationRule/Sidecar change,
in PushContext.updateContext(), initSidecarScopes() will not be invoked, new PushContext
only copies sidecarIndex.sidecarsByNamespace from old one, sidecarIndex.rootConfig becomes
nil.

When workload namespace doesn't have Sidecar resource, this causes new ADS connection's
SidecarScope being created by DefaultSidecarScopeForNamespace(), the global default
sidecar in istio root namespace is not respected.

(cherry picked from commit 5da33de)
@howardjohn howardjohn requested a review from a team October 3, 2022 18:30
@istio-testing istio-testing added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Oct 3, 2022
@istio-testing istio-testing merged commit e31b1a7 into istio:release-1.13 Oct 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/S Denotes a PR that changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants