Skip to content

chore(linux): simplify API server outbound connection check logic#8523

Merged
cameronmeissner merged 3 commits into
mainfrom
cameissner/simplify-apiserver-check
May 14, 2026
Merged

chore(linux): simplify API server outbound connection check logic#8523
cameronmeissner merged 3 commits into
mainfrom
cameissner/simplify-apiserver-check

Conversation

@cameronmeissner
Copy link
Copy Markdown
Contributor

What this PR does / why we need it:

simplify API server outbound connection check logic to reduce API_SERVER_NAME regex comparisons and improve readability

Which issue(s) this PR fixes:

Fixes #

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Simplifies the API server outbound connection check by consolidating the API_SERVER_CONN_RETRIES assignment into the FQDN branch, avoiding a redundant *.privatelink.* regex comparison.

Changes:

  • Moved API_SERVER_CONN_RETRIES=50 inside the FQDN (non-IP) branch.
  • Moved the privatelink override of API_SERVER_CONN_RETRIES=100 into the existing privatelink conditional.
  • Relocated VALIDATION_ERR=0 and the TODO comment.

Comment thread parts/linux/cloud-init/artifacts/cse_main.sh
Comment thread parts/linux/cloud-init/artifacts/cse_main.sh
@cameronmeissner cameronmeissner enabled auto-merge (squash) May 14, 2026 22:20
@cameronmeissner cameronmeissner disabled auto-merge May 14, 2026 22:28
@cameronmeissner cameronmeissner merged commit bce0574 into main May 14, 2026
31 of 33 checks passed
@cameronmeissner cameronmeissner deleted the cameissner/simplify-apiserver-check branch May 14, 2026 22:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants