Skip to content

Commit 7e4ebe2

Browse files
committed
Merge branch 'main' into ldap-password-secret
2 parents 213c991 + 9ec49da commit 7e4ebe2

13 files changed

+94
-11
lines changed

.github/workflows/test-chart.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,21 +75,21 @@ jobs:
7575
# available for use in the templates, currently we need v3.6.0 or
7676
# higher.
7777
#
78-
- k3s-channel: v1.28
79-
helm-version: v3.8.0
78+
- k3s-channel: v1.33
79+
helm-version: v3.19.0
8080

8181
env:
8282
HELM_EXPERIMENTAL_OCI: "1"
8383

8484
steps:
85-
- uses: actions/checkout@v3
85+
- uses: actions/checkout@v5
8686

8787
# This action starts a k8s cluster with NetworkPolicy enforcement and
8888
# installs both kubectl and helm.
8989
#
9090
# ref: https://github.com/jupyterhub/action-k3s-helm#readme
9191
#
92-
- uses: jupyterhub/action-k3s-helm@v3
92+
- uses: jupyterhub/action-k3s-helm@v4
9393
with:
9494
k3s-channel: ${{ matrix.k3s-channel }}
9595
helm-version: ${{ matrix.helm-version }}

CHANGELOG.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,23 @@ externalAuth:
99
key: password
1010
```
1111
12+
# 6.5.7
13+
14+
- Updated all dependent chart images to bitnami legacy repositories.
15+
- Updated chart test jobs.
16+
- Added additional configuration options:
17+
```yaml
18+
mastodon:
19+
s3:
20+
protocol: https
21+
...
22+
elasticsearch:
23+
caSecret:
24+
indexPrefix:
25+
...
26+
jobLabels:
27+
```
28+
1229
# 6.5.6
1330
1431
- Update the mastodon version to v4.4.7

Chart.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ dependencies:
77
version: 14.2.3
88
- name: redis
99
repository: oci://registry-1.docker.io/bitnamicharts
10-
version: 18.16.1
11-
digest: sha256:684daaf2067d96e2aa6d93e9d29b7b13fc586f6ae929342e5e9c7c169b1c0748
12-
generated: "2024-02-23T15:14:47.536480528-08:00"
10+
version: 22.0.7
11+
digest: sha256:003679b2c163c0b349b0d621475cdb85c0556f803f2f959a50cef350d3ce956e
12+
generated: "2025-10-08T05:16:23.08106463Z"

Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,6 @@ dependencies:
3232
repository: oci://registry-1.docker.io/bitnamicharts
3333
condition: postgresql.enabled
3434
- name: redis
35-
version: 18.16.1
35+
version: 22.0.7
3636
repository: oci://registry-1.docker.io/bitnamicharts
3737
condition: redis.enabled

templates/_db-migrate.tpl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ spec:
3333
template:
3434
metadata:
3535
name: {{ include "mastodon.fullname" . }}-db-migrate
36+
{{- with .Values.jobLabels }}
37+
labels:
38+
{{- toYaml . | nindent 8 }}
39+
{{- end }}
3640
{{- with .Values.jobAnnotations }}
3741
annotations:
3842
{{- toYaml . | nindent 8 }}

templates/configmap-env.yaml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,16 @@ data:
3838
ES_PRESET: {{ .Values.elasticsearch.preset | default "single_node_cluster" | quote }}
3939
ES_HOST: {{ include "mastodon.elasticsearch.fullHostname" .}}
4040
ES_PORT: {{ .Values.elasticsearch.port | default "9200" | quote }}
41+
{{- if .Values.elasticsearch.caSecret }}
42+
ES_CA_FILE: /opt/opensearch/config/ca.certs
43+
{{- end }}
4144
{{- end }}
4245
{{- with .Values.elasticsearch.user }}
4346
ES_USER: {{ . }}
4447
{{- end }}
48+
{{- if .Values.elasticsearch.indexPrefix }}
49+
ES_PREFIX: {{ .Values.elasticsearch.indexPrefix | quote }}
50+
{{- end }}
4551
LOCAL_DOMAIN: {{ .Values.mastodon.local_domain }}
4652
{{- with .Values.mastodon.web_domain }}
4753
WEB_DOMAIN: {{ . }}
@@ -93,7 +99,7 @@ data:
9399
S3_ENABLED: "true"
94100
S3_ENDPOINT: {{ .Values.mastodon.s3.endpoint }}
95101
S3_HOSTNAME: {{ .Values.mastodon.s3.hostname }}
96-
S3_PROTOCOL: "https"
102+
S3_PROTOCOL: {{ .Values.mastodon.s3.protocol }}
97103
{{- if .Values.mastodon.s3.permission }}
98104
S3_PERMISSION: {{ .Values.mastodon.s3.permission }}
99105
{{- end }}
@@ -195,7 +201,7 @@ data:
195201
OIDC_DISCOVERY: {{ .Values.externalAuth.oidc.discovery | quote }}
196202
OIDC_SCOPE: {{ .Values.externalAuth.oidc.scope | quote }}
197203
OIDC_UID_FIELD: {{ .Values.externalAuth.oidc.uid_field }}
198-
OIDC_CLIENT_ID: {{ .Values.externalAuth.oidc.client_id }}
204+
OIDC_CLIENT_ID: {{ .Values.externalAuth.oidc.client_id | quote }}
199205
OIDC_CLIENT_SECRET: {{ .Values.externalAuth.oidc.client_secret }}
200206
OIDC_REDIRECT_URI: {{ .Values.externalAuth.oidc.redirect_uri }}
201207
OIDC_SECURITY_ASSUME_EMAIL_IS_VERIFIED: {{ .Values.externalAuth.oidc.assume_email_is_verified | quote }}

templates/cronjob-media-remove.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ spec:
1212
template:
1313
metadata:
1414
name: {{ include "mastodon.fullname" . }}-media-remove
15+
{{- with .Values.jobLabels }}
16+
labels:
17+
{{- toYaml . | nindent 12 }}
18+
{{- end }}
1519
{{- with .Values.jobAnnotations }}
1620
annotations:
1721
{{- toYaml . | nindent 12 }}

templates/deployment-sidekiq.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,11 @@ spec:
8888
persistentVolumeClaim:
8989
claimName: {{ template "mastodon.pvc.system" $context }}
9090
{{- end }}
91+
{{- if $context.Values.elasticsearch.caSecret.name }}
92+
- name: elasticsearch-ca
93+
secret:
94+
secretName: {{ $context.Values.elasticsearch.caSecret.name }}
95+
{{- end }}
9196
{{- include "mastodon.statsdExporterVolume" $ | indent 8 }}
9297
{{- if dig "customDatabaseConfigYml" "configMapRef" "name" false . }}
9398
- name: config-database-yml
@@ -256,6 +261,12 @@ spec:
256261
- name: system
257262
mountPath: /opt/mastodon/public/system
258263
{{- end }}
264+
{{- if $context.Values.elasticsearch.caSecret.name }}
265+
- name: elasticsearch-ca
266+
mountPath: /opt/opensearch/config/ca.certs
267+
subPath: {{ $context.Values.elasticsearch.caSecret.key }}
268+
readOnly: true
269+
{{- end }}
259270
{{- if dig "customDatabaseConfigYml" "configMapRef" "name" false . }}
260271
- name: config-database-yml
261272
mountPath: /opt/mastodon/config/database.yml

templates/deployment-web.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,11 @@ spec:
6969
persistentVolumeClaim:
7070
claimName: {{ template "mastodon.pvc.system" . }}
7171
{{- end }}
72+
{{- if .Values.elasticsearch.caSecret.name }}
73+
- name: elasticsearch-ca
74+
secret:
75+
secretName: {{ .Values.elasticsearch.caSecret.name}}
76+
{{- end }}
7277
{{- include "mastodon.statsdExporterVolume" $ | indent 8 }}
7378
{{- if .Values.mastodon.web.customDatabaseConfigYml.configMapRef.name }}
7479
- name: config-database-yml
@@ -227,6 +232,12 @@ spec:
227232
- name: system
228233
mountPath: /opt/mastodon/public/system
229234
{{- end }}
235+
{{- if .Values.elasticsearch.caSecret.name }}
236+
- name: elasticsearch-ca
237+
mountPath: /opt/opensearch/config/ca.certs
238+
subPath: {{ .Values.elasticsearch.caSecret.key }}
239+
readOnly: true
240+
{{- end }}
230241
{{- if .Values.mastodon.web.customDatabaseConfigYml.configMapRef.name }}
231242
- name: config-database-yml
232243
mountPath: /opt/mastodon/config/database.yml

templates/job-assets-copy.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ spec:
1313
template:
1414
metadata:
1515
name: {{ include "mastodon.fullname" . }}-assets-upload
16+
{{- with .Values.jobLabels }}
17+
labels:
18+
{{- toYaml . | nindent 8 }}
19+
{{- end }}
1620
{{- with .Values.jobAnnotations }}
1721
annotations:
1822
{{- toYaml . | nindent 8 }}

0 commit comments

Comments
 (0)