-
Notifications
You must be signed in to change notification settings - Fork 706
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
[Regression] Allow package details to fetch from config.kubeappsCluster #4564
Comments
Sorry @aanthonyrizzo , reading your issue description, and re-reading your comments in slack, I think I initially misunderstood the issue that you're seeing. Can you add some steps to reproduce to this issue? That'd help to clarify for me. |
Updated and edited to better articulate the issue. LMK if there is a something wrong. |
OK, so we were talking about the same problem (great), but I think the solution may be different since I don't think it involves the config. See what you think, but I believe the issue was introduced (by me) while getting flux deployments working at this point: https://github.com/vmware-tanzu/kubeapps/blob/v2.4.4/dashboard/src/shared/url.ts#L20-L23 which was part of #3640 , where I've explicitly updated the dashboard to include the package cluster in the route (fine) and if it's not set, to default to the current cluster ( The flux plugin has already been updated so that it always includes the kubeapps cluster in the response, so it should be as simple as removing the workaround in the dashboard above (I hope). |
@absoludity yeah that looks like the offending commit/PR. So in my case with the current routing the path would be:
and the
|
A couple of thoughts here:
Does that make sense?
Nope, not keen to re-introduce that.
This would conflict if people (for reasons) configure a cluster called "global". So I think we may be able to just update the helm plugin to return |
Signed-off-by: Rafa Castelblanque <rcastelblanq@vmware.com> ### Description of the change Adapted version of the outdated PR #4591. After removing kubeops, there has been a refactor of places changes by the old PR. It fixes the scenario in which the cluster where Kubeapps is installed is not part of the configured list of clusters. For example: ```yaml clusters: - name: second-cluster domain: ... apiServiceURL: .... certificateAuthorityData: ... serviceToken: eyJhbGciOiJS... ``` For doing so, it uses a token to reference the Kubeapps cluster: `-`. Also empty string `''` is accepted as cluster reference, for allowing payloads in which there is no cluster specified in context. Therefore, if a cluster string is empty or `-`, backend logic assumes that the Kubeapps cluster will be used. ### Benefits User can work in a multicluster setups in which the Kubeapps cluster is not part of the allowed clusters. ### Possible drawbacks N/A ### Applicable issues - fixes #4564 ### Additional information Manual tests have been done with Helm plugin (only one working in multicluster so far). CI E2E test will be done in #4563 Signed-off-by: Rafa Castelblanque <rcastelblanq@vmware.com>
…ist (#5573) ### Description of the change This PR adds an E2E test in CI to avoid regression on #5566 and hence to avoid that #4564 happens again. ### Benefits Kubeapps is usable even if Kubeapps cluster is not among the clusters configured. ### Possible drawbacks N/A ### Applicable issues - fixes #4563 Signed-off-by: Rafa Castelblanque <rcastelblanq@vmware.com>
Description:
The kubeapps dashboard no longer supports
kubeappsCluster
orkubeappsNamespace
.As of version 2.4.2 the kubeapps dashbord no longer respects the
kubeappsCluster
or kubeappsNamespace` configurations.as of v2.4.2, dashboard components no longer read the config for the kubeappCluster:
kubeapps/dashboard/src/components/DeploymentForm/DeploymentForm.tsx
Lines 44 to 47 in a1f95a5
v2.4.1 does:
kubeapps/dashboard/src/components/DeploymentForm/DeploymentForm.tsx
Lines 44 to 48 in b8702bf
Previously these values were taken into account when fetching the package details from the UI. This is no longer the case.
GetAvailablePackageDetail
will not use thekubeappsCluster
value when fetching the details.Related to #4563
Corresponding slack thread: https://kubernetes.slack.com/archives/C9D3TSUG4/p1649178273135249
Repro Instructions:
GetAvailablePackageDetail
request will fail.GetAvailablePackageDetail
with a value in the clusters[] and not the kubeappsCluster. Ex:+core GetAvailablePackageDetail (cluster="default", namespace="kubeapps")
The text was updated successfully, but these errors were encountered: