Skip to content

Commit

Permalink
Fix faulty Cruise control healthcheck (#10884)
Browse files Browse the repository at this point in the history
Signed-off-by: ShubhamRwt <shubhamrwt02@gmail.com>
  • Loading branch information
ShubhamRwt authored Nov 28, 2024
1 parent 46d9124 commit ebde1fe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ public class CruiseControl extends AbstractModel implements SupportsMetrics, Sup

protected static final String ENV_VAR_API_SSL_ENABLED = "STRIMZI_CC_API_SSL_ENABLED";
protected static final String ENV_VAR_API_AUTH_ENABLED = "STRIMZI_CC_API_AUTH_ENABLED";
protected static final String ENV_VAR_API_HEALTHCHECK_USERNAME = "API_HEALTHCHECK";
protected static final String ENV_VAR_API_HEALTHCHECK_USERNAME = "API_HEALTHCHECK_USERNAME";
protected static final String ENV_VAR_API_PORT = "API_PORT";
protected static final String ENV_VAR_API_HEALTHCHECK_PATH = "API_HEALTHCHECK_PATH";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ if [ "$STRIMZI_CC_API_AUTH_ENABLED" = true ] ; then
ARGS+=(--user "${API_HEALTHCHECK_USERNAME}:$(cat /opt/cruise-control/api-auth-config/healthcheck.password)")
fi

curl "${ARGS[@]}" "${SCHEME}://localhost:${API_PORT}${API_HEALTHCHECK_PATH}"
curl -f "${ARGS[@]}" "${SCHEME}://localhost:${API_PORT}${API_HEALTHCHECK_PATH}"

0 comments on commit ebde1fe

Please # to comment.