This repository has been archived by the owner on Apr 17, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Use helm-docs * Move release instructions to RELEASE.md Add helm-docs instructions to RELEASE.md * Add docs-check.yml ci pipeline * Add more ignores, test the CI * Change values to configuration * Add links instead of ignores
- Loading branch information
Showing
8 changed files
with
204 additions
and
56 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 |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: docs-check | ||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
# cancel the in-progress workflow when PR is refreshed. | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.sha }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
docs-check: | ||
name: docs-check | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- uses: actions/setup-go@v3 | ||
with: | ||
go-version: 1.18 | ||
|
||
- 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/extended-ceph-exporter/README.md) | ||
if [ ! -z "$DIFF" ]; then | ||
echo "Please use helm-docs in your clone of the project, and commit an updated README.md for the chart. https://github.com/koor-tech/extended-ceph-exporter/blob/main/RELEASE.md#running-helm-docs" | ||
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
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,25 @@ | ||
# RELEASE PROCESS | ||
|
||
To create a new release (example is for release `v0.1.2`): | ||
|
||
1. Increase the version according to Semantic Versioning in the [`VERSION` file](VERSION). | ||
2. Add a new entry to the [`CHANGELOG.md`](CHANGELOG.md) with the changes and improvements listed in it. | ||
3. Set the new version, which will be the new container image tag, in [the `Chart.yaml` of the Helm chart here](charts/extended-ceph-exporter/Chart.yaml#L24) (`appVersion:` field). | ||
4. If the [helm chart vlues](charts/extended-ceph-exporter/values.yaml) or documentation is updated, please [run helm-docs](#running-helm-docs) | ||
5. Check out a new branch, which will be used for the pull request to update the version: `git checkout -b BRANCH_NAME` | ||
6. Commit these changes now using `git commit -s -S`. | ||
7. Push the branch using `git push -u origin BRANCH_NAME` with these changes and create a pull request on [GitHub](https://github.com/koor-tech/extended-ceph-exporter). | ||
8. Wait for pull request to be approved and merge it (if you have access to do so). | ||
9. Create the new tag using `git tag v0.1.2` and then run `git push -u origin v0.1.2` | ||
10. In a few minutes, the CI should have built and published a draft of the release here [GitHub - Releases List](https://github.com/koor-tech/extended-ceph-exporter/releases). | ||
11. Now edit the release and use the green button to publish the release. | ||
12. Congratulations! The release is now fully published. | ||
|
||
## Running helm-docs | ||
[helm-docs](https://github.com/norwoodj/helm-docs) is a tool that generates the README.md for a helm-chart automatically. We need to run helm-docs manually, and check in the resulting autogenerated README.md at the path [charts/extended-ceph-exporter/README.md](charts/extended-ceph-exporter/README.md) | ||
|
||
```console | ||
GO111MODULE=on go install github.com/norwoodj/helm-docs/cmd/[email protected] | ||
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
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,56 @@ | ||
{{ template "chart.header" . }} | ||
{{ template "chart.description" . }} | ||
|
||
{{ template "chart.badgesSection" . }} | ||
|
||
## Get Repo Info | ||
|
||
```console | ||
helm repo add extended-ceph-exporter https://koor-tech.github.io/extended-ceph-exporter | ||
helm repo update | ||
``` | ||
|
||
_See [helm repo](https://helm.sh/docs/helm/helm_repo/) for command documentation._ | ||
|
||
## Install Chart | ||
|
||
To install the chart with the release name `my-release`: | ||
|
||
```console | ||
helm install --namespace <your-cluster-namespace> my-release extended-ceph-exporter/extended-ceph-exporter | ||
``` | ||
|
||
The command deploys extended-ceph-exporter 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._ | ||
|
||
|
||
### Development Build | ||
To deploy from a local build from your development environment: | ||
|
||
```console | ||
cd charts/extended-ceph-exporter | ||
helm install --namespace <your-cluster-namespace> my-release . -f values.yaml | ||
``` | ||
|
||
## Uninstall Chart | ||
|
||
To uninstall/delete the my-release deployment: | ||
|
||
```console | ||
helm delete --namespace <your-cluster-namespace> my-release | ||
``` | ||
|
||
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._ | ||
|
||
{{ template "chart.requirementsSection" . }} | ||
|
||
## Configuration | ||
|
||
{{ template "chart.valuesTable" . }} | ||
|
||
{{ template "helm-docs.versionFooter" . }} |
Oops, something went wrong.