Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove wrong key lookup for service name in k8s labels #828

Merged
merged 1 commit into from
Mar 21, 2024

Conversation

yannikmesserli
Copy link
Contributor

Issue #792.

Description

This PR fixes a bug introduced in https://github.com/isovalent/hubble-ui-enterprise/pull/1108: the key component was wrongly added to the list of keys to retrieve an app app name from k8s labels.

Changes

  • Removed component

Screenshots

Before After
Screenshot 2024-03-18 at 22 00 57 Screenshot 2024-03-18 at 22 01 17

Unit tests

None added.

Functional tests

  • In a cluster, add a label such as component is suffixing it:
    • kubectl label pods crawler-7748bbc7b8-xr2vn app.kubernetes.io/component=api -n tenant-jobs
  • Open Hubble UI and go to the service map
  • Observe that the service card has the correct name and not the name you added with the component label

@yannikmesserli yannikmesserli requested a review from a team as a code owner March 18, 2024 21:07
@yannikmesserli yannikmesserli requested review from geakstr and removed request for a team March 18, 2024 21:07
@geakstr geakstr merged commit a0a0668 into cilium:master Mar 21, 2024
9 checks passed
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.

2 participants