Skip to content

Commit

Permalink
Replace WGET logic with CURL logic (konpyutaika#342)
Browse files Browse the repository at this point in the history
* Replace WGET logic with CURL logic

* Update CHANGELOG
  • Loading branch information
juldrixx authored Jan 2, 2024
1 parent 33cf42a commit 84af5bf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion pkg/resources/nifi/pod.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 84af5bf

Please sign in to comment.