Skip to content

Commit 3e4b0d2

Browse files
authored
Update the pod_name query for pathways workloads (#362)
1 parent e52a5f4 commit 3e4b0d2

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/xpk/core/pathways.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -174,15 +174,12 @@ def ensure_pathways_workload_prerequisites(args, system) -> bool:
174174

175175
def get_pathways_unified_query_link(args) -> str:
176176
"""Get the unified query link for the pathways workload."""
177-
pw_suffixes = ['main', 'rm', 'proxy']
178-
pw_pod_names = [f'"{args.workload}-{suffix}-0"' for suffix in pw_suffixes]
179-
pw_pod_names_query = '%20OR%20'.join(pw_pod_names + ['worker-0-0'])
180177
query_params = (
181178
'resource.type%3D"k8s_container"%0A'
182179
f'resource.labels.project_id%3D"{args.project}"%0A'
183180
f'resource.labels.location%3D"{zone_to_region(args.zone)}"%0A'
184181
f'resource.labels.cluster_name%3D"{args.cluster}"%0A'
185-
f'resource.labels.pod_name:{pw_pod_names_query}%0A'
182+
f'resource.labels.pod_name:"{args.workload}-"%0A'
186183
'severity>%3DDEFAULT'
187184
)
188185

0 commit comments

Comments
 (0)