OT-CONTAINER-KIT / redis-operator

A golang based redis operator that will make/oversee Redis standalone/cluster/replication/sentinel mode setup on top of the Kubernetes.
https://ot-redis-operator.netlify.app/
Apache License 2.0
731 stars 206 forks source link

fix: add default port to enable `SENTINEL_PORT` environment #999

Closed drivebyer closed 1 week ago

drivebyer commented 1 week ago

Description

Fixes #995

When a user uses an old Redis image that does not have SENTINEL_PORT set as the default environment variable, we must configure SENTINEL_PORT to 26379 in the operator. Otherwise, the Sentinel probe will fail.

Type of change

Checklist

Additional Context

codecov[bot] commented 1 week ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 45.85%. Comparing base (d121d86) to head (6c8efc0). Report is 78 commits behind head on master.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #999 +/- ## =========================================== + Coverage 35.20% 45.85% +10.64% =========================================== Files 19 20 +1 Lines 3213 2687 -526 =========================================== + Hits 1131 1232 +101 + Misses 2015 1380 -635 - Partials 67 75 +8 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.