Using Size.gibibytes(2) generates 2048Mi instead of 2Gi. This is a bit of a problem in GitOps setup (since it shows there's a diff). Essentially I guess ideally there should be no conversions of such kind at all, if possible.
If you use the cdk8s instead of cdk8s-plus you can use eg. Quantity.fromString('512Mi') in resources definitions. You might already know this but wanted to point out as way around 🙂
Description of the bug:
Using
Size.gibibytes(2)
generates2048Mi
instead of2Gi
. This is a bit of a problem in GitOps setup (since it shows there's a diff). Essentially I guess ideally there should be no conversions of such kind at all, if possible.Reproduction Steps:
My code is like this:
(Let me know if the above code doesn't work for you. Happy to provide a sample project.)
Error Log:
And the output contains:
Environment:
Other:
This is :bug: Bug Report