-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
chore(manifests): Move metadata to third-party and add overlay for separate db #5345
chore(manifests): Move metadata to third-party and add overlay for separate db #5345
Conversation
880fa94
to
7794566
Compare
Hi @yanniszark, thank you for the PR! I have some different opinions here regarding where to put these manifests:
Therefore, I think metadata show stay in |
7794566
to
c3f4d35
Compare
Thanks for the detailed explanation! That is totally fine with me. I have move the PS. You can check the diff of this code vs |
that's an interesting idea, I feel like we are missing some foundational features in kustomize, have you tried https://github.com/kubernetes-sigs/kustomize/blob/master/examples/components.md which allows composing kustomization.yaml files? I feel that helps when decomposing the monolith into separate components, because it makes it easier to compose some config |
@yanniszark can you resolve the merge conflict? |
@@ -3,6 +3,7 @@ kind: Kustomization | |||
|
|||
bases: | |||
- ../../base/installs/multi-user | |||
- ../../base/metadata/overlays/db |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
May I confirm your plan with this overlay?
I'd prefer only keeping it for backward compatibility reasons, because of the unnecessary burden of maintaining two DBs. Most distributions should configure their own overlay of the db using managed DB services for both KFP and Metadata.
Therefore, my suggestion would be: split into two platform-agnostic-multi-user
envs
- One has name
platform-agnostic-multi-user-legacy
which uses this db overlay. - While the other has name
platform-agnostic-multi-user
which keeps using the base metadata.
What do you think?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a great suggestion! I implemented it.
Signed-off-by: Yannis Zarkadas <[email protected]>
…older Signed-off-by: Yannis Zarkadas <[email protected]>
c3f4d35
to
6746ca4
Compare
Signed-off-by: Yannis Zarkadas <[email protected]>
Some of the people who proposed and implemented the PS. I rebased my branch to resolve the conflict and implemented the suggested feature. |
Ahaa, great contributions! I love the spirit of this feature, it really solves a painpoint. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's one remaining comment, but I think we can do that later.
Thank you @yanniszark!
/lgtm
/approve
|
||
bases: | ||
- ../../base/installs/multi-user | ||
- ../../base/metadata/overlays/db |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shall we add a comment here or a readme in this folder to clarify its purpose?
anyway, I think this is not a blocker you can submit a separate PR too.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was going to edit your branch directly to add this comment, but you didn't set the config to allow maintainers edit your branch. Would you be interested to do that next time? So I can help you edit some minor stuff
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was going to edit your branch directly to add this comment, but you didn't set the config to allow maintainers edit your branch. Would you be interested to do that next time? So I can help you edit some minor stuff
Thanks for the heads-up on this. I tried to find this button when creating a PR and noticed the following:
- If I make a PR from my own fork (
yanniszark/pipelines
), I can allow edits from maintainers. - If I make a PR from my company's fork (
arrikto/kubeflow-pipelines
), then no such option is displayed.
Thus, I need to bring it up internally and see what we can do about it, seems it looks like a permissions issue. I agree that it would be helpful to enable.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shall we add a comment here or a readme in this folder to clarify its purpose?
I will create a separate PR for that as well.
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Bobgy The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
This PR is based on #5344, which should be merged first.
Description of your changes:
As mentioned in kubeflow/manifests#1765 (comment), there is a discrepancy between manifests in the kubeflow/manifests repo and manifests in the kubeflow/pipelines repo, regarding metadata-db:
This means that if a distribution upgrades from the MLMD in the manifests repo, they will lose their data.
This PR adds a
db
overlay tometadata
, which ensures backwards-compatibility with previous versions of kubeflow/manifests.In addition, I moved the
metadata
kustomization to third-party, same as all other kustomizations that are not developed inside kubeflow/pipelines.@Bobgy let me know what you think.