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

removing namespace dependency of kubearmor for discovery-engine #674

Merged
merged 5 commits into from Feb 24, 2023

Conversation

Prateeknandle
Copy link
Contributor

closes #660

after this discovery-engine will be able to detect kubearmor from any namespace, right noe it only detect kubearmor if it is deployed in kube-system namespace.

changes:

  • get namespace in which kubearmor is deployed
  • if kubearmor is not found in kube-system, then we will get the namespace in which it is deployed and then connect discovery-engine with new configurations.

Signed-off-by: Prateeknandle <prateeknandle@gmail.com>
Signed-off-by: Prateeknandle <prateeknandle@gmail.com>
Signed-off-by: Prateeknandle <prateeknandle@gmail.com>
Copy link
Member

@daemon1024 daemon1024 left a comment

Choose a reason for hiding this comment

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

Please find review comments inline.

src/cluster/k8sClientHandler.go Outdated Show resolved Hide resolved
src/cluster/k8sClientHandler.go Show resolved Hide resolved
src/cluster/k8sClientHandler.go Show resolved Hide resolved
Signed-off-by: Prateeknandle <prateeknandle@gmail.com>
@nyrahul nyrahul merged commit 4117ead into accuknox:dev Feb 24, 2023
@Ankurk99
Copy link
Contributor

@Prateeknandle Have we verified these changes? Like if karmor summary and karmor discover works with this change?
Because I tried installing KubeArmor in a different namespace and Discovery Engine is not able to show observability or discover policy.
@Prateeknandle Can you please verify this?

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.

Remove namespace dependency for KubeArmor
4 participants