Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add push chart packages config to kungze #6

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Lint Charts

on:
pull_request:
paths:
- 'charts/**'

jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Fetch history
run: git fetch --prune --unshallow

- name: Set up Helm
uses: azure/setup-helm@v1
with:
version: v3.6.1

- name: Set up chart-testing
uses: helm/[email protected]

# https://github.com/helm/chart-testing/blob/main/doc/ct_lint.md
- name: Run chart-testing (lint)
run: ct lint --target-branch=${GITHUB_BASE_REF} --check-version-increment=false
7 changes: 7 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,10 @@ jobs:
uses: helm/[email protected]
env:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"

- name: Push chart packages to kungze.net
shell: bash
run: |
if [ -d ".cr-release-packages/" ]; then
find .cr-release-packages/ -name "*.tgz" | xargs -I {} helm cm-push {} ${{ secrets.KUNGZE_CM_URL }} --username ${{ secrets.KUNGZE_CM_USER }} --password ${{ secrets.KUNGZE_CM_PASSWORD }} --force
fi
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ rules:
verbs: ["get", "list", "watch"]
- apiGroups: ["snapshot.storage.k8s.io"]
resources: ["volumesnapshotcontents"]
verbs: ["create", "get", "list", "watch", "update", "delete"]
verbs: ["create", "get", "list", "watch", "update", "delete", "patch"]
- apiGroups: ["snapshot.storage.k8s.io"]
resources: ["volumesnapshotcontents/status"]
verbs: ["update"]
Expand Down
2 changes: 1 addition & 1 deletion manifests/cinder-csi-controllerplugin-rbac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ rules:
verbs: ["get", "list", "watch"]
- apiGroups: ["snapshot.storage.k8s.io"]
resources: ["volumesnapshotcontents"]
verbs: ["create", "get", "list", "watch", "update", "delete"]
verbs: ["create", "get", "list", "watch", "update", "delete", "patch"]
- apiGroups: ["snapshot.storage.k8s.io"]
resources: ["volumesnapshotcontents/status"]
verbs: ["update"]
Expand Down