forked from cetic/helm-nifi
-
Notifications
You must be signed in to change notification settings - Fork 2
35 lines (32 loc) · 1.09 KB
/
test-startup-probe.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: Test-StartupProbe
on:
push:
pull_request:
jobs:
test-startup-probee:
name: Test NiFi Helm Chart Startup Probe
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Minikube
uses: manusa/[email protected]
with:
minikube version: 'v1.28.0'
kubernetes version: 'v1.25.4'
github token: ${{ secrets.GITHUB_TOKEN }}
- name: Checkout code
uses: actions/checkout@v3
- name: Install dependencies
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
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
kubectl logs pod/nifi-0 -c app-log | grep 'JettyServer NiFi has started'