Skip to content

Conversation

@zaharidichev
Copy link
Member

@zaharidichev zaharidichev commented Jan 20, 2025

There are plans to remove the authority label in inbound proxy metrics. When that happens we would not longer be able to use the viz stat/top commands to query by authority. This is a change to disable being able to invoke these commands with an authority resource target.

Signed-off-by: Zahari Dichev [email protected]

@zaharidichev zaharidichev requested a review from a team as a code owner January 20, 2025 11:35
@zaharidichev zaharidichev changed the title make authority an invalid resource target for stat/stat-inbound/stat-… viz: Prohibit authority resource targets in stat commands Jan 20, 2025
Signed-off-by: Zahari Dichev <[email protected]>
Copy link
Member

@adleong adleong left a comment

Choose a reason for hiding this comment

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

Now that we don't suppport authorities as a resource in any CLI commands, can we just remove authority from the list of resources in pkg/k8s/k8s.go ? that way it should stop being a supported resource without needing to special case it.

Signed-off-by: Zahari Dichev <[email protected]>
Signed-off-by: Zahari Dichev <[email protected]>
Signed-off-by: Zahari Dichev <[email protected]>
@zaharidichev zaharidichev requested a review from adleong January 22, 2025 15:13
Copy link
Member

@adleong adleong left a comment

Choose a reason for hiding this comment

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

Nice cleanup

@zaharidichev zaharidichev merged commit 31a5806 into main Jan 23, 2025
39 checks passed
@zaharidichev zaharidichev deleted the zd/no-authority branch January 23, 2025 08:13
smuth4 added a commit to smuth4/linkerd2 that referenced this pull request Mar 22, 2025
PR linkerd#13578 removes 'authority' from being a pseudo-k8s resource, but the
viz web `/tap` form still expects it to be present, issuing a
`/api/tps-reports?resource_type=authority&all_namespaces=true` call, which
returns 500 `cannot find Kubernetes canonical name from friendly name [authority]`,
breaking the form entirely.

This change removes all references to authorities in the form,
restoring functionality.

This was validated against a edge-25.3.1 linkerd-viz install by
performing a successful tap with the new code.

Signed-off-by: Stephen Muth <[email protected]>
smuth4 added a commit to smuth4/linkerd2 that referenced this pull request Mar 22, 2025
PR linkerd#13578 removes 'authority' from being a pseudo-k8s resource, but the
viz web `/tap` form still expects it to be present, issuing a
`/api/tps-reports?resource_type=authority&all_namespaces=true` call, which
returns 500 `cannot find Kubernetes canonical name from friendly name [authority]`,
breaking the form entirely.

This change removes all references to authorities in the form,
restoring functionality.

This was validated against a edge-25.3.3 linkerd/linkerd-viz install by
performing a successful tap with the new code in the web UI.

Fixes linkerd#13841

Signed-off-by: Stephen Muth <[email protected]>
olix0r pushed a commit that referenced this pull request Mar 24, 2025
PR #13578 removes 'authority' from being a pseudo-k8s resource, but the
viz web `/tap` form still expects it to be present, issuing a
`/api/tps-reports?resource_type=authority&all_namespaces=true` call, which
returns 500 `cannot find Kubernetes canonical name from friendly name [authority]`,
breaking the form entirely.

This change removes all references to authorities in the form,
restoring functionality.

This was validated against a edge-25.3.3 linkerd/linkerd-viz install by
performing a successful tap with the new code in the web UI.

Fixes #13841

Signed-off-by: Stephen Muth <[email protected]>
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.

3 participants