-
Notifications
You must be signed in to change notification settings - Fork 232
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
Porch: Unable to have two git repos with same URL and different directories #3601
Comments
Given that both the repositories are deployment repos, I suspect cloning restrictions are kicking in. If |
I do want to point out that we are not testing this mode (registering separate porch repos for different directories in a single github repo) regularly so some more surprises may be in the store. Thanks for reporting it. |
Thanks for the quick answer! In case this is useful information, I also saw similar behavior when a blueprint repo was involved. I didn't test as many permutations there, but I was unable to clone a package in blueprint repo |
ok, so it is broken in all cases then. Thanks for confirming this. @LiptonB I am curious about how are you planning to use |
I'll start by saying that I think I don't actually need multiple repositories. I do think they would be useful if they provided namespacing such that the repo name didn't have to be in the package name. But I think that I will be ok with one big repository for the time being, and will just name the packages What I'm trying to do is manage a repo that will be the source of a GitOps sync for a large number of GKE clusters. I want to be able to automate the following:
I think kpt, and porch in particular, is relevant because:
|
Spot on. Makes perfect sense. The value prop of
How do you setups roles (and permissions) for managing this configs or that is not a requirement in your case ? |
@LiptonB we have many of these same use cases in Nephio, which is a new OSS project for edge fleet management, with a focus on Telco. When relevant, I am trying to upstream the things we need for Nephio into Porch, because I see - as you do - many other use cases for the same functionality. In your case, take a look at #3488, which is all about generation of variants of an upstream package. For the broader question of rollouts and - in the Nephio case - multi-actor, coordinated editing of the deployment config, you may want to see the issues referenced here: https://docs.google.com/document/d/1E-pMeb8u46C-UayBSaYG_WeqDcRrpq8OhocW3mr65ws/edit?usp=sharing (you'll need to join kpt-contribx@googlegroups.com to view and comment). |
Well, this is all somewhat exploratory right now so I'm not completely sure 😄 We do need some access control over these configs - we'd want review of manual changes before applying them, though we might potentially be ok with system-driven rollouts happening automatically. Since I wasn't seeing those access controls in porch as it exists today and wasn't sure how things were going to evolve, I was thinking of starting by only using porch to create and edit draft revisions, and using GitHub PRs (with CODEOWNERS to control approvals) to make changes actually take effect. Haven't tested this workflow yet, though, so not sure how well it'll work. |
Expected behavior
I would like to store multiple groups of configs in the same git repository. I thought I might be able to do so by creating multiple porch Repositories pointing to the same git repo. So I have the following repositories with the same
repo
URL but differentdirectory
values:I expected to be able to clone a package into either one of these repos:
Actual behavior
Though the above is the behavior I'd most prefer (package name independent of the repository), the commands above both produce the error message:
To work around this, I tried including the directory name in the package name. This one worked:
However this one:
still produces an error message that references the
repo1
directory:I was not able to find a way to clone into this second repository.
Information
kpt version:
1.0.0-beta.19
porch version: 1de5acf
porch UI version: GoogleContainerTools/kpt-backstage-plugins@6334354
Steps to reproduce the behavior
The text was updated successfully, but these errors were encountered: