koki / short

Manageable Kubernetes manifests through a composable, reusable syntax
https://docs.koki.io/short
Apache License 2.0
122 stars 14 forks source link

Output on invalid input #55

Closed wlan0 closed 6 years ago

wlan0 commented 6 years ago

The output when I get, when I provide this yaml

service:
  version: v1
  name: docs
  #port: 80:3000
  selector:
    app: docs.koki.io
  type: LoadBalancer
  ports:
   - 80:3000

is

null

The output should be more informative.

ublubu commented 6 years ago

Strange. When I try to convert that file, i see this error:

Error: for type (*types.NamedServicePort), unrecognized value
couldn't deserialize
"80:3000"