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

add support to set up watcher via update function #227

Merged
merged 1 commit into from Oct 6, 2021

Conversation

jgheewala
Copy link
Contributor

No description provided.

Copy link
Contributor

@mdubbyap mdubbyap left a comment

Choose a reason for hiding this comment

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

I feel like more comments would be goodn specifically clientCfgChangerSinkInitHelper and why it's needed

clientcfg/client.go Outdated Show resolved Hide resolved
@jgheewala jgheewala force-pushed the add_support_to_not_set_auth_watcher branch from 283ce0d to acbe3b9 Compare October 6, 2021 01:04
If a user of ClientConfigChangerSink doesn't want auth watcher, then
currently there is no way to do so. Hence, introduced a new API
SetupSinkClientChanger which will accept init ClientConfigChangerSink
with the authToken that is provided. If the users later on wants to
update auth token it can be done using API AuthUpdate.

Above changes give freedom to caller for not setting auth watcher which
in some cases might not be required at all
@jgheewala jgheewala force-pushed the add_support_to_not_set_auth_watcher branch from acbe3b9 to 236aa86 Compare October 6, 2021 02:08
@jgheewala jgheewala merged commit 58a037b into master Oct 6, 2021
@keitwb keitwb deleted the add_support_to_not_set_auth_watcher branch October 6, 2021 17:25
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.

None yet

2 participants