Add pods sharding processor that allows sharding on user specified node selectors #7030
Workflow file for this run
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
permissions: | |
contents: read | |
jobs: | |
changes: | |
permissions: | |
contents: read # for dorny/paths-filter to fetch a list of changed files | |
pull-requests: read # for dorny/paths-filter to read pull requests | |
outputs: | |
charts: ${{ steps.filter.outputs.charts }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- id: filter | |
uses: dorny/[email protected] | |
with: | |
filters: | | |
charts: | |
- 'charts/**/Chart.yaml' | |
- 'charts/**/*' | |
token: ${{ secrets.GITHUB_TOKEN }} | |
helm-lint-test: | |
if: ${{ needs.changes.outputs.charts == 'true' }} | |
name: Helm chart | |
needs: | |
- changes | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Fetch history | |
run: git fetch --prune --unshallow | |
- name: Set up chart-testing | |
uses: helm/[email protected] | |
- name: Run chart-testing (lint) | |
run: ct lint | |
# Only build a kind cluster if there are chart changes to test. | |
- name: Run chart-testing (list-changed) | |
id: list-changed | |
run: | | |
changed=$(ct list-changed) | |
if [[ -n "$changed" ]]; then | |
echo "changed=true" >> $GITHUB_OUTPUT | |
fi | |
- if: steps.list-changed.outputs.changed == 'true' | |
name: Create kind cluster | |
uses: helm/[email protected] | |
- if: steps.list-changed.outputs.changed == 'true' | |
name: Run chart-testing (install) | |
run: ct install | |
helm-docs-validate: | |
if: ${{ needs.changes.outputs.charts == 'true' }} | |
name: Helm Docs | |
needs: | |
- changes | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Run helm-docs | |
uses: docker://jnorwood/helm-docs:v1.3.0 | |
- name: Check for changes | |
run: git diff --quiet charts/*/README.md | |
name: Lint and Test Charts | |
on: pull_request |