Bugfix: Include custom labels in deployment pod template #281
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
name: Lint and Test Charts | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
env: | |
HELM_VERSION: 3.12.0 | |
PYTHON_VERSION: 3.9 | |
jobs: | |
lint-chart: | |
name: Lint chart | |
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: "${{ env.HELM_VERSION }}" | |
- name: Setup Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "${{ env.PYTHON_VERSION }}" | |
- name: Run Helm lint | |
run: helm lint charts/* | |
- name: Set up chart-testing | |
uses: helm/chart-testing-action@v2.4.0 | |
- name: Run chart-testing (lint) | |
run: ct lint --config .github/config/chart-testing.yaml | |
test-install-chart: | |
name: Test chart installation on K8s | |
runs-on: ubuntu-latest | |
needs: | |
- lint-chart | |
strategy: | |
matrix: | |
# see https://kubernetes.io/releases/patch-releases/#support-period | |
k8s: | |
- v1.25.9 | |
- v1.26.4 | |
- v1.27.2 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Set up Helm | |
uses: azure/setup-helm@v3 | |
with: | |
version: "${{ env.HELM_VERSION }}" | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: "${{ env.PYTHON_VERSION }}" | |
- name: Create kind ${{ matrix.k8s }} cluster | |
uses: helm/kind-action@v1.4.0 | |
with: | |
node_image: kindest/node:${{ matrix.k8s }} | |
- name: Check K8s nodes | |
run: | | |
kubectl get nodes; | |
- name: Run Chart Testing install | |
uses: helm/chart-testing-action@v2.4.0 | |
with: | |
command: install | |
config: .github/config/chart-testing.yaml |