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

fix: probe command #468

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

fix: probe command #468

wants to merge 2 commits into from

Conversation

jokestax
Copy link

@jokestax jokestax commented Nov 15, 2024

Description

Previously, the probe command did not consider namespaces when listing policies. This oversight caused policies to be appended across all namespaces with matching labels, leading to wrong display of information.

To address this, I updated the getPoliciesOnAnnotatedPods function. It now returns both the list of policies and their corresponding namespaces. This allows us to ensure that policies are appended only when pods are in the same namespace and have the same labels.

and also formatted the code using gofumpt 😊


Fixes


Testing

  1. Clone the repository.
  2. Run the following command:
    go run . probe

Signed-off-by: mrrishi <[email protected]>
Signed-off-by: mrrishi <[email protected]>
@jokestax
Copy link
Author

jokestax commented Nov 15, 2024

@daemon1024 @DelusionalOptimist @Prateeknandle please review :)

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.

1 participant