Nifi 2.0.0 Support #156
This file contains hidden or 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: Test-StartupProbe | |
| on: | |
| push: | |
| pull_request: | |
| jobs: | |
| test-startup-probe: | |
| name: Test NiFi Helm Chart Startup Probe | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v3 | |
| - name: Setup Minikube | |
| uses: manusa/actions-setup-minikube@v2.15.0 | |
| with: | |
| minikube version: 'v1.38.0' | |
| kubernetes version: 'v1.28.1' | |
| github token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Checkout code | |
| uses: actions/checkout@v3 | |
| - name: Install dependencies | |
| working-directory: charts/nifi | |
| run: | | |
| sudo apt-get install -y jq | |
| helm repo add bitnami https://charts.bitnami.com/bitnami | |
| helm repo add dysnix https://dysnix.github.io/charts/ | |
| helm repo update | |
| helm dep up | |
| - name: Install Nifi | |
| working-directory: charts/nifi | |
| run: helm install nifi . --set sts.startupProbe.enabled=true | |
| - name: Confirm rollout waits until JettyServer starts | |
| run: | | |
| kubectl rollout status --watch statefulset/nifi --timeout=10m | |
| for n in [ 0 1 2 3 4 5 6 7 8 9 ] | |
| do | |
| if kubectl logs pod/nifi-0 -c app-log | grep -E "JettyServer(\b Nifi\b)? Started Server" | |
| then | |
| exit 0 | |
| fi | |
| sleep 30 | |
| done | |
| kubectl logs pod/nifi-0 -c app-log |