Skip to content

Add support for redis user enviroment variable - #892

Open
jholmes802 wants to merge 2 commits into
nextcloud:mainfrom
jholmes802:redis-user
Open

jholmes802 wants to merge 2 commits into
nextcloud:mainfrom
jholmes802:redis-user

Conversation

@jholmes802

Copy link
Copy Markdown

Description of the change

This change adds a native value spec for the username a redis account may need.
Currently the only way to do this is with an "extraEnv" section, but it doesn't update the REDIS_URL environment variable.

This change focuses on adding an example to the values.yaml doc, and the helpers which generates the environment variables.

Benefits

Adds native support for a redis user other than the default.

Possible drawbacks

Can't think of any at the time.

Applicable issues

Additional information

Checklist

@@ -212,14 +212,18 @@ Redis env vars
value: {{ .Values.externalRedis.password | quote }}
{{- end }}
{{- end }}{{/* end-of redis-enabled*/}}

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wrong position of end

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@wrenix I am not seeing an issues with the end. Are you suggesting this should be in the redis.auth.enabled section with the rest of those settings?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes

Comment thread charts/nextcloud/README.md Outdated
| `nextcloud.mail.smtp.port` | Optional SMTP port | `nil` |
| `nextcloud.mail.smtp.authtype` | SMTP authentication method | `LOGIN` |
| `nextcloud.mail.smtp.name` | SMTP username, ONLY the part before the domain name. i.e. 'postmaster' NOT 'postmaster@example.com' | `''` |
| `nextcloud.mail.smtp.name` | SMTP username, ONLY the part before the domain name. i.e. 'postmaster' NOT '<postmaster@example.com>' | `''` |

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why change this?

@jholmes802 jholmes802 Oct 22, 2026 •

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My bad, I was moving quickly and didn't notice it get caught in my auto formater. Sorry about that. Undoing as I speak

Comment thread charts/nextcloud/README.md
Comment thread charts/nextcloud/values.yaml Outdated
auth:
enabled: true
# Username for redis authentication
# user: "default"

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please do not comment value-fields out ... make them nil instatt.

Suggested change
# user: "default"
user:

value: {{ .Values.externalRedis.password | quote }}
{{- end }}
{{- end }}{{/* end-of redis-enabled*/}}
{{- if .Values.redis.auth.user }}

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
{{- if .Values.redis.auth.user }}
{{- with .Values.redis.auth.user }}
....
value: {{ quote . }}

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

No native support for REDIS_USER enviroment var

2 participants