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

[node-agent] Perform hosts probing on RegistryConfig.Hosts change #11008

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dimitar-kostadinov
Copy link
Contributor

How to categorize this PR?

/area robustness
/kind enhancement

What this PR does / why we need it:
There are cases where RegistryConfig.Hosts is changed, e.g. CACerts is added or rotated, the mirror URL is updated, etc. Is such cases the hosts probing should be performed to ensure that new configuration is valid.

Which issue(s) this PR fixes:
Part of gardener-extension-registry-cache/issues/290

Special notes for your reviewer:
N/A

Release note:

`gardener-node-agent` now performs host probing when `RegistryConfig.Hosts` changes.

Copy link
Contributor

gardener-prow bot commented Dec 10, 2024

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign plkokanov for approval. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found 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 cla: no Indicates the PR's author has not signed the cla-assistant.io CLA. cla: yes Indicates the PR's author has signed the cla-assistant.io CLA. and removed cla: no Indicates the PR's author has not signed the cla-assistant.io CLA. labels Dec 10, 2024
@ialidzhikov
Copy link
Member

/assign

Copy link
Contributor

gardener-prow bot commented Dec 10, 2024

@dimitar-kostadinov: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
pull-gardener-e2e-kind-ha-single-zone 1c09b76 link true /test pull-gardener-e2e-kind-ha-single-zone
pull-gardener-e2e-kind-operator-seed 1c09b76 link true /test pull-gardener-e2e-kind-operator-seed

Full PR test history. Your PR dashboard. Command help for this repository.
Please help us cut down on flakes by linking this test failure to an open flake report or filing a new flake report if you can't find an existing one. Also see our testing guideline for how to avoid and hunt flakes.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

Copy link
Contributor

@Kostov6 Kostov6 left a comment

Choose a reason for hiding this comment

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

Nit

@@ -315,3 +320,16 @@ func computeContainerdRegistryDiffs(newRegistries, oldRegistries []extensionsv1a

return r
}

func suppressHostsProbing(newRegistries, oldRegistries []extensionsv1alpha1.RegistryConfig) {
for i := 0; i < len(newRegistries); i++ {
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
for i := 0; i < len(newRegistries); i++ {
for i := range newRegistries {

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/robustness Robustness, reliability, resilience related cla: yes Indicates the PR's author has signed the cla-assistant.io CLA. kind/enhancement Enhancement, improvement, extension 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.

3 participants