Skip to content

Commit

Permalink
Automatically generate helm docs (#8151)
Browse files Browse the repository at this point in the history
  • Loading branch information
rikatz authored Jan 17, 2022
1 parent 1614027 commit 0e5d4ad
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 8 deletions.
7 changes: 0 additions & 7 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -137,13 +137,6 @@ jobs:
run: |
./build/run-in-docker.sh ./hack/verify-chart-lint.sh
- name: Run helm-docs
run: |
GOBIN=$PWD GO111MODULE=on go install github.com/norwoodj/helm-docs/cmd/[email protected]
./helm-docs --chart-search-root=${GITHUB_WORKSPACE}/charts
git diff --exit-code
rm -f ./helm-docs
- name: fix permissions
run: |
sudo mkdir -p $HOME/.kube
Expand Down
20 changes: 20 additions & 0 deletions .github/workflows/helm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,26 @@ jobs:
run: |
git config --global user.name "$GITHUB_ACTOR"
git config --global user.email "[email protected]"
- name: Set up Go 1.17
id: go
uses: actions/setup-go@v2
with:
go-version: 1.17

- name: Run helm-docs
run: |
cd ${GITHUB_WORKSPACE}
GOBIN=$PWD GO111MODULE=on go install github.com/norwoodj/helm-docs/cmd/[email protected]
./helm-docs --chart-search-root=${GITHUB_WORKSPACE}/charts
git diff --exit-code ${GITHUB_WORKSPACE}/charts/ingress-nginx/README.md
if [ $? -ne 0 ]; then
git add ${GITHUB_WORKSPACE}/charts/ingress-nginx/README.md
git commit -m "Update helm README"
git push --quiet https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git main > /dev/null 2>&1
fi
rm ./helm-docs
- name: Run chart-releaser
uses: helm/[email protected]
Expand Down
2 changes: 1 addition & 1 deletion charts/ingress-nginx/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ controller:
# -- Configures the controller container name
containerName: controller

# -- Configures the ports the nginx-controller listens on
# -- Configures the ports that the nginx-controller listens on
containerPort:
http: 80
https: 443
Expand Down

0 comments on commit 0e5d4ad

Please sign in to comment.