-
Notifications
You must be signed in to change notification settings - Fork 368
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
how redis container readiness scripts coordinate with redis auth #218
Comments
there's no auth logic in keep alive script /redis-readiness/ready.sh `ROLE="role" check_master(){ check_slave(){
} role=$(redis-cli info replication | grep $ROLE | tr -d "\r" | tr -d "\n") case $role in |
it's hard-coded in operator/redisfailover/service/generator.go `func generateRedisReadinessConfigMap(rf *redisfailoverv1.RedisFailover, labels map[string]string, ownerRefs []metav1.OwnerReference) *corev1.ConfigMap {
ROLE_MASTER="role:master" check_master(){ |
the change below may fix this problem. operator/redisfailover/service/generator.go func generateRedisReadinessConfigMap(rf *redisfailoverv1.RedisFailover, labels map[string]string, ownerRefs []metav1.OwnerReference, password string) *corev1.ConfigMap {
ROLE_MASTER="role:master" check_master(){ check_slave(){
} role=$(redis-cli -a case $role in
ROLE_MASTER="role:master" check_master(){ check_slave(){
} role=$(redis-cli info replication | grep $ROLE | tr -d "\r" | tr -d "\n") case $role in operator/redisfailover/service/client.go // EnsureRedisReadinessConfigMap makes sure the redis configmap with shutdown script exists
} |
@hoffoo hoffoo sir, could you please have a look at this problem? |
i am just waiting for this pr pulled by @teamon, thanks a lot. i don't find any workaround yet. |
Okay, thank you for your quick response :) |
You can use |
For both redis and sentinel, right? |
For the operator itself |
Expected behaviour
What do you want to achieve?
Actual behaviour
What is happening? Are all the pieces created? Can you access to the service?
exception!!!
when set password for redis, the redis container readiness script aborted with 'unexpected' status!!!
Steps to reproduce the behaviour
Describe step by step what you've have done to get to this point
Environment
How are the pieces configured?
Logs
Please, add the debugging logs. In order to be able to gather them, add
-debug
flag when running the operator.The text was updated successfully, but these errors were encountered: