-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: surface source not permitted errors (#12255)
* chore: surface source not permitted errors For Git and Helm repositories, we filter out non-permitted urls before submitting a `ManifestRequest` to the repo-server. While that works fine, this also leads to very hard to debug issues in particular when using Helm dependencies. This (very) WIP PR adds `ProjectSourceRepos` as a parameter to `ManifestRequest`, so we can verify that a source is in fact permitted in order to distinguish between actual 40x errors (caused by e.g misconfiguration) and "source not permitted" caused by not adding the relevant sources to the AppProject config. This still needs documentation, tests and some basic sanity checking before proceeding further, as well as resolving whatever is causing `make codegen` to not properly work. Signed-off-by: Blake Pettersson <blake.pettersson@gmail.com> * chore: propagate project values to repo-server Signed-off-by: Blake Pettersson <blake.pettersson@gmail.com> * test: fix failing unit tests now onto the e2e tests... Signed-off-by: Blake Pettersson <blake.pettersson@gmail.com> * test: fix failing e2e test(s) Signed-off-by: Blake Pettersson <blake.pettersson@gmail.com> * fix: add project params Signed-off-by: Blake Pettersson <blake.pettersson@gmail.com> * test: add e2e test Add Helm dependency check test. Signed-off-by: Blake Pettersson <blake.pettersson@gmail.com> * chore: remove git source check Discussed over Slack and deemed this to not be necessary at this time. Signed-off-by: Blake Pettersson <blake.pettersson@gmail.com> * make codegen Signed-off-by: Blake Pettersson <blake.pettersson@gmail.com> * chore: cr tweaks Signed-off-by: Blake Pettersson <blake.pettersson@gmail.com> * chore: code review tweaks Signed-off-by: Blake Pettersson <blake.pettersson@gmail.com> * test: fix Signed-off-by: Blake Pettersson <blake.pettersson@gmail.com> * test: wip Signed-off-by: Blake Pettersson <blake.pettersson@gmail.com> * test: wip Signed-off-by: Blake Pettersson <blake.pettersson@gmail.com> * chore: wip Signed-off-by: Blake Pettersson <blake.pettersson@gmail.com> * chore: typo Signed-off-by: Blake Pettersson <blake.pettersson@gmail.com> * fix: typo Signed-off-by: Blake Pettersson <blake.pettersson@gmail.com> * chore: rebase fixes Signed-off-by: Blake Pettersson <blake.pettersson@gmail.com> * test: oci:// is not prefixed Signed-off-by: Blake Pettersson <blake.pettersson@gmail.com> --------- Signed-off-by: Blake Pettersson <blake.pettersson@gmail.com>
- Loading branch information
1 parent
4ce4885
commit c651bd8
Showing
11 changed files
with
511 additions
and
200 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.