Skip to content
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

1942 app repos use cluster #1997

Merged
merged 2 commits into from
Sep 2, 2020
Merged

1942 app repos use cluster #1997

merged 2 commits into from
Sep 2, 2020

Conversation

absoludity
Copy link
Contributor

Description of the change

Updates shared helpers for AppRepositories, ServiceBrokers and ServiceInstances to no longer rely on the non-cluster-aware backend URIs.

Benefits

Required for #1995 to be able to pass CI.

Applicable issues

Ref: #1942

Comment on lines +143 to +145
const {
clusters: { currentCluster },
} = getState();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why don't we do do this rather than passing around cluster all the time in other actions? 😅

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if it was asked in jest or seriousness :) . In the long run, functional code is much easier to work with, test, maintain etc., but I took a short-cut here that I didn't take with the normal components because it's not clear to me whether we'll be keeping the service catalog / service instances in the future.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

well, it was a serious question. I don't think this is a shortcut since at the end is the same than what we are doing (getting the current cluster from the state). unless I'm missing something. IMO, sacrifice a bit of complexity for the tests vs adding the parameter "cluster" or "namespace" all over the place is something reasonable. Anyway, this is just me thinking out loud.

@absoludity absoludity merged commit f49e35b into master Sep 2, 2020
@absoludity absoludity deleted the 1942-app-repos-use-cluster branch September 2, 2020 23:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants