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

Skip forbidden namespaces in multi-cluster mode #7219

Merged
merged 5 commits into from
Mar 25, 2024

Conversation

nrfox
Copy link
Contributor

@nrfox nrfox commented Mar 25, 2024

Describe the change

  1. Ignores IsForbidden errors in business.IstioConfig when in multi-cluster mode.
  2. In the apps handler, only checks namespaces filtered by GetClusterNamespaces

Test with:

  1. Setup
hack/istio/multicluster/install-multi-primary.sh -mm true -kudi true -md kvm2
hack/istio/multicluster/deploy-kiali.sh --single-kiali true --cluster1-context east --cluster2-context west --kiali-auth-strategy openid
  1. Login to kiali with kiali user
  2. Verify no errors on the apps/graph pages

if slices.Contains(namespaceQueryParams, ns.Name) {
nss = append(nss, ns.Name)
}
} else {
nss = append(nss, ns.Name)
Copy link
Collaborator

Choose a reason for hiding this comment

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

can you add a comment for what this is doing/what it is for?

jmazzitelli
jmazzitelli previously approved these changes Mar 25, 2024
jmazzitelli
jmazzitelli previously approved these changes Mar 25, 2024
@nrfox nrfox merged commit 935f83f into kiali:master Mar 25, 2024
9 checks passed
@nrfox nrfox deleted the fix-istio-config-access branch March 25, 2024 23:13
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.

None yet

2 participants