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

Kustomize directory analysis not working #1617

Open
eddylacrombe opened this issue Feb 27, 2024 · 3 comments
Open

Kustomize directory analysis not working #1617

eddylacrombe opened this issue Feb 27, 2024 · 3 comments
Assignees
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@eddylacrombe
Copy link

Description

As described in the kubescape docs we can analyze a kustomize repository.
In my Kustomize directory I have in my base folder a webserver with resource limit set
Capture d’écran 2024-02-27 à 08 39 14

But when I'm running
kubescape scan --verbose framework nsa path-to-my-kustomize-dir/overlays/prod I still get a high severity for resource limits.
Capture d’écran 2024-02-27 à 08 36 24

I've tried running
kubescape scan --verbose framework nsa path-to-my-kustomize-dir/
kubescape scan --verbose framework nsa path-to-my-kustomize-dir/base
but it didn't work either

Environment

OS: macOS Ventura 13.6
Version: v3.0.3

Steps To Reproduce

  1. Create a kustomize directory such as this one
Capture d’écran 2024-02-27 à 08 35 32 2. In the directory create a deployment as base with resources limits set at the container level 3. In one of the overlays directory create an kustomization of the deployment created at the previous step (not one setting resource limits obviously). In my case I'm changing the image of the container deployed in my pod. 4. Run `kubescape scan --verbose framework nsa path-to-my-kustomize-dir/overlays/prod`, you'll have a severity high on the resource limits.

Expected behavior

I'd expect the resource limits severity not to be a failed resource and the template rendering issues for the complete deployment not only for the overlay

Actual Behavior

The resource limits severity is considered a failed resource however it was correctly set

Additional context

@eddylacrombe eddylacrombe added the bug Something isn't working label Feb 27, 2024
@matthyx matthyx added the good first issue Good for newcomers label Apr 2, 2024
@bhavyastar
Copy link

Hey @matthyx
I would like to work on this issue.

@VasuDevrani
Copy link

@bhavyastar still on it?

@bhavyastar
Copy link

Yes working on this issue. Got exams now from last 2 days I am working on this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

4 participants