dilyevsky
dilyevsky
I'm working on a prototype to have OpenaAPI types reflected in Starlark (e.g use case - https://github.com/stripe/skycfg/issues/70). Rough API I'm shooting for: ```python monitoring = openapi("monitoring.coreos.com/v1") def main(ctx): return monitoring.PrometheusRule(...
Here's specific case: https://github.com/kubernetes/api/blob/d04500c8c3dda9c980b668c57abc2ca61efcf5c4/core/v1/types.go#L1957-L1958 This will be accepted fine when media type is `protobuf` but will render incorrectly to JSON/YAML (for diffs or if you want to do `PATCH` because...
So I tried to write more involved Kubernetes definitions using similar code in https://github.com/stripe/skycfg/blob/f62bbbf9f13ee5cb51d433902a5816e7694fe367/_examples/k8s/main.go#L120-L132 and it appears to be failing spectacularly for apiGroups like `rbac.authorization.k8s.io` and so on because `authorization.k8s.io`...