-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
feat(hydrator): enable controller #19539
Conversation
cb2feec
to
17d228e
Compare
6ce7dc0
to
e67e3ef
Compare
17d228e
to
978b253
Compare
b642ed7
to
1168d9d
Compare
f5e91ef
to
40cdcf2
Compare
978b253
to
a2ebf59
Compare
40cdcf2
to
d4fb401
Compare
2d34f7f
to
5cc7db9
Compare
d4fb401
to
89bfa36
Compare
5cc7db9
to
af7600a
Compare
619f45c
to
3640971
Compare
af7600a
to
d3d8dc9
Compare
ccc9e4b
to
d1e0886
Compare
d3d8dc9
to
a8b0ed2
Compare
d1e0886
to
d233aad
Compare
a8b0ed2
to
29382ba
Compare
d233aad
to
a9461ac
Compare
29382ba
to
3f9ce3c
Compare
bcf1fb4
to
7d8965c
Compare
3f9ce3c
to
e8dd768
Compare
7d8965c
to
2f28892
Compare
e4a9061
to
b19beec
Compare
b8eedba
to
ccb3553
Compare
e8dd768
to
77c3158
Compare
ccb3553
to
7ee0ce0
Compare
@@ -109,7 +109,7 @@ func fakeResolveRevisionResponseHelm() *apiclient.ResolveRevisionResponse { | |||
|
|||
func fakeRepoServerClient(isHelm bool) *mocks.RepoServerServiceClient { | |||
mockRepoServiceClient := mocks.RepoServerServiceClient{} | |||
mockRepoServiceClient.On("ListApps", mock.Anything, mock.Anything).Return(fakeAppList(), nil) | |||
mockRepoServiceClient.On("GetProcessableApps", mock.Anything, mock.Anything).Return(fakeAppList(), nil) |
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 change seems unrelated to this PR 🤔
// TODO: enrich with write credentials. | ||
//if err := db.enrichCredsToRepo(ctx, repository); err != nil { | ||
// return repository, fmt.Errorf("unable to enrich write repository %q info with credentials: %w", repoURL, err) | ||
//} | ||
|
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.
Forgotten? Not a blocker, but create an issue if it is intended to implement later
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.
Added docs, will check for an issue...
@@ -21,6 +21,8 @@ var _ repositoryBackend = &secretsRepositoryBackend{} | |||
|
|||
type secretsRepositoryBackend struct { | |||
db *db | |||
// If true, the backend will manage write only credentials. If false, it will manage only read credentials. | |||
writeCreds bool |
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.
Ideally this should be a parameter passed to getSecretType()
. Not sure I understand if there is a real necessity to have it in the secretsRepositoryBackend
state.
4dece23
to
8c61044
Compare
@agaudreault @ashutosh16 @leoluz I addressed the easier comments, still working on the more involved ones. |
bd22b69
to
27eef93
Compare
336896b
to
ac5d698
Compare
27eef93
to
1e71863
Compare
Co-authored-by: Alexandre Gaudreault <alexandre_gaudreault@intuit.com> Co-authored-by: Omer Azmon <omer_azmon@intuit.com> Co-authored-by: daengdaengLee <gunho1020@gmail.com> Co-authored-by: Juwon Hwang (Kevin) <juwon8891@gmail.com> Co-authored-by: thisishwan2 <feel000617@gmail.com> Co-authored-by: mirageoasis <kimhw0820@naver.com> Co-authored-by: Robin Lieb <robin.j.lieb@gmail.com> Co-authored-by: miiiinju1 <gms07073@ynu.ac.kr> Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com> feat(hydrator): enable controller Co-authored-by: Alexandre Gaudreault <alexandre_gaudreault@intuit.com> Co-authored-by: Omer Azmon <omer_azmon@intuit.com> Co-authored-by: daengdaengLee <gunho1020@gmail.com> Co-authored-by: Juwon Hwang (Kevin) <juwon8891@gmail.com> Co-authored-by: thisishwan2 <feel000617@gmail.com> Co-authored-by: mirageoasis <kimhw0820@naver.com> Co-authored-by: Robin Lieb <robin.j.lieb@gmail.com> Co-authored-by: miiiinju1 <gms07073@ynu.ac.kr> Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com> allow opt-in Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com> separation between app controller and hydrator Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com> simplify diff Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com> todos Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com> simplify Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com> add dry sha to logs Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com> add app name to logs Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com> more logging, no caching Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com> fix cluster install Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com> don't interrupt an ongoing hydrate operation Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com> revert hydrate loop fix Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com> handle project-scoped repo creds Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com> codegen Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com> improve docs Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com> fixes from comments Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com>
Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com> fix manifests Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com>
ac5d698
to
bd35d3d
Compare
Parent PR was merged. |
I'm breaking the hydrator into separate PRs. This is party to make them easier to review, partly because the commit history on the original PR is pretty messy at this point.
This PR is for the changes to the app controller to process the new sourceHydrator API + necessary tests.
I've added everyone who helped as a co-author on this PR.