crd-to-sample-yaml

Generate a sample YAML file from a CRD definition.

Simply run:

crd-to-yaml delivery.krok.app_krokcommands

This will result in a file similar to this:

apiVersion: delivery.krok.app/v1alpha1
kind: KrokCommand
metadata: {}
spec:
  commandHasOutputToWrite: true
  dependencies: ["string"]
  enabled: true
  image: string
  platforms: ["string"]
  readInputFromSecret:
    name: string
    namespace: string
  schedule: string
status: {}

Each version will contain its own file output.

Future plans include generating proper, schema validated values for all fields.

GitHub

View Github