forked from apache/apisix-helm-chart
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: use helm docs to generate documentation (apache#415)
Co-authored-by: Jintao Zhang <[email protected]>
- Loading branch information
1 parent
b4ff7a0
commit dd7d752
Showing
11 changed files
with
663 additions
and
407 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -68,3 +68,19 @@ jobs: | |
&& helm repo add apisix https://charts.apiseven.com \ | ||
&& ct install \ | ||
--charts charts/apisix' | ||
- name: Setup Go | ||
uses: actions/setup-go@v3 | ||
with: | ||
go-version: '1.19.2' | ||
|
||
- 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 | ||
DIFF=$(git diff ${GITHUB_WORKSPACE}/charts/**/*md) | ||
if [ ! -z "$DIFF" ]; then | ||
echo "Please use helm-docs in your clone, of your fork, of the project, and commit a updated README.md for the chart." | ||
fi | ||
git diff --exit-code | ||
rm -f ./helm-docs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
.PHONY: helm-docs | ||
helm-docs: | ||
ifeq (, $(shell which helm-docs)) | ||
$(info "helm-docs not found, installing") | ||
$(shell go install github.com/norwoodj/helm-docs/cmd/helm-docs@latest) | ||
endif | ||
helm-docs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
# Apache APISIX Dashboard | ||
|
||
[APISIX Dashboard](https://github.com/apache/apisix-dashboard/) is designed to make it as easy as possible for users to operate Apache APISIX through a frontend interface. | ||
|
||
This chart bootstraps an apisix-dashboard deployment on a [Kubernetes](http://kubernetes.io) cluster using the [Helm](https://helm.sh) package manager. | ||
|
||
## Prerequisites | ||
|
||
APISIX Dashboard requires Kubernetes version 1.14+. | ||
|
||
## Get Repo Info | ||
|
||
```console | ||
helm repo add apisix https://charts.apiseven.com | ||
helm repo update | ||
``` | ||
|
||
## Install Chart | ||
|
||
**Important:** only helm3 is supported | ||
|
||
```console | ||
helm install [RELEASE_NAME] apisix/apisix-dashboard --namespace ingress-apisix --create-namespace | ||
``` | ||
|
||
The command deploys apisix-dashboard on the Kubernetes cluster in the default configuration. | ||
|
||
_See [configuration](#configuration) below._ | ||
|
||
_See [helm install](https://helm.sh/docs/helm/helm_install/) for command documentation._ | ||
|
||
## Uninstall Chart | ||
|
||
```console | ||
helm uninstall [RELEASE_NAME] --namespace ingress-apisix | ||
``` | ||
|
||
This removes all the Kubernetes components associated with the chart and deletes the release. | ||
|
||
_See [helm uninstall](https://helm.sh/docs/helm/helm_uninstall/) for command documentation._ | ||
|
||
## Upgrading Chart | ||
|
||
```console | ||
helm upgrade [RELEASE_NAME] [CHART] --install | ||
``` | ||
|
||
_See [helm upgrade](https://helm.sh/docs/helm/helm_upgrade/) for command documentation._ | ||
|
||
## Parameters | ||
|
||
{{ template "chart.valuesSection" . }} |
Oops, something went wrong.