Skip to content
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

[v17] DiscoveryConfigStatus: update even when no resource is found #50766

Merged
merged 1 commit into from
Jan 7, 2025

Conversation

marcoandredinis
Copy link
Contributor

Backport #50433 to v17

@marcoandredinis marcoandredinis added the no-changelog Indicates that a PR does not require a changelog entry label Jan 6, 2025
@github-actions github-actions bot requested review from espadolini and Joerger January 6, 2025 13:42
@marcoandredinis marcoandredinis force-pushed the marco/v17/backport_50433 branch from a216f39 to 4e89680 Compare January 6, 2025 16:13
* DiscoveryConfigStatus: update even when no resource is found

During Auto Discover, when using a DiscoveryConfig, if no resources are
found, the DiscoveryConfigStatus is not updated accordingly.

This PR ensures that, even when no resources are found, the status will
report so.

* use comparable instead of any for generic method

* remove useless un-named function on PreFetchHooks

* prevent call to ssm:SendCommand with 0 instances

* rename var from ok to found
@marcoandredinis marcoandredinis force-pushed the marco/v17/backport_50433 branch from 4e89680 to ce37330 Compare January 7, 2025 10:15
@public-teleport-github-review-bot public-teleport-github-review-bot bot removed the request for review from Joerger January 7, 2025 11:48
@marcoandredinis marcoandredinis added this pull request to the merge queue Jan 7, 2025
Merged via the queue into branch/v17 with commit 083798c Jan 7, 2025
39 checks passed
@marcoandredinis marcoandredinis deleted the marco/v17/backport_50433 branch January 7, 2025 12:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport discovery no-changelog Indicates that a PR does not require a changelog entry size/md
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants