-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat:
Size.asString
that preserves original units (#1494)
We currently do not have a way to return the unit in a way that would work in Kubernetes. This PR would be a prerequisite PR for this issue: cdk8s-team/cdk8s#1166. We are converting `memory` units to `mebibytes` and `ephemeral-storage` to `gibibyte` even if user passes something else. This does not seem correct. For instance, [here](https://github.com/cdk8s-team/cdk8s-plus/blob/k8s-27/main/src/container.ts#L880). So this PR would help resolving this issue. I believe this [issue](cdk8s-team/cdk8s-plus#1950) is another instance of being impacted by us converting the inputs.
- Loading branch information
1 parent
721b340
commit b8dc5c2
Showing
5 changed files
with
55 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters