Skip to content

Commit

Permalink
use correct service name for mesh data in paasta status for kubernete…
Browse files Browse the repository at this point in the history
…s instances
  • Loading branch information
Maksym Melnychok committed Nov 4, 2020
1 parent e614fb8 commit 8b643ad
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions paasta_tools/instance/kubernetes.py
Expand Up @@ -485,14 +485,14 @@ def kubernetes_status(

if include_smartstack or include_envoy:
service_namespace_config = kubernetes_tools.load_service_namespace_config(
service=job_config.get_service_name_smartstack(),
service=service,
namespace=job_config.get_nerve_namespace(),
soa_dir=settings.soa_dir,
)
if "proxy_port" in service_namespace_config:
if include_smartstack:
kstatus["smartstack"] = mesh_status(
service=job_config.get_service_name_smartstack(),
service=service,
service_mesh=ServiceMesh.SMARTSTACK,
instance=job_config.get_nerve_namespace(),
job_config=job_config,
Expand All @@ -503,7 +503,7 @@ def kubernetes_status(
)
if include_envoy:
kstatus["envoy"] = mesh_status(
service=job_config.get_service_name_smartstack(),
service=service,
service_mesh=ServiceMesh.ENVOY,
instance=job_config.get_nerve_namespace(),
job_config=job_config,
Expand Down

0 comments on commit 8b643ad

Please sign in to comment.