Skip to content

feat: add zookeeper cluster mode #158

feat: add zookeeper cluster mode

feat: add zookeeper cluster mode #158

Workflow file for this run

---
name: CI
on:
push:
branches:
- main
paths:
- ".github/workflows/ci.yml"
- "deployment/**"
pull_request:
branches:
- main
paths:
- ".github/workflows/ci.yml"
- "deployment/**"
workflow_dispatch:
jobs:
k8s-test:
runs-on: ubuntu-latest
if: ${{ ! contains(github.ref, 'main') }}
steps:
- name: Create k8s Kind Cluster
uses: helm/kind-action@v1.10.0
- name: Checkout
uses: actions/checkout@v4
- name: Run K8s test
run: |
kubectl cluster-info
export NS=`cat deployment/kustomization.yml | grep namespace | awk '{ print $2 }'`
if [ -z "$NS" ]; then
export NS='nifi'
fi
kubectl create namespace $NS
kubectl apply -n $NS -k deployment/
kubectl get all -A
auto-approve:
runs-on: ubuntu-latest
needs: [k8s-test]
if: ${{ github.event_name == 'pull_request' }}
steps:
- name: Auto Approve PR
uses: actions/github-script@v7
with:
script: |
github.rest.pulls.createReview({
owner: context.repo.owner,
repo: context.repo.repo,
pull_number: context.issue.number,
event: "APPROVE"
})