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

refactor(ui): Simplify process of adding user.props (w/ docs) #4296

Merged
merged 4 commits into from
Mar 4, 2022

Conversation

jjoyce0510
Copy link
Collaborator

Simplify adding users to creating a local user.props at a specific location. When DataHub starts, it will automatically try to mount the custom user.props file to make the process as easy as possible. Also adding docs!

Checklist

  • The PR conforms to DataHub's Contributing Guideline (particularly Commit Message Format)
  • Links to related issues (if applicable)
  • Tests for the changes have been added/updated (if applicable)
  • Docs related to the changes have been added/updated (if applicable)

## (Advanced) Mount custom user.props file to container

This step is only required when mounting custom credentials into a Kubernetes pod (e.g. Helm) **or** if you want to change
the default filesystem location where DataHub checks for a custom `user.props` file (`${HOME}/.datahub/plugins/auth/user.props)`.
Copy link
Contributor

Choose a reason for hiding this comment

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

isn't this /etc/datahub/plugins/auth/user.props (as seen inside the container)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

No - this is if ${HOME}/.datahub/... doesn't work as a source location for you

@github-actions
Copy link

github-actions bot commented Mar 2, 2022

Unit Test Results (build & test)

  71 files  ±0    71 suites  ±0   10m 7s ⏱️ - 7m 11s
618 tests ±0  559 ✔️ ±0  59 💤 ±0  0 ±0 

Results for commit a6fc887. ± Comparison against base commit 520968b.

♻️ This comment has been updated with latest results.

@@ -47,7 +52,8 @@ For example, to mount a user.props file that is stored on my local filesystem at
.....
# The new stuff
volumes:
- <path-to-your-user.props>:/datahub-frontend/conf/user.props
- ${HOME}/.datahub/plugins:/etc/datahub/plugins
Copy link
Contributor

Choose a reason for hiding this comment

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

have we tested this? where we have /etc/datahub/plugins being mounted and then another directory inside of this directory /etc/datahub/plugins/auth also being mounted

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

No - I've not tested this yet. I should though, thanks! The issue with removing the original mounting is that it could have other stuff in it also later down the road

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I did test this. It works!

@shirshanka shirshanka merged commit acf6eaa into datahub-project:master Mar 4, 2022
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