feat(manager+scheduler): add ExternalRedis TLS support (related to issue dragonflyoss/dragonly #4734) #1242
Workflow file for this run
This file contains hidden or 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
| name: Lint and Test Charts | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| changes: | |
| outputs: | |
| charts: ${{ steps.filter.outputs.charts }} | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v7 | |
| - id: filter | |
| uses: dorny/paths-filter@v4.0.2 | |
| with: | |
| filters: | | |
| charts: | |
| - 'charts/**/Chart.yaml' | |
| - 'charts/**/*' | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| lint-test: | |
| if: needs.changes.outputs.charts == 'true' | |
| runs-on: ubuntu-latest | |
| needs: | |
| - changes | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v7 | |
| - name: Fetch history | |
| run: git fetch --prune --unshallow | |
| - name: Set up Helm | |
| uses: azure/setup-helm@v5 | |
| with: | |
| version: v3.7.2 | |
| - uses: actions/setup-python@v6 | |
| with: | |
| python-version: 3.9 | |
| - name: Set up chart-testing | |
| uses: helm/chart-testing-action@v2.8.0 | |
| - name: Run chart-testing (list-changed) | |
| id: list-changed | |
| run: | | |
| changed=$(ct list-changed --config ./.github/ct.yaml) | |
| if [[ -n "$changed" ]]; then | |
| echo "::set-output name=changed::true" | |
| fi | |
| - name: Run chart-testing (lint) | |
| run: ct lint --config ./.github/ct.yaml | |
| - name: Create kind cluster | |
| uses: helm/kind-action@v1.14.0 | |
| if: steps.list-changed.outputs.changed == 'true' | |
| - name: Add bitnami chart repos | |
| run: helm repo add bitnami https://charts.bitnami.com/bitnami | |
| - name: Add dragonfly chart repos | |
| run: helm repo add dragonfly https://dragonflyoss.github.io/helm-charts/ | |
| - name: Add nydus-snapshotter chart repos | |
| run: helm repo add nydus-snapshotter https://dragonflyoss.github.io/helm-charts/ | |
| - name: Install cert-manager (Helm) | |
| run: | | |
| helm repo add jetstack https://charts.jetstack.io | |
| helm repo update | |
| helm install cert-manager jetstack/cert-manager \ | |
| --namespace cert-manager \ | |
| --create-namespace \ | |
| --set crds.enabled=true \ | |
| --wait --timeout 120s | |
| - name: Run chart-testing (install) | |
| run: ct install --config ./.github/ct.yaml | |
| docs-validate: | |
| if: needs.changes.outputs.charts == 'true' | |
| needs: | |
| - changes | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v7 | |
| - name: Check for changes | |
| run: | | |
| docker run --rm --volume "$(pwd):/helm-docs" -u "$(id -u)" jnorwood/helm-docs:v1.10.0 | |
| if ! git diff --exit-code; then | |
| echo "Documentation not up to date. Please run helm-docs and commit changes!" >&2 | |
| exit 1 | |
| fi |