Skip to content

Commit ae590b8

Browse files
authored
📝 check for updated docs in pipeline (#98)
Using `helm-docs` (https://github.com/norwoodj/helm-docs)
1 parent 88dbeb9 commit ae590b8

File tree

3 files changed

+40
-3
lines changed

3 files changed

+40
-3
lines changed

.github/workflows/docs.yaml

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Check docs
2+
on:
3+
push:
4+
branches:
5+
- main
6+
7+
pull_request:
8+
types: [opened, reopened, synchronize]
9+
paths:
10+
- "charts/**"
11+
- ".github/workflows/**"
12+
13+
jobs:
14+
test:
15+
name: Check for updated Helm Chart docs
16+
runs-on: ubuntu-latest
17+
steps:
18+
- name: Checkout
19+
uses: actions/checkout@v4
20+
with:
21+
fetch-depth: 0
22+
23+
- name: Set up Go
24+
uses: actions/setup-go@v5
25+
26+
- name: Install helm-docs
27+
run: |
28+
go install github.com/norwoodj/helm-docs/cmd/helm-docs@latest
29+
30+
- name: Check if README is missing updates
31+
run: |
32+
helm-docs
33+
git diff --exit-code charts/athens-proxy/README.md

charts/athens-proxy/README.md

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Athens Proxy Helm Chart: athens-proxy
22

3-
![Version: 0.14.0](https://img.shields.io/badge/Version-0.14.0-informational?style=flat-square) ![AppVersion: v0.15.1](https://img.shields.io/badge/AppVersion-v0.15.1-informational?style=flat-square)
3+
![Version: 0.14.4](https://img.shields.io/badge/Version-0.14.4-informational?style=flat-square) ![AppVersion: v0.15.4](https://img.shields.io/badge/AppVersion-v0.15.4-informational?style=flat-square)
44

55
## What is Athens?
66

@@ -10,7 +10,7 @@ Athens provides a repository for [Go Modules](https://github.com/golang/go/wiki/
1010

1111
## Prerequisites
1212

13-
Kubernetes: `>= 1.19`
13+
Kubernetes: `>= 1.19-0`
1414

1515
## Requirements
1616

@@ -86,6 +86,10 @@ This will deploy a single Athens instance in the `athens` namespace with `disk`
8686
| netrc.existingSecret | string | `"netrcsecret"` | Secret name, containing the '.netrc' file |
8787
| nodeSelector | object | `{}` | see https://kubernetes.io/docs/reference/kubernetes-api/workload-resources/pod-v1/#scheduling |
8888
| priorityClassName | string | `""` | Priority class for pod scheduling. see API reference: https://kubernetes.io/docs/concepts/configuration/pod-priority-preemption/#priorityclass |
89+
| readinessProbe.failureThreshold | int | `3` | |
90+
| readinessProbe.periodSeconds | int | `10` | |
91+
| readinessProbe.successThreshold | int | `1` | |
92+
| readinessProbe.timeoutSeconds | int | `1` | |
8993
| replicaCount | int | `1` | Set the number of athens-proxy replicas, unless autoscaling is enabled |
9094
| resources | object | `{}` | Define resources for athens pods. see https://kubernetes.io/docs/reference/kubernetes-api/workload-resources/pod-v1/#resources |
9195
| securityContext | object | `{}` | Container security context configuration. see API reference: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.28/#securitycontext-v1-core. This will override the `image.runAsNonRoot` settings in the specified container if `runAsUser` or `runAsGroup` are set |

charts/athens-proxy/README.md.gotmpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{{- /* run `helm-docs` to generate README.md */ -}}
1+
{{- /* run `helm-docs` (github.com/norwoodj/helm-docs) to generate README.md */ -}}
22

33
# Athens Proxy Helm Chart: {{ template "chart.name" . }}
44

0 commit comments

Comments
 (0)