Skip to content
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

using save "" in customConfig breaks redis-operator #262

Closed
nextsux opened this issue May 8, 2020 · 4 comments · Fixed by #479
Closed

using save "" in customConfig breaks redis-operator #262

nextsux opened this issue May 8, 2020 · 4 comments · Fixed by #479
Labels

Comments

@nextsux
Copy link

nextsux commented May 8, 2020

Expected behaviour

I was trying to disable persistence on redis using customConfig:

spec:
  redis:
    customConfig:
    - save ""

Actual behaviour

Redis operator fails to configure redis using config set with errors like:

[redis-operator-redisoperator-75785dc7c7-cmtgq] time="2020-05-08T11:08:16Z" level=warning msg="error processing kuki-redis/sentinel job (requeued): ERR Invalid argument '\"\"' for CONFIG SET 'save'" controller=redisfailover operator=redis-operator src="generic.go:224" 

Redis operator fails to correctly escape/unescape quote characters which are important for save command when you need to signalize empty string

I think it may be the reason of #95

@danielllek
Copy link

I've hit the same problem.

@alecjacobs5401
Copy link
Contributor

There is a workaround that you can put in place (that Isn't pretty) by overriding the container command in the redis definition:

command: ["redis-server", "/redis/redis.conf", "--save", ""]

Agreed, though, that this should be configurable in the custom config

@github-actions
Copy link

This issue is stale because it has been open for 45 days with no activity.

@github-actions github-actions bot added the stale label Jan 14, 2022
@github-actions
Copy link

This issue was closed because it has been inactive for 14 days since being marked as stale.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants