Skip to content

Commit

Permalink
add a valuesTable helper for filtering keys
Browse files Browse the repository at this point in the history
  • Loading branch information
colearendt authored and willholley committed Dec 6, 2022
1 parent 7625975 commit f9bb143
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions _templates.gotmpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{{- define "couchdb.valuesTable" }}
| Key | Type | Default | Description |
|-----|------|---------|-------------|
{{- range .Values }}
{{- if eq .Key "allowAdminParty" "clusterSize" "couchdbConfig" "createAdminSecret" "schedulerName" "erlangFlags" "persistentVolume" "enableSearch" }}
| {{ .Key }} | {{ .Type }} | {{ if .Default }}{{ .Default }}{{ else }}{{ .AutoDefault }}{{ end }} | {{ if .Description }}{{ .Description }}{{ else }}{{ .AutoDescription }}{{ end }} |
{{- end }}
{{- end }}
{{- end }}

0 comments on commit f9bb143

Please sign in to comment.