Skip to content

Fix memory requests/limits value #5

@giorgosdi

Description

@giorgosdi

The current value that get returned from the functions :

container.Resources.Requests/Limits.Memory().Value()

returns and Int64 which is an unscaled value rounded up to the nearest integer away from 0. godoc

The current solution is off by ~100Mi when in come to Gi of memory and it was noticed that it started happen around 4000Mi

The ScaledValue() doesnt really work as it misses the correct amount by ~5% in all memory metrics

kubectl uses converResourceMemoryToString to standardise the metrics

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions