Skip to content

Cloudfuse service linux cmd#338

Merged
Dabnsky merged 71 commits intomainfrom
cloudfuse-service-linux-cmd
Feb 4, 2025
Merged

Cloudfuse service linux cmd#338
Dabnsky merged 71 commits intomainfrom
cloudfuse-service-linux-cmd

Conversation

@Dabnsky
Copy link
Copy Markdown
Contributor

@Dabnsky Dabnsky commented Oct 10, 2024

What type of Pull Request is this? (check all applicable)

  • Refactor
  • Feature
  • Bug Fix
  • Optimization
  • Documentation Update

Describe your changes in brief

This adds the following commands available to the cloudfuse executable:
cloudfuse service install
cloudfuse service uninstall

Checklist

  • Tested locally
  • Added new dependencies
  • Updated documentation
  • Added tests

Related Issues

  • Related Issue #
  • Closes #

@foodprocessor foodprocessor removed the request for review from brayan-trejo October 31, 2024 17:52
@Dabnsky Dabnsky marked this pull request as ready for review November 1, 2024 17:32
Comment thread cmd/service_linux.go Outdated
Comment thread cmd/service_linux.go
Comment thread cmd/service_linux.go Outdated
Comment thread cmd/service_linux.go Outdated
Comment thread cmd/service_linux.go Outdated
Comment thread cmd/service_linux.go
Comment thread cmd/service_linux.go Outdated
Comment thread cmd/service_linux.go Outdated
Comment thread cmd/service_linux.go Outdated
@Dabnsky Dabnsky marked this pull request as draft November 8, 2024 21:12
Comment thread cmd/service_linux.go Outdated
Comment thread cmd/service_linux.go Outdated
Comment thread cmd/service_linux.go Outdated
Comment thread cmd/service_linux.go Outdated
Comment thread cmd/service_linux.go Outdated
Comment thread cmd/service_linux.go Outdated
Comment thread cmd/service_linux.go Outdated
Comment thread cmd/service_linux.go Outdated
Comment thread cmd/service_linux.go Outdated
Comment thread cmd/service_linux.go Outdated
-changed collectServiceData() to extractValue() that outputs value from file for provided key

-changed setUser() to use SUDO_USER env variable to add to service user group. and adjusted permissions for service user.
-corrected typo of moutingpoint that came from cloudfuse.service template file
@Dabnsky Dabnsky requested a review from foodprocessor January 16, 2025 20:08
Comment thread cmd/service_linux.go Outdated
Comment thread cmd/service_linux.go Outdated
Comment thread cmd/service_linux.go Outdated
Comment thread cmd/service_linux.go
@Dabnsky Dabnsky requested a review from foodprocessor January 23, 2025 19:33
Copy link
Copy Markdown
Contributor

@jfantinhardesty jfantinhardesty left a comment

Choose a reason for hiding this comment

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

Looks pretty close. A few things to fix:

  1. The linter is giving errors. Fix the lint issues in this file so that all of the tests in GitHub actions are green.
  2. The uninstall command does not work. You set serviceName in the uninstall command options when the user passes in mount-path but then don't use it and refer to the mountPath variable in the uninstallCmd function so then you are not able to uninstall the service. You should probably remove the serviceName and just use the mountPath variable. Test to make sure that this change works.
  3. On line 220, that fmt.Println should not end with a newline character since this is newline it will insert one automatically.
  4. You should merge main into this branch and then update the copyright header so it is 2023-2025.

Comment thread cmd/service_linux.go Outdated
Comment thread cmd/service_linux.go
Copy link
Copy Markdown
Contributor

@foodprocessor foodprocessor left a comment

Choose a reason for hiding this comment

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

Looks great!

Comment thread cmd/service_linux.go Outdated
@Dabnsky Dabnsky merged commit 268390a into main Feb 4, 2025
@Dabnsky Dabnsky deleted the cloudfuse-service-linux-cmd branch February 4, 2025 21:28
@Dabnsky
Copy link
Copy Markdown
Contributor Author

Dabnsky commented Feb 4, 2025

datalake error fixed in separate PR that was holding up the last code coverage test

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