Skip to content

Conversation

@huang-jy
Copy link
Contributor

This PR addresses two issues found during testing.

  1. When installing the chart on minikube, the PostgreSQL chart complained about permissions. This has been addressed in Portainer: mkdir: cannot create directory ‘/bitnami/postgresql/data’: Permission denied bitnami/containers#2680 (comment) and the PR includes this in the values (but commented out so as not to break anything). OP on this linked issue used Microk8s, and I was using Minikube. Locally testing this addition worked.

  2. Running the chart with the OOTB values breaks when starting up the main pod due to a missing config key (username). Instead of it breaking during pod startup, I changed the template to fail the install outright if the values are not defined. An alternate solution would be to change the deployment.yaml to include MAIL_USERNAME and MAIL_PASSWORD optionally rather than always.

- name: MAIL_USERNAME
valueFrom:
secretKeyRef:
{{- if .Values.pixelfed.mail.existingSecret }}
name: {{ .Values.pixelfed.mail.existingSecret }}
key: {{ .Values.pixelfed.mail.existingSecretKeys.username }}
{{- else }}
name: {{ include "pixelfed.fullname" . }}-mail
key: username
{{- end }}
- name: MAIL_PASSWORD
valueFrom:
secretKeyRef:
{{- if .Values.pixelfed.mail.existingSecret }}
name: {{ .Values.pixelfed.mail.existingSecret }}
key: {{ .Values.pixelfed.mail.existingSecretKeys.password }}
{{- else }}
name: {{ include "pixelfed.fullname" . }}-mail
key: password
{{- end }}

@huang-jy
Copy link
Contributor Author

Looks like VSCode was being too smart for its own good 😅

Copy link
Collaborator

@jessebot jessebot left a comment

Choose a reason for hiding this comment

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

Please bump the helm chart version in Chart.yaml, and run helm-docs from the chart directory and we should be good to go :) Thank you!

@jessebot jessebot self-requested a review January 23, 2025 07:37
@jessebot
Copy link
Collaborator

thanks for your contribution! :)

@jessebot jessebot merged commit dec4c4c into small-hack:main Jan 23, 2025
3 of 4 checks passed
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.

2 participants