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

Ensure that clusters' apiServiceURL is honored for kubeapps cluster. #6016

Merged
merged 1 commit into from
Feb 23, 2023

Conversation

absoludity
Copy link
Contributor

Description of the change

After some testing of the previous PR, we found the issue is actually that kubeapps assumes the cluster on which Kubeapps is installed will never have an APIServiceURL set in the configuration (since it can be accessed via the in-cluster configuration at https://kubernetes.default).

As it turns out, some users need to set the APIServiceURL of the cluster on which Kubeapps is installed because they use a proxy in front of the API server for authentication purposes, so it's important that Kubeapps also use this.

Benefits

Possible drawbacks

Applicable issues

Additional information

Signed-off-by: Michael Nelson <minelson@vmware.com>
@netlify
Copy link

netlify bot commented Feb 22, 2023

Deploy Preview for kubeapps-dev canceled.

Name Link
🔨 Latest commit 6bf5238
🔍 Latest deploy log https://app.netlify.com/sites/kubeapps-dev/deploys/63f6a0fc2555ba000868e694

Copy link
Contributor

@mecampbellsoup mecampbellsoup left a comment

Choose a reason for hiding this comment

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

Love how small this PR is 😄 LGTM!

Also tested on our setup and things are working again.

if cluster == clustersConfig.KubeappsClusterName {
// We cannot assume that if the cluster is the kubeapps cluster that we simply return
// the incluster config, because some users set proxies in front of their clusters in
// which case the incluster kubernetes.default will skip the proxy.
Copy link
Contributor

Choose a reason for hiding this comment

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

Good comment.

@absoludity absoludity merged commit 969a91c into main Feb 23, 2023
@absoludity absoludity deleted the 5999-honor-apiServiceURL-for-kubeapps-cluster branch February 23, 2023 01:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unauthorized response in GetPackageRepositorySummaries
3 participants