Skip to content

app: backend: Add flag for watching plugins changes #3160

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

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

Conversation

skoeva
Copy link
Collaborator

@skoeva skoeva commented Apr 23, 2025

This change creates a CLI flag in the backend + desktop for watching changes to the plugins or their directory.

Fixes: #2894, follow-up from #2939

Testing

Backend

  • Run make backend
  • Run cd backend && ./headlamp-server -watch-plugins-changes false

Desktop

  • Run cd app && npm run build
  • Run cd dist/linux-unpacked && ./headlamp -watch-plugins-changes false and ensure that the flag is passed in

This change creates a CLI flag in the backend + desktop for watching
changes to the plugins or their directory.

Stops watching for plugin changes in the container image.

Signed-off-by: Evangelos Skopelitis <[email protected]>
Signed-off-by: René Dudfield <[email protected]>
@skoeva skoeva added backend Issues related to the backend app labels Apr 23, 2025
@skoeva skoeva self-assigned this Apr 23, 2025
@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Apr 23, 2025
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: skoeva
Once this PR has been reviewed and has the lgtm label, please assign illume for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found 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 requested review from ashu8912 and sniok April 23, 2025 14:21
@k8s-ci-robot k8s-ci-robot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Apr 23, 2025
@skoeva skoeva force-pushed the plugins-watch-option-2 branch from f23870c to 6db08a2 Compare April 23, 2025 14:37
@k8s-ci-robot k8s-ci-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. and removed size/S Denotes a PR that changes 10-29 lines, ignoring generated files. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Apr 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
app backend Issues related to the backend cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add flag to disable plugins watch
2 participants