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

Volume Short syntax #50

Closed wlan0 closed 6 years ago

wlan0 commented 6 years ago

Both VolumeSource and PersistentVolume from various apiGroups (don't know if there is more than 1)

ublubu commented 6 years ago

Here's what I'm planning to do for v1.Volume.

From:

name: somename
<source-type, e.g. emptyDir>:
  camelField0: val0
  camelField1: val1

To:

name: somename
type: <snake_case source-type, e.g. empty_dir>
camel_field0: val0
camel_field1: val1
wlan0 commented 6 years ago

sounds ok. I haven't gone through every type tbh, and we might have to revisit some of them later on

ublubu commented 6 years ago

merged a fix. may revisit later