-
Notifications
You must be signed in to change notification settings - Fork 490
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
base: master
Are you sure you want to change the base?
[node-agent] Perform hosts probing on RegistryConfig.Hosts
change
#11008
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: 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 |
/assign |
@dimitar-kostadinov: The following tests failed, say
Full PR test history. Your PR dashboard. Command help for this repository. 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. |
There was a problem hiding this 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++ { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for i := 0; i < len(newRegistries); i++ { | |
for i := range newRegistries { |
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 mirrorURL
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: