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

[v16] Cache Kubernetes App Discovery port check results #50342

Merged
merged 3 commits into from
Dec 17, 2024

Conversation

marcoandredinis
Copy link
Contributor

Backport #50286 to branch/v16

For the K8S Services that we couldn't auto detect the protocol, after
trying to infer the port, cache the result.
Cache is evicted when the K8S Service changes (we check the Service's
ResourceVersion).
@marcoandredinis marcoandredinis added the no-changelog Indicates that a PR does not require a changelog entry label Dec 17, 2024
Copy link

This pull request is automatically being deployed by Amplify Hosting (learn more).

Access this pull request here: https://pr-50342.d1v2yqnl3ruxch.amplifyapp.com

@marcoandredinis marcoandredinis added this pull request to the merge queue Dec 17, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Dec 17, 2024
@marcoandredinis marcoandredinis added this pull request to the merge queue Dec 17, 2024
github-merge-queue bot pushed a commit that referenced this pull request Dec 17, 2024
* Cache Kubernetes App Discovery port check results

For the K8S Services that we couldn't auto detect the protocol, after
trying to infer the port, cache the result.
Cache is evicted when the K8S Service changes (we check the Service's
ResourceVersion).

* add mutex to cached responses

* fix flaky test when hitting the HTTPS server
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Dec 17, 2024
@marcoandredinis marcoandredinis added this pull request to the merge queue Dec 17, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Dec 17, 2024
@marcoandredinis marcoandredinis added this pull request to the merge queue Dec 17, 2024
Merged via the queue into branch/v16 with commit 6257d53 Dec 17, 2024
42 of 43 checks passed
@marcoandredinis marcoandredinis deleted the bot/backport-50286-branch/v16 branch December 17, 2024 17:48
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/sm
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants