Skip to content

Commit

Permalink
fix(kuma-cp): handle external services with permissive mtls (backport…
Browse files Browse the repository at this point in the history
… of #7179) (#7188)

* fix(kuma-cp): handle external services with permissive mtls (#7179)

Signed-off-by: Jakub Dyszkiewicz <[email protected]>

* chore: resolve conflict

Signed-off-by: Jakub Dyszkiewicz <[email protected]>

---------

Signed-off-by: Jakub Dyszkiewicz <[email protected]>
Co-authored-by: Jakub Dyszkiewicz <[email protected]>
  • Loading branch information
kumahq[bot] and jakubdyszkiewicz authored Jul 7, 2023
1 parent b07c3be commit 6c11867
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkg/xds/context/mesh_context_builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,11 @@ func (m *meshContextBuilder) resolveTLSReadiness(mesh *core_mesh.MeshResource, s
}

for svc, insight := range serviceInsights.Items[0].Spec.GetServices() {
tlsReady[svc] = insight.IssuedBackends[backend.Name] == insight.Dataplanes.Total
if insight.ServiceType == mesh_proto.ServiceInsight_Service_external {
tlsReady[svc] = true
} else {
tlsReady[svc] = insight.IssuedBackends[backend.Name] == insight.Dataplanes.Total
}
}
return tlsReady
}

0 comments on commit 6c11867

Please sign in to comment.