Skip to content

Allow disabling the cert-manager check in cass-operator's helm charts #1721

Allow disabling the cert-manager check in cass-operator's helm charts

Allow disabling the cert-manager check in cass-operator's helm charts #1721

Workflow file for this run

---
name: PR Checks
on:
pull_request:
branches:
- main
paths-ignore:
- 'docs/**'
jobs:
lint-check:
runs-on: ubuntu-latest
steps:
- name: Cache bin path
id: cache
uses: actions/cache@v3
with:
path: bin
key: ${{ runner.os }}-${{ env.HELM_VERSION }}-${{ env.YQ_VERSION }}
- name: Checkout
uses: actions/checkout@v3
- name: Update PATH
run: |
echo "$GITHUB_WORKSPACE/bin" >> $GITHUB_PATH
- name: Create env variables
run: ./.github/scripts/env_variables.sh
- name: Install Helm
uses: azure/setup-helm@v3
with:
version: ${{ env.HELM_VERSION }}
- name: Add K8ssandra Helm repo
run: |
helm repo add k8ssandra https://helm.k8ssandra.io/stable
helm repo update
- name: Install yq and validate tool versions
run: |
scripts/install-yq.sh ${{ env.YQ_VERSION }}
helm version
yq -V
- name: Update chart dependencies
run: |
scripts/update-helm-deps.sh
- name: Setup working directory
run: |
mkdir build
cp -rv charts/* build/
find build/cass-operator/templates -name '*.yaml' | xargs sed -i -e 's/.Capabilities.APIVersions.Has "cert-manager.io\/v1"/true/g'
- name: Lint charts
run: |
ls | while read c; do
if [[ -d $c ]]; then
helm lint $c
if [[ $? -ne 0 ]]; then
EXIT_CODE=$?
echo "::error file=charts/$c::Error linting $c, check job output"
exit $EXIT_CODE
fi
fi
done
working-directory: build