Using the default UID/GID 999 from the postgres docker image #74
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
name: tests-cluster-chainsaw | |
on: | |
pull_request: | |
branches-ignore: | |
- 'gh-pages' | |
jobs: | |
test-cluster-standalone: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
with: | |
fetch-depth: 0 | |
- name: Set ParadeDB Version to Latest | |
working-directory: charts/cluster/ | |
env: | |
GH_TOKEN: ${{ secrets.GHA_CREATE_RELEASE_PAT }} | |
run: | | |
LATEST_TAG=$(curl -s https://api.github.com/repos/paradedb/paradedb/tags | jq -r '.[0].name') | |
APP_VERSION=${LATEST_TAG#v} | |
sed -i "s/^[[:space:]]*paradedb: .*/ paradedb: \"$APP_VERSION\"/" values.yaml | |
sed -i "s/^version: .*/version: ${{ vars.CHART_VERSION_MAJOR }}.${{ vars.CHART_VERSION_MINOR }}.${{ vars.CHART_VERSION_PATCH }}/" Chart.yaml | |
echo "values.yaml:" | |
cat values.yaml | |
echo "----------------------------------------" | |
echo "Chart.yaml:" | |
cat Chart.yaml | |
- name: Setup kind | |
uses: ./.github/actions/setup-kind | |
- name: Deploy the operator | |
uses: ./.github/actions/deploy-operator | |
- name: Install Prometheus CRDs | |
run: | | |
helm repo add prometheus-community https://prometheus-community.github.io/helm-charts | |
helm install prometheus-crds prometheus-community/prometheus-operator-crds | |
- name: Install Chainsaw | |
uses: kyverno/action-install-chainsaw@b2f61a8d0459a65c476ac802514d88e1612b3396 # v0.2.9 | |
- name: Setup MinIO | |
run: | | |
helm repo add minio-operator https://operator.min.io | |
helm upgrade \ | |
--install \ | |
--namespace minio-system \ | |
--create-namespace \ | |
--wait \ | |
operator minio-operator/operator | |
helm upgrade \ | |
--install \ | |
--namespace minio \ | |
--create-namespace \ | |
--wait \ | |
--values ./.github/minio.yaml \ | |
tenant minio-operator/tenant | |
- name: Run Kyverno/Chainsaw | |
run: chainsaw test |