Skip to content

NC | ConfigFS Refactoring #8258

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

Merged
merged 1 commit into from
Aug 7, 2024

Conversation

romayalon
Copy link
Contributor

@romayalon romayalon commented Aug 5, 2024

Explain the changes

  1. Added ConfigFS file for config directory manipulation.
  2. Removed functions from manage_nsfs_utils.js.
  3. Updated callers to use configFS -
    a. manage_nsfs.js (noobaa-cli) including manage_nsfs_validations.js.
    b. bucketspaceFS.js.
    c. accountspaceFS.js.
    d. Health CLI.
    e. NC Bucket Logging CLI.

Issues: Fixed #xxx / Gap #xxx

  1. Gap - ConfigFS API is not finalized.
  2. Gap - Tests were not updated to use ConfigFS, this way we can also test the correctness of ConfigFS itself without adding new tests. but we might want eventually to do it.

Testing Instructions:

  • Doc added/updated
  • Tests added

@romayalon romayalon requested review from guymguym and shirady August 5, 2024 16:25
@romayalon romayalon force-pushed the romy-refactor-config-dir branch 2 times, most recently from 7e5d01a to 4750d33 Compare August 6, 2024 05:43
@romayalon romayalon changed the title NC | ConfigFS refactoring NC | ConfigFS Refactoring Aug 6, 2024
Copy link
Contributor

@shirady shirady left a comment

Choose a reason for hiding this comment

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

Adding couple of comments

@romayalon romayalon force-pushed the romy-refactor-config-dir branch from de58395 to 2f8b769 Compare August 6, 2024 10:08
shirady added a commit to shirady/noobaa-core that referenced this pull request Aug 6, 2024
As part of adding the class ConfigFS (in PR noobaa#8258) and removing the term global_config in manage_nsfs - since this term was not clear enough and might cause confusion - we will change the constants that had GLOBAL_CONFIG_ as a prefix:
1. rename GLOBAL_CONFIG_ROOT_ALL_FLAG to CLI_MUTUAL_FLAGS
2. rename GLOBAL_CONFIG_ROOT to CONFIG_ROOT_FLAG
3. rename GLOBAL_CONFIG_OPTIONS to CLI_MUTUAL_OPTIONS

Signed-off-by: shirady <[email protected]>
Copy link
Member

Choose a reason for hiding this comment

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

yes, lets start here. this is our "shared library" source dir.

@romayalon romayalon force-pushed the romy-refactor-config-dir branch from b4e67ba to b0e7360 Compare August 7, 2024 08:46
@romayalon romayalon merged commit 63dcad4 into noobaa:master Aug 7, 2024
10 checks passed
nimrod-becker pushed a commit to nimrod-becker/noobaa-core that referenced this pull request Aug 12, 2024
As part of adding the class ConfigFS (in PR noobaa#8258) and removing the term global_config in manage_nsfs - since this term was not clear enough and might cause confusion - we will change the constants that had GLOBAL_CONFIG_ as a prefix:
1. rename GLOBAL_CONFIG_ROOT_ALL_FLAG to CLI_MUTUAL_FLAGS
2. rename GLOBAL_CONFIG_ROOT to CONFIG_ROOT_FLAG
3. rename GLOBAL_CONFIG_OPTIONS to CLI_MUTUAL_OPTIONS

Signed-off-by: shirady <[email protected]>
(cherry picked from commit 8c202b4)
dannyzaken pushed a commit to dannyzaken/noobaa-core that referenced this pull request Sep 29, 2024
As part of adding the class ConfigFS (in PR noobaa#8258) and removing the term global_config in manage_nsfs - since this term was not clear enough and might cause confusion - we will change the constants that had GLOBAL_CONFIG_ as a prefix:
1. rename GLOBAL_CONFIG_ROOT_ALL_FLAG to CLI_MUTUAL_FLAGS
2. rename GLOBAL_CONFIG_ROOT to CONFIG_ROOT_FLAG
3. rename GLOBAL_CONFIG_OPTIONS to CLI_MUTUAL_OPTIONS

Signed-off-by: shirady <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants