2323cd " $( dirname " $0 " ) "
2424
2525case " $1 " in
26- " helm" )
26+ " helm" )
2727 echo " Installing Operators with Helm"
2828 # tag::helm-install-operators[]
2929 helm install --wait commons-operator oci://{{ helm.repo_url }}/{{ helm.repo_name }}/commons-operator --version {{ versions.commons }}
3030 helm install --wait secret-operator oci://{{ helm.repo_url }}/{{ helm.repo_name }}/secret-operator --version {{ versions.secret }}
3131 helm install --wait listener-operator oci://{{ helm.repo_url }}/{{ helm.repo_name }}/listener-operator --version {{ versions.listener }}
3232 helm install --wait nifi-operator oci://{{ helm.repo_url }}/{{ helm.repo_name }}/nifi-operator --version {{ versions.nifi }}
3333 # end::helm-install-operators[]
34- ;;
35- " stackablectl" )
34+ ;;
35+ " stackablectl" )
3636 echo " installing Operators with stackablectl"
3737 # tag::stackablectl-install-operators[]
3838 stackablectl operator install \
@@ -41,11 +41,11 @@ case "$1" in
4141 listener={{ versions.listener }} \
4242 nifi={{ versions.nifi }}
4343 # end::stackablectl-install-operators[]
44- ;;
45- * )
44+ ;;
45+ * )
4646 echo " Need to provide 'helm' or 'stackablectl' as an argument for which installation method to use!"
4747 exit 1
48- ;;
48+ ;;
4949esac
5050
5151echo " Create NiFi admin credentials"
@@ -103,26 +103,25 @@ kubectl wait --for=condition=available --timeout=20m nificluster/simple-nifi
103103# end::wait-nifi-rollout[]
104104
105105case " $1 " in
106- " helm" )
106+ " helm" )
107107 echo " Getting the NiFi URL with kubectl"
108108
109109 # tag::get-nifi-url[]
110110 nifi_url=$( kubectl get listener simple-nifi-node -o ' jsonpath=https://{.status.ingressAddresses[0].address}:{.status.ingressAddresses[0].ports.https}' ) && \
111111 echo " NiFi URL: $nifi_url "
112112 # end::get-nifi-url[]
113-
114- ;;
115- " stackablectl" )
113+ ;;
114+ " stackablectl" )
116115 echo " Getting NiFi URL with stackablectl ..."
117116 # tag::stackablectl-nifi-url[]
118117 nifi_url=$( stackablectl stacklet ls -o json | jq --raw-output ' .[] | select(.name == "simple-nifi") | .endpoints["node-https"]' )
119118 # end::stackablectl-nifi-url[]
120119 echo " NiFi URL: $nifi_url "
121- ;;
122- * )
120+ ;;
121+ * )
123122 echo " Need to provide 'helm' or 'stackablectl' as an argument for which installation method to use!"
124123 exit 1
125- ;;
124+ ;;
126125esac
127126
128127echo " Starting nifi tests"
0 commit comments