Skip to content

Commit 75774f5

Browse files
committed
conform to MD022
1 parent 60d02b1 commit 75774f5

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

example-charts/sections/README.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,27 @@
11
# Sections
22

3-
This creates values, but sectioned into own section tables if a seciton comment is provided.
3+
This creates values, but sectioned into own section tables if a section comment is provided.
44

55
## Values
66

77
### Some Section
8+
89
| Key | Type | Default | Description |
910
|-----|------|---------|-------------|
1011
| controller.extraVolumes[0].configMap.name | string | `"nginx-ingress-config"` | Uses the name of the configmap created by this chart |
1112
| controller.persistentVolumeClaims | list | the chart will construct this list internally unless specified | List of persistent volume claims to create. |
1213
| controller.podLabels | object | `{}` | The labels to be applied to instances of the controller pod |
1314

1415
### Special Attention
16+
1517
| Key | Type | Default | Description |
1618
|-----|------|---------|-------------|
1719
| controller.ingressClass | string | `"nginx"` | You can also specify value comments like this |
1820
| controller.publishService | object | `{"enabled":false}` | This is a publishService |
1921
| controller.replicas | int | `nil` | Number of nginx-ingress pods to load balance between |
2022

2123
### Other Values
24+
2225
| Key | Type | Default | Description |
2326
|-----|------|---------|-------------|
2427
| controller.extraVolumes[0].name | string | `"config-volume"` | |

pkg/document/template.go

+2
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,7 @@ func getValuesTableTemplates() string {
212212
valuesSectionBuilder.WriteString("{{ range .Sections.Sections }}")
213213
valuesSectionBuilder.WriteString("\n")
214214
valuesSectionBuilder.WriteString("\n### {{ .SectionName }}\n")
215+
valuesSectionBuilder.WriteString("\n")
215216
valuesSectionBuilder.WriteString("| Key | Type | Default | Description |\n")
216217
valuesSectionBuilder.WriteString("|-----|------|---------|-------------|\n")
217218
valuesSectionBuilder.WriteString(" {{- range .SectionItems }}")
@@ -221,6 +222,7 @@ func getValuesTableTemplates() string {
221222
valuesSectionBuilder.WriteString("{{ if .Sections.DefaultSection.SectionItems}}")
222223
valuesSectionBuilder.WriteString("\n")
223224
valuesSectionBuilder.WriteString("\n### {{ .Sections.DefaultSection.SectionName }}\n")
225+
valuesSectionBuilder.WriteString("\n")
224226
valuesSectionBuilder.WriteString("| Key | Type | Default | Description |\n")
225227
valuesSectionBuilder.WriteString("|-----|------|---------|-------------|\n")
226228
valuesSectionBuilder.WriteString(" {{- range .Sections.DefaultSection.SectionItems }}")

0 commit comments

Comments
 (0)