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

Only update network policy allow-to-runtime-apiserver after resolver has been synced #9644

Merged

Conversation

MartinWeindel
Copy link
Member

How to categorize this PR?

/area control-plane
/kind bug

What this PR does / why we need it:
The lookup of the IP address of the kube-apiserver via DNS from its external domain name can take some several seconds in rare situations due to network issues. In these cases, the network policy allow-to-runtime-apiserver must not be updated until the resolver has resolved the domain name successfully. Especially on startup of the gardenlet, the first reconciliation of the network policy can occur too early.
A check is added to skip the update of the network policy in such situations.

Which issue(s) this PR fixes:
Fixes #

Special notes for your reviewer:

Release note:

Only update network policy `allow-to-runtime-apiserver` after resolver has been synced.

@gardener-prow gardener-prow bot added area/control-plane Control plane related kind/bug Bug cla: yes Indicates the PR's author has signed the cla-assistant.io CLA. labels Apr 23, 2024
@gardener-prow gardener-prow bot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Apr 23, 2024
Co-authored-by: Rafael Franzke <rafael.franzke@sap.com>
Copy link
Member

@rfranzke rfranzke left a comment

Choose a reason for hiding this comment

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

/lgtm

@gardener-prow gardener-prow bot added the lgtm Indicates that a PR is ready to be merged. label Apr 23, 2024
Copy link
Contributor

gardener-prow bot commented Apr 23, 2024

LGTM label has been added.

Git tree hash: d95248eefe9e0960502cd5bec10bfb85a5452334

@axel7born
Copy link
Contributor

/lgtm

@rfranzke
Copy link
Member

/approve

Copy link
Contributor

gardener-prow bot commented Apr 23, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: rfranzke

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@gardener-prow gardener-prow bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Apr 23, 2024
@gardener-prow gardener-prow bot merged commit f835986 into gardener:master Apr 23, 2024
17 checks passed
@MartinWeindel MartinWeindel deleted the fix/update-netpol-apiserver branch May 15, 2024 08:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. area/control-plane Control plane related cla: yes Indicates the PR's author has signed the cla-assistant.io CLA. kind/bug Bug lgtm Indicates that a PR is ready to be merged. 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.

None yet

3 participants