diff --git a/CHANGELOG.md b/CHANGELOG.md index 93fbee3bab..d834314c7f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ ### Changed - [PR #340](https://github.com/konpyutaika/nifikop/pull/340) - **[Operator/NifiDataflow]** Updated the logic to stop the entire dataflow instead of just the processors when the parameter context reference is updated. +- [PR #342](https://github.com/konpyutaika/nifikop/pull/342) - **[Operator/NifiCluster]** Updated the logic to retrieve theIP address from hostname with `curl` instead of `wget`. ### Fixed Bugs diff --git a/pkg/resources/nifi/pod.go b/pkg/resources/nifi/pod.go index 185e067f97..972cfe46a6 100644 --- a/pkg/resources/nifi/pod.go +++ b/pkg/resources/nifi/pod.go @@ -508,7 +508,7 @@ do echo "Found: $ipResolved, expecting: $POD_IP" sleep 5 - ipResolved=$(wget --tries=1 -T 1 -O /dev/null %s 2>&1 | sed -n 3p| awk '{split($0,a,"|"); print a[2] }') + ipResolved=$(curl -v -4 -m 1 --connect-timeout 1 %s 2>&1 | grep -o 'Trying [0-9.]*' | awk '{print $2}' | head -n 1) echo "Found : $ipResolved" if [[ "$ipResolved" == "$POD_IP" ]]; then echo Ip match for $POD_IP