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

Drop dynamic run-time reconfiguration #1847

Merged
merged 1 commit into from
Sep 3, 2024

Conversation

marquiz
Copy link
Contributor

@marquiz marquiz commented Aug 19, 2024

Simplify the code and reduce possible error scenarios by dropping fsnotify-based reconfiguration from nfd-master and nfd-worker. Also eliminates repeated re-configuration in scenarios where kubelet continuosly touches the (every minute) mounted file (configmap) on the filesystem.

Also modifies the Helm and kustomize deployments so that nfd-master, nfd-worker and nfd-topology-updater pods are restarted on configmap updates. In kustomize, the slght downside of this is the name of the config map(s) depends on the content, so every time a user customizes the config data, the old unused configmap will be left and must be garbage-collected manually.

Fixes #1846

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: marquiz

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Aug 19, 2024
@marquiz
Copy link
Contributor Author

marquiz commented Aug 19, 2024

Waiting for feedback
/hold

@k8s-ci-robot k8s-ci-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Aug 19, 2024
Copy link

netlify bot commented Aug 19, 2024

Deploy Preview for kubernetes-sigs-nfd ready!

Name Link
🔨 Latest commit 02b6b73
🔍 Latest deploy log https://app.netlify.com/sites/kubernetes-sigs-nfd/deploys/66c5b78aa2707c0008d5f7bb
😎 Deploy Preview https://deploy-preview-1847--kubernetes-sigs-nfd.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@k8s-ci-robot k8s-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Aug 19, 2024
@marquiz marquiz force-pushed the devel/drop-fsnotify branch 6 times, most recently from b7b540f to 939a644 Compare August 19, 2024 14:21
@marquiz marquiz mentioned this pull request Aug 19, 2024
@k8s-ci-robot k8s-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Aug 20, 2024
@k8s-ci-robot k8s-ci-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Aug 21, 2024
Copy link
Member

@TessaIO TessaIO left a comment

Choose a reason for hiding this comment

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

Thanks @marquiz. Left some minor comments below

docs/usage/nfd-worker.md Outdated Show resolved Hide resolved
docs/usage/nfd-worker.md Outdated Show resolved Hide resolved
Simplify the code and reduce possible error scenarios by dropping
fsnotify-based reconfiguration from nfd-master and nfd-worker. Also
eliminates repeated re-configuration in scenarios where kubelet
continuosly touches the (every minute) mounted file (configmap) on the
filesystem.

Also modifies the Helm and kustomize deployments so that nfd-master,
nfd-worker and nfd-topology-updater pods are restarted on configmap
updates. In kustomize, the slght downside of this is the name of the
config map(s) depends on the content, so every time a user customizes
the config data, the old unused configmap will be left and must be
garbage-collected manually.
@marquiz
Copy link
Contributor Author

marquiz commented Aug 21, 2024

/retest

@TessaIO
Copy link
Member

TessaIO commented Aug 21, 2024

It was a nice feature, sadge..
/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Aug 21, 2024
@k8s-ci-robot
Copy link
Contributor

LGTM label has been added.

Git tree hash: 9dd19398742a801b3ed2f5cd5dd59f5d649ea5ff

@PiotrProkop
Copy link
Contributor

I like the change, +1 from me i guess we can remove hold label @marquiz

@marquiz
Copy link
Contributor Author

marquiz commented Sep 3, 2024

Thanks @PiotrProkop for taking a look at this
/unhold

@k8s-ci-robot k8s-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Sep 3, 2024
@k8s-ci-robot k8s-ci-robot merged commit 0fd0934 into kubernetes-sigs:master Sep 3, 2024
12 checks passed
@marquiz marquiz deleted the devel/drop-fsnotify branch September 3, 2024 10:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Drop run-time dynamic configuration updates
4 participants