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

memory normalization to bytes when input is bytes #274

Open
omer-do opened this issue Jan 23, 2025 · 1 comment
Open

memory normalization to bytes when input is bytes #274

omer-do opened this issue Jan 23, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@omer-do
Copy link

omer-do commented Jan 23, 2025

Describe the bug
The normalizeMemoryToBytes function is taking memory string input. The for loop iterating over the input string assumes input must have a non-digit character, where memory limit can be set in bytes (only digits).

Steampipe version (steampipe -v)
Steampipe v1.0.2

Plugin version (steampipe plugin list)

hub.steampipe.io/plugins/turbot/aws@latest | 1.5.0 | aws |
hub.steampipe.io/plugins/turbot/kubernetes@latest | 1.2.0 | kubernetes |
hub.steampipe.io/plugins/turbot/steampipe@latest | 1.0.0 | steampipe |

To reproduce

  • create a pod that has limit configured in bytes for example "1000000000" (which is 1GB of memory)

  • configure steampipe kubernetes plugin to this cluster context

  • run steampipe query

  • inside run:

> select * from kubernetes_pod limit 15

Error: kubernetes: failed to populate column 'containers_resources_requests_std': invalid memory value: 1288490189 (SQLSTATE HV000)

Expected behavior
a table of pods to be displayed

@omer-do omer-do added the bug Something isn't working label Jan 23, 2025
@omer-do
Copy link
Author

omer-do commented Jan 23, 2025

adding link to PR #273

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

No branches or pull requests

1 participant