feat: add component reference resolvers to the controller#1635
Conversation
Signed-off-by: Gergely Brautigam <182850+Skarlso@users.noreply.github.com>
…ider based approach akin to the CLI Signed-off-by: Gergely Brautigam <182850+Skarlso@users.noreply.github.com>
On-behalf-of: Gergely Brautigam <gergely.brautigam@sap.com> Signed-off-by: Gergely Brautigam <182850+Skarlso@users.noreply.github.com>
On-behalf-of: Gergely Brautigam <gergely.brautigam@sap.com> Signed-off-by: Gergely Brautigam <182850+Skarlso@users.noreply.github.com>
Signed-off-by: Gergely Brautigam <182850+Skarlso@users.noreply.github.com>
On-behalf-of: Gergely Brautigam <gergely.brautigam@sap.com> Signed-off-by: Gergely Brautigam <182850+Skarlso@users.noreply.github.com>
|
I refactored a bunch of things, aaand Still works 🎉 |
Signed-off-by: Gergely Brautigam <182850+Skarlso@users.noreply.github.com>
|
@fabianburth Okay, this has now three package changes.
I will put each of these into separate PRs but left this together for reviewing. |
fabianburth
left a comment
There was a problem hiding this comment.
I like this much better than before. Maybe some unit tests for the provider package might be nice.
On-behalf-of: Gergely Brautigam <gergely.brautigam@sap.com> Signed-off-by: Gergely Brautigam <182850+Skarlso@users.noreply.github.com>
|
I'm going to start and create the individual PRs for this. :) First, the extraction. :) |
matthiasbruns
left a comment
There was a problem hiding this comment.
Man this brought back some memories 🥲
I think it's good, the only thing we should decide on is how to continue with the health checks. @Skarlso do you want to make a call and decide what to do?
|
@matthiasbruns I think the war room is enough. I'll bring it up next time I'm around. :) |
|
Two other PRs have been created, once merged, going to separate this PR into CLI and then Controller. :) |
Signed-off-by: Fabian Burth <fabian.burth@sap.com>
Signed-off-by: Fabian Burth <fabian.burth@sap.com>
Signed-off-by: Fabian Burth <fabian.burth@sap.com>
Signed-off-by: Fabian Burth <fabian.burth@sap.com>
Signed-off-by: Fabian Burth <fabian.burth@sap.com> # Conflicts: # cli/go.mod # cli/go.sum # cli/integration/go.mod # cli/integration/go.sum # kubernetes/controller/go.mod # kubernetes/controller/go.sum
Skarlso
left a comment
There was a problem hiding this comment.
I have a few questions about the new approach. :)
Signed-off-by: Fabian Burth <fabian.burth@sap.com>
# Conflicts: # bindings/go/repository/component/fallback/v1/repository.go # bindings/go/repository/component/fallback/v1/repository_test.go # bindings/go/repository/component/providers/fallback.go # bindings/go/repository/component/providers/interface.go # bindings/go/repository/component/providers/pathmatcher.go # bindings/go/repository/component/resolvers/factory.go # bindings/go/repository/component/resolvers/pathmatcher_test.go # cli/integration/go.sum
|
FWIW the LRU cache has a pending PR for closing the cache cleanup hashicorp/golang-lru#214. It is LGTM but no idea when it will be merged / released. The Cache itself hasn't been release since Sep 29, 2023. |
|
After this is done, we need to remove the HashiCorp LRU from the worker as well. |
Signed-off-by: Fabian Burth <fabian.burth@sap.com>
4b0d7ff to
bf6553b
Compare
Signed-off-by: Fabian Burth <fabian.burth@sap.com>
Signed-off-by: Fabian Burth <fabian.burth@sap.com>
Signed-off-by: Fabian Burth <fabian.burth@sap.com>
Signed-off-by: Fabian Burth <fabian.burth@sap.com>
Signed-off-by: Gergely Bräutigam <gergely.brautigam@sap.com>
Signed-off-by: Gergely Brautigam <182850+Skarlso@users.noreply.github.com>
What this PR does / why we need it
Involved in open-component-model/ocm-project#777
Which issue(s) this PR fixes