Skip to content

Commit

Permalink
mediawiki 0.10.6 (#99)
Browse files Browse the repository at this point in the history
* bump mediawiki chart to 0.10.6

* Add new mw tag placeholder

* switch image tag to 1.37-7.4-20220621-fp-beta-0

* Update Readme

* Fix templating

* Update charts/mediawiki/templates/_helpers.tpl

Co-authored-by: Tobias <tobias.andersson@wikimedia.de>

Co-authored-by: Tobias <tobias.andersson@wikimedia.de>
  • Loading branch information
deer-wmde and toban committed Jun 21, 2022
1 parent e1a5b9c commit 4e95abc
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/mediawiki/Chart.yaml
Expand Up @@ -2,7 +2,7 @@ apiVersion: v1
appVersion: "1.37"
description: A Helm wbstack flavoured MediaWiki
name: mediawiki
version: 0.10.5
version: 0.10.6
home: https://github.com/wbstack
maintainers:
- name: WBstack
Expand Down
10 changes: 10 additions & 0 deletions charts/mediawiki/README.md
@@ -1,7 +1,17 @@
# wbstack mediawiki

## Settings
### mw.settings.allowedProxyCidr
Sets `$wgCdnServersNoPurge` in mediawiki.

In order to see which IP ranges is used for a GKE cluster you can run the following command:
```
kubectl get ds kube-proxy -n kube-system -o=jsonpath="{.spec.template.spec.containers[0].command}" | grep -Po '\-\-cluster\-cidr=[^ ]*' | cut -d'=' -f2 | tr -d '"]'
```

## Changelog

- 0.10.6: Added `mw.settings.allowedProxyCidr` to set $wgCdnServersNoPurge
- 0.10.5: New MW release with updated CirrusSearch sharding config, we missed one index.
- 0.10.4: New MW release with CirrusSearch sharding config
- 0.10.3: Bump version number to trigger new chart release
Expand Down
5 changes: 5 additions & 0 deletions charts/mediawiki/templates/_helpers.tpl
Expand Up @@ -157,6 +157,11 @@ Common deployment environment variables

{{- end -}}

{{- if .Values.mw.settings.allowedProxyCidr }}
- name: MW_ALLOWED_PROXY_CIDR
value: {{ .Values.mw.settings.allowedProxyCidr | quote }}
{{- end -}}

{{- end -}}

{{/*
Expand Down
3 changes: 2 additions & 1 deletion charts/mediawiki/values.yaml
Expand Up @@ -6,12 +6,13 @@ replicaCount:

image:
repository: ghcr.io/wbstack/mediawiki
tag: "1.37-7.4-20220513-fp-beta-0"
tag: "1.37-7.4-20220621-fp-beta-0"
pullPolicy: IfNotPresent

mw:
settings:
logToStdErr: false
allowedProxyCidr: ""
db:
master: someHostName
replica: someHostName
Expand Down

0 comments on commit 4e95abc

Please sign in to comment.