You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The operator should delete NetworkPolicy objects it created and no longer intends to manage, so that upgrades of the operator and new Redis deployments work identically. RedisFailover should become unhealthy and make it obvious that the upgraded operator version is incompatible with the application.
Optionally the operator should have test coverage for the scenario of being deployed in a namespace with a deny-all NetworkPolicy.
Patch (or minor) releases should not break applications. Backwards incompatible changes should be released in new major versions to indicate additional caution to the user performing an upgrade.
Actual behaviour
When upgrading the operator for an existing RedisFailover
If the RedisFailover was previously created by the operator at version < 2.0.0, Redis will continue to work until the abandoned NetworkPolicy resources are manually deleted.
When deploying a new RedisFailover with the existing operator
Redis and Sentinel pods are unable to connect to each other and are never marked healthy.
benlangfeld
changed the title
2.0.2 is not functional in an application with a deny-all NetworkPolicy
2.0.1 is not functional in an application with a deny-all NetworkPolicy
Feb 14, 2024
Fixes: #48
This PR aims to address an issue introduced in release 2.0.1, where the
logic for generating network policy resources by the operator was
changed. From version 2.0.1 onwards, the operator no longer generates
network policies for Redis but failed to remove existing policies
generated prior to this version. This PR introduces a check and removal
process for that leftover network policiy.
---------
Co-authored-by: Ben Langfeld <[email protected]>
Co-authored-by: Aaron Kuehler <[email protected]>
Expected behaviour
Actual behaviour
When upgrading the operator for an existing RedisFailover
If the RedisFailover was previously created by the operator at version < 2.0.0, Redis will continue to work until the abandoned NetworkPolicy resources are manually deleted.
When deploying a new RedisFailover with the existing operator
Redis and Sentinel pods are unable to connect to each other and are never marked healthy.
Steps to reproduce the behaviour
The text was updated successfully, but these errors were encountered: