Skip to content

Commit fa958b8

Browse files
authored
feat(helm): Improve docs, add schema (#12984)
* feat(helm): Improve docs, add schema * Swap helm/defectdojo/README.md & readme-docs/KUBERNETES.md
1 parent d1d007a commit fa958b8

7 files changed

Lines changed: 2293 additions & 499 deletions

File tree

.github/workflows/test-helm-chart.yml

Lines changed: 53 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010

1111
jobs:
1212
lint:
13-
name: Lint chart
13+
name: Lint chart (version)
1414
runs-on: ubuntu-latest
1515
steps:
1616
- name: Checkout
@@ -72,3 +72,55 @@ jobs:
7272
# - name: Run chart-testing (install)
7373
# run: ct install --config ct.yaml --target-branch ${{ env.ct-branch }} --helm-extra-args '--set createSecret=true --set createRabbitMqSecret=true --set createPostgresqlSecret=true --set timeout=900'
7474
# if: env.changed == 'true'
75+
76+
docs_generation:
77+
name: Update documentation
78+
runs-on: ubuntu-latest
79+
steps:
80+
- name: Checkout
81+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
82+
83+
# If this step is failing, run `helm-docs --chart-search-root helm/defectdojo`
84+
- name: Run helm-docs
85+
uses: losisin/helm-docs-github-action@a57fae5676e4c55a228ea654a1bcaec8dd3cf5b5 # v1.6.2
86+
with:
87+
fail-on-diff: true
88+
chart-search-root: "helm/defectdojo"
89+
90+
generate_schema:
91+
name: Update schema
92+
runs-on: ubuntu-latest
93+
steps:
94+
- name: Checkout
95+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
96+
97+
# If this step is failing, run `helm schema --use-helm-docs` in `helm/defectdojo`
98+
- name: Generate values schema json
99+
uses: losisin/helm-values-schema-json-action@28b1b33dcd9bd10bb8157627566f3971313a8872 # v2.0.4
100+
with:
101+
fail-on-diff: true
102+
working-directory: "helm/defectdojo"
103+
useHelmDocs: true
104+
values: values.yaml
105+
106+
lint_format:
107+
name: Lint chart (format)
108+
runs-on: ubuntu-latest
109+
steps:
110+
- name: Checkout
111+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
112+
with:
113+
persist-credentials: false
114+
fetch-depth: 0
115+
116+
- name: Set up Helm
117+
uses: azure/setup-helm@b9e51907a09c216f16ebe8536097933489208112 # v4.3.0
118+
119+
- name: Configure Helm repos
120+
run: |-
121+
helm dependency list ./helm/defectdojo
122+
helm dependency update ./helm/defectdojo
123+
124+
- name: Lint
125+
run: |-
126+
helm lint ./helm/defectdojo --strict

helm/defectdojo/.helmignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@
2020
.idea/
2121
*.tmproj
2222
.vscode/
23-
README.md
23+
README.md.gotmpl

helm/defectdojo/README.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)