Commit Graph

8 Commits

Author SHA1 Message Date
Flynn
9d620ad4cb Add utility functions to parse and format GEP-2257 Duration strings for Gateway API
Signed-off-by: Flynn <emissary@flynn.kodachi.com>
2024-08-09 23:35:23 -04:00
Huan-Ting,Chen
18fb9a0915 feat: add create from directory support 2022-01-21 16:33:45 +08:00
Julian Taylor
8b385a87dc add function to parse canonical quantities (e.g. resources)
This utility function is useful to parse values like the 200m or 300Gi
memory and cpu resources stored in kubernetes manifests.
It uses Decimal as output format as it usually represents typical input
values more accurately and reduces rounding errors.
2019-08-26 21:49:58 +02:00
Oz N Tiram
139848efcb Relax pycodestyle: import only allowed at the top
While this is a really good convention, sometimes one must import
stuff inside a try except block. This block is still at the top, but pycodestyle
treats like it isn't, because it's in an idented block, and the outeer scope.
2019-04-09 23:42:01 +02:00
Oz Tiram
18f45c9cec Fix wrong import name 2019-04-05 06:30:43 +02:00
Oz Tiram
aa28bc7067 Allow create from string or from dict
This is a fix for #722
2019-03-26 23:26:08 +01:00
micw523
c0f71c3ba6 Add list / multi resource support 2019-03-19 00:36:32 -05:00
micw523
5a92ba65aa Add kubectl create -f feature 2018-10-31 19:34:18 -05:00