Skip to content

Commit 50d874e

Browse files
committed
feat(helm): Improve docs, add schema
1 parent 941dd6c commit 50d874e

File tree

5 files changed

+1680
-10
lines changed

5 files changed

+1680
-10
lines changed

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

Lines changed: 52 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
@@ -73,3 +73,54 @@ jobs:
7373
# - name: Run chart-testing (install)
7474
# 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'
7575
# if: env.changed == 'true'
76+
77+
docs_generation:
78+
name: Update documentation
79+
runs-on: ubuntu-latest
80+
steps:
81+
- name: Checkout
82+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
83+
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+
- name: Generate values schema json
98+
uses: losisin/helm-values-schema-json-action@28b1b33dcd9bd10bb8157627566f3971313a8872 # v2.0.4
99+
with:
100+
fail-on-diff: true
101+
working-directory: "helm/defectdojo"
102+
useHelmDocs: true
103+
values: values.yaml
104+
105+
lint_format:
106+
name: Lint chart (format)
107+
runs-on: ubuntu-latest
108+
steps:
109+
- name: Checkout
110+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
111+
with:
112+
persist-credentials: false
113+
fetch-depth: 0
114+
115+
- name: Set up Helm
116+
uses: azure/setup-helm@b9e51907a09c216f16ebe8536097933489208112 # v4.3.0
117+
118+
- name: Configure Helm repos
119+
run: |-
120+
helm repo add bitnami https://charts.bitnami.com/bitnami
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/Chart.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
dependencies:
22
- name: postgresql
33
repository: https://charts.bitnami.com/bitnami
4-
version: 16.7.0
4+
version: 16.7.24
55
- name: redis
66
repository: https://charts.bitnami.com/bitnami
77
version: 19.6.4
8-
digest: sha256:20147b5ef71e728a24b1ce410bfbc64885bb824bac17d75dc3ad49e9af5f1b01
9-
generated: "2025-05-08T15:21:14.221601771Z"
8+
digest: sha256:32362de94f783d68a7826b8383fc2c8f480ea97456649f0955e41e4def4bb52a
9+
generated: "2025-08-13T19:57:03.316096+02:00"

0 commit comments

Comments
 (0)