-
Notifications
You must be signed in to change notification settings - Fork 1.5k
fix(ssi): wait for RC before inject-all #55376
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
Closed
Closed
Changes from 1 commit
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
releasenotes-dca/notes/ssi-inject-all-waits-rc-ef94f1e57ea71908.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| # Each section from every release note are combined when the | ||
| # CHANGELOG-DCA.rst is rendered. So the text needs to be worded so that | ||
| # it does not depend on any information only available in another | ||
| # section. This may mean repeating some details, but each section | ||
| # must be readable independently of the other. | ||
| # | ||
| # Each section note must be formatted as reStructuredText. | ||
| --- | ||
| fixes: | ||
| - | | ||
| Single Step Instrumentation no longer instruments every eligible pod while | ||
| the Cluster Agent is still waiting for the first Remote Config workload | ||
| selection snapshot. Pods created in that window are left unchanged until | ||
| remote policies arrive, or until an empty snapshot confirms that the | ||
| organization has no remote policies. | ||
|
iamluc marked this conversation as resolved.
Outdated
|
||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If nothing has called client.Subscribe(state.ProductApmPolicies, ) then this sync is pretty meaningless for you as you won't get ApmPolicies products without the subscribe. (which I think is what the AI model is calling out below)
If you know something has called subscribe already, then I'm confused about the intent of this code.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
APM_POLICIESis already inWithProductswhen the cluster-agent builds the client, beforeStart()and before this subscribe.Subscribewould register it if it weren't already there; here it just attaches the callback, the product is already on the wire.HasSyncedwas just "has that first poll finished?", so we wouldn't treat an empty cache as "no policies" too early.A global sync flag is still the wrong signal though. It doesn't say which products were actually requested. Dropped it. The mutator now uses
SubscribeAll(..., WithInitialUpdate()): you get called once there is an answer for that product (including empty). If a poll that requested it has already completed, that happens during Subscribe; otherwise on the first poll that does.And the wait is bounded, after a minute we instrument anyway, rather than silently withhold SSI from a configuration that asked for it.
WDYT?