diff options
| author | Chris Lu <chrislusf@users.noreply.github.com> | 2023-03-14 08:29:50 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-03-14 08:29:50 -0700 |
| commit | 3596a9abaaff00b3bd9b9ed79a02fc6dad43e2a7 (patch) | |
| tree | 2a910674f5b2278cd35d5760c561006f13d8c106 | |
| parent | 19702c7898ca0b8f4ac08d006797fd42f54e2005 (diff) | |
| parent | a861cd710e0f44981aac99d96e42003aedd17377 (diff) | |
| download | seaweedfs-csi-driver-3596a9abaaff00b3bd9b9ed79a02fc6dad43e2a7.tar.xz seaweedfs-csi-driver-3596a9abaaff00b3bd9b9ed79a02fc6dad43e2a7.zip | |
Merge pull request #112 from Jackbennett/pr/helm_repo_ci_gh_pagesv1.1.3
Use helm YAML from seaweedfs repo
| -rw-r--r-- | .github/workflows/helm_ci.yaml | 51 | ||||
| -rw-r--r-- | .github/workflows/helm_release.yaml | 22 | ||||
| -rw-r--r-- | README.md | 13 | ||||
| -rw-r--r-- | deploy/helm/seaweedfs-csi-driver/Chart.yaml | 2 |
4 files changed, 87 insertions, 1 deletions
diff --git a/.github/workflows/helm_ci.yaml b/.github/workflows/helm_ci.yaml new file mode 100644 index 0000000..523f42a --- /dev/null +++ b/.github/workflows/helm_ci.yaml @@ -0,0 +1,51 @@ +name: "helm: lint and test charts" + +on: + push: + branches: [ master ] + paths: ['deploy/helm/seaweedfs-csi-driver/**'] + pull_request: + branches: [ master ] + paths: ['deploy/helm/seaweedfs-csi-driver/**'] + +permissions: + contents: read + +jobs: + lint-test: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - name: Set up Helm + uses: azure/setup-helm@v3 + with: + version: v3.10.0 + + - uses: actions/setup-python@v4 + with: + python-version: '3.9' + check-latest: true + + - name: Set up chart-testing + uses: helm/chart-testing-action@v2.3.1 + + - name: Run chart-testing (list-changed) + id: list-changed + run: | + changed=$(ct list-changed --chart-dirs deploy/helm/seaweedfs-csi-driver/) + if [[ -n "$changed" ]]; then + echo "::set-output name=changed::true" + fi + + - name: Run chart-testing (lint) + run: ct lint --all --validate-maintainers=false --chart-dirs deploy/helm/seaweedfs-csi-driver/ + + - name: Create kind cluster + uses: helm/kind-action@v1.5.0 + + - name: Run chart-testing (install) + run: ct install --all --chart-dirs deploy/helm/seaweedfs-csi-driver/ diff --git a/.github/workflows/helm_release.yaml b/.github/workflows/helm_release.yaml new file mode 100644 index 0000000..67dbe66 --- /dev/null +++ b/.github/workflows/helm_release.yaml @@ -0,0 +1,22 @@ +name: "helm: publish charts" +on: + push: + tags: + - '*' + +permissions: + contents: write + pages: write + +jobs: + release: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Publish Helm charts + uses: stefanprodan/helm-gh-pages@master + with: + token: ${{ secrets.GITHUB_TOKEN }} + charts_dir: deploy/helm/ + target_dir: helm + branch: gh-pages @@ -28,6 +28,19 @@ ### Install +#### Helm + +1. Add the helm repo; + +```sh +helm repo add seaweedfs-csi-driver https://seaweedfs.github.io/seaweedfs-csi-driver/helm +"seaweedfs-csi-driver" has been added to your repositories +``` + +2. Check versions by `helm repo update seaweedfs-csi-driver` and `helm search repo seaweedfs-csi-driver` + +#### Source + 1. Clone this repository ```sh git clone https://github.com/seaweedfs/seaweedfs-csi-driver.git diff --git a/deploy/helm/seaweedfs-csi-driver/Chart.yaml b/deploy/helm/seaweedfs-csi-driver/Chart.yaml index a745145..93bf795 100644 --- a/deploy/helm/seaweedfs-csi-driver/Chart.yaml +++ b/deploy/helm/seaweedfs-csi-driver/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v2 name: seaweedfs-csi-driver -description: A Helm chart for Kubernetes +description: A Helm chart for Kubernetes CSI backed by a SeaweedFS cluster type: application version: 0.1.3 appVersion: latest |
