Skip to content

Commit e193db0

Browse files
authored
Merge pull request #34 from small-hack/fix-env-file-again
fix string templating error with env file
2 parents a1e0a96 + 88e2951 commit e193db0

File tree

4 files changed

+14
-10
lines changed

4 files changed

+14
-10
lines changed

charts/pixelfed/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ type: application
1515
# This is the chart version. This version number should be incremented each time you make changes
1616
# to the chart and its templates, including the app version.
1717
# Versions are expected to follow Semantic Versioning (https://semver.org/)
18-
version: 0.14.2
18+
version: 0.14.3
1919

2020
# This is the version number of the application being deployed.
2121
# renovate:image=ghcr.io/mattlqx/docker-pixelfed

charts/pixelfed/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# pixelfed
22

3-
![Version: 0.14.2](https://img.shields.io/badge/Version-0.14.2-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v0.12.4-nginx](https://img.shields.io/badge/AppVersion-v0.12.4--nginx-informational?style=flat-square)
3+
![Version: 0.14.3](https://img.shields.io/badge/Version-0.14.3-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v0.12.4-nginx](https://img.shields.io/badge/AppVersion-v0.12.4--nginx-informational?style=flat-square)
44

55
A Helm chart for deploying Pixelfed on Kubernetes
66

@@ -109,7 +109,7 @@ A Helm chart for deploying Pixelfed on Kubernetes
109109
| pixelfed.image_quality | int | `80` | Set the image optimization quality, between 1-100. Lower uses less space, higher more quality |
110110
| pixelfed.instance.contact_email | string | `""` | The public contact email for your server |
111111
| pixelfed.instance.contact_form | bool | `false` | enable the instance contact form |
112-
| pixelfed.instance.contact_max_per_day | string | `""` | instance contact max per day |
112+
| pixelfed.instance.contact_max_per_day | int | `1` | instance contact max per day |
113113
| pixelfed.instance.cur_reg | bool | `false` | Enable Curated Registration |
114114
| pixelfed.instance.description | string | `"Pixelfed - Photo sharing for everyone"` | your server description |
115115
| pixelfed.instance.discover_public | bool | `false` | Enable public access to the Discover feature |

charts/pixelfed/templates/configmap_env.yaml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ data:
1414
APP_DOMAIN: {{ . }}
1515
{{- end }}
1616

17-
EXP_LOOPS: {{ .Values.pixelfed.exp_loops }}
17+
{{- with .Values.pixelfed.exp_loops }}
18+
EXP_LOOPS: {{ . }}
19+
{{- end }}
1820

1921
# registration related
2022
OPEN_REGISTRATION: {{ .Values.pixelfed.open_registration | quote }}
@@ -26,7 +28,7 @@ data:
2628
# not sure where to put this
2729
CUSTOM_EMOJI: {{ .Values.pixelfed.custom_emoji | quote }}
2830
CUSTOM_EMOJI_MAX_SIZE: {{ .Values.pixelfed.custom_emoji | quote }}
29-
MEDIA_TYPES: {{ .Values.pixelfed.media_types }}
31+
MEDIA_TYPES: {{ .Values.pixelfed.media_types | quote }}
3032

3133
# limits
3234
MIN_PASSWORD_LENGTH: {{ .Values.pixelfed.min_password_length | quote }}
@@ -96,9 +98,9 @@ data:
9698
MEDIA_DELETE_LOCAL_AFTER_CLOUD: {{ .Values.pixelfed.media_delete_local_after_cloud | quote }}
9799

98100
# covid
99-
ENABLE_COVID_LABEL: {{ .Values.pixelfed.covid.enable_label }}
100-
COVID_LABEL_URL: {{ .Values.pixelfed.covid.label_url }}
101-
COVID_LABEL_ORG: {{ .Values.pixelfed.covid.label_org }}
101+
ENABLE_COVID_LABEL: {{ .Values.pixelfed.covid.enable_label | quote }}
102+
COVID_LABEL_URL: {{ .Values.pixelfed.covid.label_url | quote }}
103+
COVID_LABEL_ORG: {{ .Values.pixelfed.covid.label_org | quote }}
102104

103105
{{- with .Values.pixelfed.banned_usernames }}
104106
BANNED_USERNAMES: {{ . }}
@@ -110,7 +112,9 @@ data:
110112
AP_SHAREDINBOX: {{ .Values.pixelfed.activity_pub.sharedinbox | quote }}
111113
AP_INBOX: {{ .Values.pixelfed.activity_pub.inbox | quote }}
112114
AP_OUTBOX: {{ .Values.pixelfed.activity_pub.outbox | quote }}
113-
AP_LOGGER_ENABLED: {{ .Values.pixelfed.activity_pub.logger_enabled | quote }}
115+
{{- with .Values.pixelfed.activity_pub.logger_enabled }}
116+
AP_LOGGER_ENABLED: {{ . | quote }}
117+
{{- end }}
114118

115119
# mail
116120
MAIL_DRIVER: "{{ .Values.pixelfed.mail.driver }}"

charts/pixelfed/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,7 @@ pixelfed:
440440
# -- The public contact email for your server
441441
contact_email: ""
442442
# -- instance contact max per day
443-
contact_max_per_day: ""
443+
contact_max_per_day: 1
444444
# -- Enable the profile embed feature
445445
profile_embeds: true
446446
# -- Enable the post embed feature

0 commit comments

Comments
 (0)