{{ $root := .Get "root" }} {{ if not $root}} {{ errorf "missing value for param 'root': %s" .Position }} {{ end }} {{ $version := $.Page.Site.Params.skaffold_version }} {{ $short_version := index (split $version "/") 1 }} {{ $json_schema := printf "schemas/%s.json" $short_version }} {{ if not (fileExists $json_schema)}} {{ errorf "file not found %s at %s" $json_schema .Position }} {{ end }} {{ $schema := (readFile $json_schema) | unmarshal }} {{ if not $schema}} {{ errorf "missing json schema: %s" .Position }} {{ end }} {{ $definition := index $schema.definitions $root }} {{ $showDefaults := false }} {{ range $definition.properties }} {{ if .default }} {{ $showDefaults = true }} {{ end }} {{ end }}
Option | Description | {{ if $showDefaults }}Default | {{ end }}
---|---|---|
{{$k}} |
{{if $isRequired}}Required {{end}}{{$v.description | markdownify}} | {{ if $showDefaults }}{{ $v.default }} | {{ end }}