Skip to content

Fixes operator doc description #460

Fixes operator doc description

Fixes operator doc description #460

Workflow file for this run

on:
push:
paths-ignore:
- 'packages/**'
- 'index.yaml'
- '**.md'
pull_request:
paths-ignore:
- 'packages/**'
- 'index.yaml'
- '**.md'
env:
HELM_VERSION: 3.11.3
jobs:
get-changed-charts:
name: Get changed charts
runs-on: ubuntu-22.04
outputs:
charts: ${{ steps.charts-diff.outputs.charts }}
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Run changed-files with dir_names
id: changed-charts
uses: tj-actions/changed-files@v34
with:
files: |
charts/**
# This steps gets output of changes-charts step and filters out only chart names
# changed-charts output is space-separated list of changed paths
# this bash pipeline extracts unique chart names from the list
- name: Build charts diff
id: charts-diff
run: |
charts=$(echo "${{ steps.changed-charts.outputs.all_modified_files }}" | sed 's/ /\n/g' | awk -F/ '{print $2}' | sort | uniq | jq -ncR '[inputs]')
echo "charts=$charts" >> $GITHUB_OUTPUT
install-chart:
name: Install chart
runs-on: ubuntu-22.04
needs: get-changed-charts
if: ${{ needs.get-changed-charts.outputs.charts != '[""]' }}
strategy:
matrix:
chart: ${{ fromJSON(needs.get-changed-charts.outputs.charts) }}
k8s_version: ["v1.24.14", "v1.25.10", "v1.26.5", "v1.27.2"]
fail-fast: false
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install Kubernetes tools
uses: yokawasa/[email protected]
with:
setup-tools: |
helmv3
kubectl
helm: "${{ env.HELM_VERSION }}"
kubectl: "${{ matrix.k8s_version }}"
- uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Set up chart-testing
uses: helm/[email protected]
- name: Create k3d cluster
uses: nolar/setup-k3d-k3s@v1
with:
version: ${{ matrix.k8s_version }}
- name: Remove node taints
run: |
kubectl taint --all=true nodes node.cloudprovider.kubernetes.io/uninitialized- || true
- name: Run chart-testing (install)
run: |
helm dep update charts/${{ matrix.chart }}
ct install --config .github/ci/ct.yaml --charts "charts/${{ matrix.chart }}" --helm-extra-set-args "--values ./hack/helm/${{ matrix.chart }}.yaml"