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

Parameterize config watcher loop speed #1322

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

Conversation

mingshuoqiu
Copy link

The original PR is #1232. This PR rebase the commit on top of the current master.

This loop spins really quickly otherwise. This will allow cluster operators to choose how quickly the thin plugin reconciles the kubeconfig in the event of a stale service account token.

@@ -627,6 +627,10 @@ master CNI configuration and kubeconfig. when such change detected, the script w

--skip-config-watch

The poll interval of the config changes watcher is configurable with `--multus-config-watch-timer=<duration>`

Copy link
Member

Choose a reason for hiding this comment

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

Let's also provide a link to whatever appropriate go docs about what are valid values for "duration" here. Otherwise, lgtm

Copy link
Author

Choose a reason for hiding this comment

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

@dougbtv Thanks. I've updated the description with the go doc link for the duration. Please let me know if any suggestions.

Copy link

Choose a reason for hiding this comment

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

@dougbtv Thanks for reviewing the PR. Can we merge the PR or is there something can do to make it better?

@coveralls
Copy link

Coverage Status

coverage: 64.033% (-0.07%) from 64.103%
when pulling 73d11b8 on mingshuoqiu:param-config-watcher-interval
into 3c33f6f on k8snetworkplumbingwg:master.

@mingshuoqiu mingshuoqiu force-pushed the param-config-watcher-interval branch from 73d11b8 to bdb8e19 Compare September 18, 2024 12:36
This loop spins really quickly otherwise. This will allow cluster
operators to choose how quickly the thin plugin reconciles the
kubeconfig in the event of a stale service account token.

BUG: k8snetworkplumbingwg#1232
Signed-off-by: Connor Kuehl <[email protected]>
Signed-off-by: Chris Chiu <[email protected]>
@mingshuoqiu mingshuoqiu force-pushed the param-config-watcher-interval branch from bdb8e19 to 0b2b14d Compare October 7, 2024 13:18
@mingshuoqiu
Copy link
Author

rebase on top of the latest adfb270 of k8snetworkplumbingwg:master

@mingshuoqiu mingshuoqiu requested a review from dougbtv October 7, 2024 13:26
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.

4 participants