Automatically generate helm docs (#8151)
This commit is contained in:
parent
1614027cd4
commit
0e5d4ad425
3 changed files with 21 additions and 8 deletions
7
.github/workflows/ci.yaml
vendored
7
.github/workflows/ci.yaml
vendored
|
@ -137,13 +137,6 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
./build/run-in-docker.sh ./hack/verify-chart-lint.sh
|
./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/helm-docs@v1.6.0
|
|
||||||
./helm-docs --chart-search-root=${GITHUB_WORKSPACE}/charts
|
|
||||||
git diff --exit-code
|
|
||||||
rm -f ./helm-docs
|
|
||||||
|
|
||||||
- name: fix permissions
|
- name: fix permissions
|
||||||
run: |
|
run: |
|
||||||
sudo mkdir -p $HOME/.kube
|
sudo mkdir -p $HOME/.kube
|
||||||
|
|
20
.github/workflows/helm.yaml
vendored
20
.github/workflows/helm.yaml
vendored
|
@ -56,6 +56,26 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
git config --global user.name "$GITHUB_ACTOR"
|
git config --global user.name "$GITHUB_ACTOR"
|
||||||
git config --global user.email "$GITHUB_ACTOR@users.noreply.github.com"
|
git config --global user.email "$GITHUB_ACTOR@users.noreply.github.com"
|
||||||
|
|
||||||
|
- 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/helm-docs@v1.6.0
|
||||||
|
./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
|
- name: Run chart-releaser
|
||||||
uses: helm/chart-releaser-action@v1.2.1
|
uses: helm/chart-releaser-action@v1.2.1
|
||||||
|
|
|
@ -34,7 +34,7 @@ controller:
|
||||||
# -- Configures the controller container name
|
# -- Configures the controller container name
|
||||||
containerName: controller
|
containerName: controller
|
||||||
|
|
||||||
# -- Configures the ports the nginx-controller listens on
|
# -- Configures the ports that the nginx-controller listens on
|
||||||
containerPort:
|
containerPort:
|
||||||
http: 80
|
http: 80
|
||||||
https: 443
|
https: 443
|
||||||
|
|
Loading…
Reference in a new issue