forked from wunderio/csi-rclone
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
various fixes to chart and driver (#4)
* add chart publish action * use nix to build image for chart publish * rename myApp to csiDriver * remove unneeded secrets and make storageclassname dynamic * ignore kind template in git * remove sops * remove secret, update readme, fix deploy * add helm lint * fix rbac apigroup * fix custom driver name support * fix unmounting corrupt storage * add support for readonly * fix helm check, optimize pv lookup * add support for zsh * Update test.yaml * address comments * make go version in line with chart version --------- Co-authored-by: Ralf Grubenmann <[email protected]>
- Loading branch information
Showing
36 changed files
with
181 additions
and
1,449 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 @@ | ||
name: Publish chart | ||
on: | ||
push: | ||
tags: | ||
- "*.*.*" | ||
workflow_dispatch: | ||
jobs: | ||
publish-chart: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.11 | ||
- uses: azure/setup-helm@v3 | ||
with: | ||
token: ${{secrets.GITHUB_TOKEN }} | ||
- name: install dependencies | ||
run: pip install chartpress | ||
- uses: cachix/install-nix-action@v22 | ||
with: | ||
nix_path: nixpkgs=channel:nixos-unstable | ||
- name: Flake check | ||
run: nix flake check | ||
- name: Publish images | ||
uses: workflow/[email protected] | ||
env: | ||
DOCKER_USERNAME: ${{ secrets.RENKU_DOCKER_USERNAME }} | ||
DOCKER_PASSWORD: ${{ secrets.RENKU_DOCKER_PASSWORD }} | ||
with: | ||
flakes-from-devshell: true | ||
flakes: .#csi-rclone-container-layerd | ||
script: | | ||
export TAG=$(echo ${GITHUB_REF} |cut -d/ -f3) | ||
nix build .#csi-rclone-container-layerd && ./result | docker load | ||
docker tag csi-rclone:latest renku/csi-rclone:latest | ||
docker tag csi-rclone:latest renku/csi-rclone:${TAG} | ||
echo ${DOCKER_PASSWORD}|docker login -u ${DOCKER_USERNAME} --password-stdin | ||
docker push renku/csi-rclone:latest | ||
docker push renku/csi-rclone:${TAG} | ||
- name: Publish chart | ||
run: | | ||
cd deploy | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "Renku Bot" | ||
export TAG=$(echo ${GITHUB_REF} |cut -d/ -f3) | ||
helm dep update csi-rclone | ||
chartpress --tag $TAG | ||
helm lint csi-rclone | ||
chartpress --tag $TAG --no-build --publish-chart | ||
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 |
---|---|---|
|
@@ -28,6 +28,8 @@ jobs: | |
nix_path: nixpkgs=channel:nixos-unstable | ||
- name: Flake check | ||
run: nix flake check | ||
- name: Helm check | ||
run: helm lint deploy/csi-rclone | ||
- name: Run tests | ||
uses: workflow/[email protected] | ||
with: | ||
|
@@ -40,5 +42,3 @@ jobs: | |
- name: Print rclone log | ||
if: ${{ failure() }} | ||
run: cat /tmp/rclone.log | ||
|
||
|
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 |
---|---|---|
|
@@ -5,3 +5,4 @@ rclone-build/ | |
result | ||
kubeconfig | ||
.DS_Store | ||
devenv/kind/ |
This file was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,15 @@ | ||
charts: | ||
- name: csi-rclone | ||
imagePrefix: renku/ | ||
resetTag: "" | ||
resetVersion: 0.1.0 | ||
repo: | ||
git: SwissDataScienceCenter/helm-charts | ||
published: https://swissdatasciencecenter.github.io/helm-charts | ||
images: | ||
csi-rclone: | ||
contextPath: ../ | ||
dockerFilePath: ../Dockerfile | ||
valuesPath: | ||
- csiControllerRclone.rclone.image | ||
- csiNodepluginRclone.rclone.image |
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
Oops, something went wrong.