-
Notifications
You must be signed in to change notification settings - Fork 1.2k
:sparkles, minor [WIP] Autoload on tls changes #395
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
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: anthonyho007 If they are not already assigned, you can assign the PR to them by writing 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 |
@anthonyho007: PR needs rebase. 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/test-infra repository. |
for { | ||
select { | ||
case event := <-watcher.Events: | ||
if event.Op&fsnotify.Write == fsnotify.Write { |
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.
I doubt if it will work, since when a secret get updated it actually triggers a rename event. Ref: algorithm of volume writer.
if err != nil { | ||
return err | ||
} | ||
defer watcher.Close() |
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.
function autoloadTLS
is not waiting for the child goroutine you created in line 66.
So when it finishes the execution and the watcher
is closed. The child goroutine is not doing anything useful anymore.
log logr.Logger | ||
} | ||
|
||
func (w *wrappedTLS) setLogger(logger logr.Logger) error { |
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.
It seems this functions is not used anywhere.
Sorry for the late review. |
Closing in favor of #421 |
To be update description
Fixes:
#390