Skip to content

fix bug

fix bug #52

Workflow file for this run

# validate any chart changes under charts directory
name: Chart Lint
env:
HELM_VERSION: v3.8.1
KIND_VERSION: v0.14.0
KIND_NODE_IMAGE: kindest/node:v1.26.0
K8S_VERSION: v1.23.4
on:
push:
pull_request:
paths:
- "charts/karmada/**"
jobs:
chart-lint-test:
runs-on: ubuntu-20.04
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 }}
# Python is required because `ct lint` runs Yamale (https://github.com/23andMe/Yamale) and
# yamllint (https://github.com/adrienverge/yamllint) which require Python
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.8
architecture: x64
- name: Set up chart-testing
uses: helm/[email protected]
with:
version: v3.6.0
- name: Add dependency chart repos
run: |
helm repo add bitnami https://charts.bitnami.com/bitnami
- name: Run chart-testing (list-changed)
id: list-changed
run: |
changed=$( ct list-changed )
if [[ -n "$changed" ]]; then
echo "::set-output name=changed::true"
fi
- name: Run chart-testing (lint)
run: ct lint --debug --check-version-increment=false
- name: Create kind cluster
uses: helm/[email protected]
if: steps.list-changed.outputs.changed == 'true'
with:
wait: 120s
version: ${{ env.KIND_VERSION }}
node_image: ${{ env.KIND_NODE_IMAGE }}
kubectl_version: ${{ env.K8S_VERSION }}
- name: Run chart-testing (install)
run: ct install --debug --helm-extra-args "--timeout 800s"