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.

@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.

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 <connor.kuehl@suse.com>
Signed-off-by: Chris Chiu <chris.chiu@suse.com>
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.

3 participants