-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(operator): ipv6 support #269
base: main
Are you sure you want to change the base?
Conversation
716ca9a
to
51e573d
Compare
3840eee
to
26578e3
Compare
b6fb405
to
1e6d949
Compare
1e6d949
to
2afc70f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for all the work!
The masterIP label is used to match if the dragonfly replica state matches with what was configured by the Operator. There should not be any issue in moving this to an annotation (and it makes sense).
The compatibility story is important for sure, My preference would be to do them both for now i.e set as label (if ipv4 only) and annotation (for both ipv4 and ipv6) for a version and remove the label part permanently in future versions. Wdyt?
Also, You should be setting/and using the masterIP here at
if masterIp != redisMasterIp && masterIp != pod.Labels[resources.MasterIp] { |
This is OK for me, I will do this :-) |
6ece1a0
to
cf485c9
Compare
I'm ready for another review @Pothulapati 😃 |
e9dce48
to
e0a761f
Compare
e0a761f
to
ab33a68
Compare
ab33a68
to
7516283
Compare
I add another commit to bind by default on dualstack, this should not hurt. |
a101fd0
to
c572750
Compare
both operator and dragonfly, should not hurt.
c572750
to
cf69781
Compare
@Pothulapati should I be worried about the CI state ? Can you please re-run it for me or have idea about what happen ? Or all is good ? 😄 For info this PR is running or my ipv6 only production since few days without issues 👍🏻 |
Hi,
First thanks, I was tired of redis-sentinel tilt issue. 😸
This goal of this PR is to fix IPV6 support, I did it on an ipv6 only cluster. I battle all the evening, but it's now working.
This is a breaking change for now, as I have to switch from label for the masterIP to annotations as we can't store
[]:
, so an ipv6 in label. Ipv6 or not, store the ip as annotation looks the good way to do.I'm not sure about the "migration" process:
Here a sample I use:
I would be happy to see this merge. Is it ok for you ?