Fix parse of memory.limit_in_bytes on 32-bit machines
@@ -726,7 +726,7 @@ func AddCgroupAnnotation(ctx context.Context, g generate.Generator, mountPath, c
// strip off the newline character and convert it to an int
strMemory := strings.TrimRight(string(fileData), "\n")
if strMemory != "" {
- memoryLimit, err := strconv.Atoi(strMemory)
+ memoryLimit, err := strconv.ParseInt(strMemory, 10, 64)
if err != nil {
return "", errors.Wrapf(err, "error converting cgroup memory value from string to int %q", strMemory)
}
