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 9 commits into
base: main
Choose a base branch
from
Open

fix: probe command #468

wants to merge 9 commits into from

Conversation

jokestax
Copy link
Contributor

@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

@jokestax
Copy link
Contributor Author

jokestax commented Nov 15, 2024

@daemon1024 @DelusionalOptimist @Prateeknandle please review :)

jokestax and others added 8 commits December 22, 2024 10:09
Signed-off-by: mrrishi <[email protected]>
Signed-off-by: jokestax <[email protected]>
Signed-off-by: mrrishi <[email protected]>
Signed-off-by: jokestax <[email protected]>
Signed-off-by: Aryan-sharma11 <[email protected]>
Signed-off-by: jokestax <[email protected]>
Signed-off-by: Prateek <[email protected]>
Signed-off-by: jokestax <[email protected]>
Signed-off-by: Aryan-sharma11 <[email protected]>
Signed-off-by: jokestax <[email protected]>
Signed-off-by: jokestax <[email protected]>
Signed-off-by: mrrishi <[email protected]>
Signed-off-by: jokestax <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: P0 - PR Ready for review
Development

Successfully merging this pull request may close these issues.

5 participants