Skip to content

Conversation

@shriramsharma
Copy link
Collaborator

updating the sidecar config with local clusters

@codecov-commenter
Copy link

codecov-commenter commented Jul 7, 2025

Codecov Report

Attention: Patch coverage is 84.02062% with 31 lines in your changes missing coverage. Please review.

Project coverage is 75.89%. Comparing base (9bdc74f) to head (8a0889d).

Files with missing lines Patch % Lines
admiral/pkg/clusters/virtualservice_routing.go 83.90% 11 Missing and 3 partials ⚠️
admiral/pkg/controller/istio/sidecar.go 89.77% 6 Missing and 3 partials ⚠️
admiral/pkg/controller/common/config.go 0.00% 8 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #437      +/-   ##
==========================================
+ Coverage   75.78%   75.89%   +0.10%     
==========================================
  Files          73       73              
  Lines       12510    12686     +176     
==========================================
+ Hits         9481     9628     +147     
- Misses       2512     2536      +24     
- Partials      517      522       +5     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

}
// We skip the self namespace as the sidecar in the identity's namespace
// already has ./* in its egress host
if namespace == identityNamespace {
Copy link
Collaborator

Choose a reason for hiding this comment

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

What about for istio-system?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

- istio-system/* is already there in default sidecar

Copy link
Collaborator

Choose a reason for hiding this comment

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

I meant when istio-system has a client

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

We are not exporting the incluster DRs and VSs for services in istio-system NS


// For each client namespace, we will update the sidecar with the cluster local services
for _, clientNamespace := range clientNamepaces {
cachedSidecar := rc.SidecarController.SidecarCache.Get(common.GetWorkloadSidecarName(), clientNamespace)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Nil checks here

@shriramsharma shriramsharma merged commit 161dfd3 into istio-ecosystem:master Jul 8, 2025
3 checks passed
@shriramsharma shriramsharma deleted the vs-incluster-sidecar-update-local-svc branch July 8, 2025 23:59
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.

4 participants