stripe / skycfg

Skycfg is an extension library for the Starlark language that adds support for constructing Protocol Buffer messages.
Apache License 2.0
648 stars 54 forks source link

[kube]: Initial Kuberetes module implementation. #28

Closed dilyevsky closed 5 years ago

dilyevsky commented 5 years ago

Implements kube.res_quantity helper for parsing Kubernetes resource quantities.

Example usage:

core = proto.package('k8s.io.api.core.v1')
...
container = core.Container(
    resources = core.ResourceRequirements(
        limits = {
            'memory': kube.res_quantity('1Gi'),
        }
    ),
...
dilyevsky commented 5 years ago

cc @ymolists should help with #27