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

lakefs config.yaml align name and search order #2372

Merged
merged 7 commits into from
Aug 23, 2021
Merged

Conversation

nopcoder
Copy link
Contributor

lakefs service configuration - align the filename and search locations to other services, with fallback support:

  • configuration file named lakefs.yaml
  • search for /etc/lakefs/config.yaml
  • search for $HOME/.lakefs/config.yaml
  • search for ./config.yaml
  • (fallback) search for $HOME/.lakefs.yaml

Close #2355

@nopcoder nopcoder self-assigned this Aug 15, 2021
@nopcoder nopcoder requested review from arielshaqed and removed request for arielshaqed August 15, 2021 14:54
Copy link
Contributor

@arielshaqed arielshaqed left a comment

Choose a reason for hiding this comment

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

Great! I don't understand why we search explicitly for the config file in the home directory after configuring Viper to search for it anyway; see comment inline.

The above is not necessarily blocking. Requested changes are all in documentation:

  1. Please document the location of the configuration file.
  2. Please add a row to CHANGELOG.md, this change is (very) user-visible.

cmd/lakefs/cmd/root.go Show resolved Hide resolved
@nopcoder nopcoder force-pushed the chore/service-config branch 2 times, most recently from a7d6ed9 to bf2784d Compare August 18, 2021 10:57
@nopcoder nopcoder requested a review from arielshaqed August 18, 2021 11:06
@nopcoder nopcoder force-pushed the chore/service-config branch from ce23397 to 48b5dc0 Compare August 20, 2021 12:04
Copy link
Contributor

@arielshaqed arielshaqed left a comment

Choose a reason for hiding this comment

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

Thanks!

CHANGELOG.md Outdated Show resolved Hide resolved
docs/reference/configuration.md Outdated Show resolved Hide resolved
nopcoder and others added 6 commits August 23, 2021 13:17
- configuration file named lakefs.yaml
- search for /etc/lakefs/config.yaml
- search for $HOME/.lakefs/config.yaml
- search for ./config.yaml
- (fallback) search for $HOME/.lakefs.yaml
Co-authored-by: arielshaqed <ariels@treeverse.io>
@nopcoder nopcoder force-pushed the chore/service-config branch from d4f28f5 to acbc3bc Compare August 23, 2021 10:19
@nopcoder nopcoder merged commit a4fe9cf into master Aug 23, 2021
@nopcoder nopcoder deleted the chore/service-config branch August 23, 2021 11:34
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.

lakeFS configuration should load from a standard service location
2 participants