Skip to content

Commit 5f07f84

Browse files
camuffoMarcel Wallschlaeger
authored and
Marcel Wallschlaeger
committed
[Fixes #233] Feature Make MemCached Backend Configurable
1 parent 49c70a5 commit 5f07f84

File tree

3 files changed

+11
-9
lines changed

3 files changed

+11
-9
lines changed

charts/geonode/README.md

+6-4
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ Helm Chart for Geonode. Supported versions: Geonode: 4.4.0, Geoserver: 2.24.4-v1
9898
| geonode.mail.port | string | `"587"` | mail port fo geonode mail |
9999
| geonode.mail.tls | bool | `true` | activate tls for geonode mail (only tls or ssl can be true not both) |
100100
| geonode.mail.use_ssl | bool | `false` | enable ssl for geonode mail (only tls or ssl can be true not both) |
101+
| geonode.memcached.backend | string | `"django.core.cache.backends.memcached.PyLibMCCache"` | memcached backend to use if geonode ">=4.3.0" use django.core.cache.backends.memcached.PyLibMCCache before use django.core.cache.backends.memcached.MemcachedCache |
101102
| geonode.memcached.enabled | bool | `true` | enable memcache, this will spawn one or more seperate memcache container(s) and configure django geonode repsectivly. Dynamic caching (see https://docs.djangoproject.com/en/4.0/topics/cache/) |
102103
| geonode.memcached.lock_expire | string | `"3600"` | memcached lock expire time |
103104
| geonode.memcached.lock_timeout | string | `"10"` | memcached lock timeout |
@@ -112,6 +113,8 @@ Helm Chart for Geonode. Supported versions: Geonode: 4.4.0, Geoserver: 2.24.4-v1
112113
| geonode.resources.limits.memory | string | `"2Gi"` | limits memory as in resource.limits.memory (https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/) |
113114
| geonode.resources.requests.cpu | int | `1` | requested cpu as in resource.requests.cpu (https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/) |
114115
| geonode.resources.requests.memory | string | `"1Gi"` | requested memory as in resource.requests.memory (https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/) |
116+
| geonode.secret.bing.apiKey | string | `""` | |
117+
| geonode.secret.django.secretKey | string | `"myv-y4#7j-d*p-__@j#*3z@!y24fz8%^z2v6atuy4bo9vqr1_a"` | |
115118
| geonode.secret.existingSecretName | string | `""` | name of an existing Secret to use. Set, if you want to separately maintain the Secret. |
116119
| geonode.secret.ldap.bind_password | string | `"password"` | ldap password |
117120
| geonode.secret.mail.from | string | `"[email protected]"` | define from mail-addr |
@@ -122,8 +125,6 @@ Helm Chart for Geonode. Supported versions: Geonode: 4.4.0, Geoserver: 2.24.4-v1
122125
| geonode.secret.superUser.email | string | `"[email protected]"` | admin user password |
123126
| geonode.secret.superUser.password | string | `"geonode"` | admin panel password |
124127
| geonode.secret.superUser.username | string | `"admin"` | admin username |
125-
| geonode.secret.bing.apiKey | string | `""` | API Key for Bing Maps. |
126-
| geonode.secret.django.secretKey | string | `"!^gs*4^y81)#qt1n8!#3hzd221boe3_2x+s%t9buh#qwm)q)cb"` | Django SECRET_KEY setting. It is recommended to change it prior production use. |
127128
| geonode.sentry.build_number | int | `0` | sentry build number |
128129
| geonode.sentry.dsn | string | `""` | sentry dsn url |
129130
| geonode.sentry.enabled | bool | `false` | enable sentry integration for geonode |
@@ -153,10 +154,11 @@ Helm Chart for Geonode. Supported versions: Geonode: 4.4.0, Geoserver: 2.24.4-v1
153154
| geoserver.extraPodEnv | string | `""` | Define this for extra GeoServer environment variables Format: extraPodEnv: | - name: KEY_1 value: "VALUE_1" - name: KEY_2 value: "VALUE_2" |
154155
| geoserver.force_reinit | bool | `true` | set force reinit true so that changing passwords etc. in Values.yaml will take effect after restarting the pod this on the other hand will increase pod initializing time, only change if you know what you are doing |
155156
| geoserver.image.name | string | `"geonode/geoserver"` | geoserver image docker image (default in zalf namespace because geonode one was not up to date) |
156-
| geoserver.image.tag | string | `"2.24.4-v1"` | geoserver docker image tag |
157+
| geoserver.image.tag | string | `"2.24.3-latest"` | geoserver docker image tag |
157158
| geoserver.imagePullPolicy | string | `"IfNotPresent"` | geoserver image pull policy |
158159
| geoserver.imagePullSecret | string | `""` | pull secret to use for geoserver image |
159160
| geoserver.port | int | `8080` | geoserver port |
161+
| geoserver.printing.extraHosts | string | `""` | |
160162
| geoserver.resources.limits.cpu | int | `2` | limit cpu as in resource.requests.cpu (https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/) |
161163
| geoserver.resources.limits.memory | string | `"4Gi"` | limits memory as in resource.limits.memory (https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/) |
162164
| geoserver.resources.requests.cpu | int | `1` | requested cpu as in resource.requests.cpu (https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/) |
@@ -242,4 +244,4 @@ Helm Chart for Geonode. Supported versions: Geonode: 4.4.0, Geoserver: 2.24.4-v1
242244
| rabbitmq.requests.memory | string | `"1Gi"` | requested memory as in resource.requests.memory (https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/) |
243245

244246
----------------------------------------------
245-
Autogenerated from chart metadata using [helm-docs v1.11.0](https://github.com/norwoodj/helm-docs/releases/v1.11.0)
247+
Autogenerated from chart metadata using [helm-docs v1.13.1](https://github.com/norwoodj/helm-docs/releases/v1.13.1)

charts/geonode/templates/geonode/geonode-env.yaml

+1-5
Original file line numberDiff line numberDiff line change
@@ -134,11 +134,7 @@ data:
134134
HAYSTACK_SEARCH_RESULTS_PER_PAGE: {{ .Values.geonode.haystack.search_results_per_page | quote }}
135135

136136
MEMCACHED_ENABLED: {{ include "boolean2str" .Values.geonode.memcached.enabled | quote }}
137-
{{ if semverCompare ">=4.3.0" .Values.geonode.version }}
138-
MEMCACHED_BACKEND: django.core.cache.backends.memcached.PyLibMCCache
139-
{{ else }}
140-
MEMCACHED_BACKEND: django.core.cache.backends.memcached.MemcachedCache
141-
{{ end }}
137+
MEMCACHED_BACKEND: {{ .Values.geonode.memcached.backend | quote }}
142138
MEMCACHED_LOCATION: {{ .Release.Name }}-memcached
143139
MEMCACHED_LOCK_EXPIRE: {{ .Values.geonode.memcached.lock_expire | quote }}
144140
MEMCACHED_LOCK_TIMEOUT: {{ .Values.geonode.memcached.lock_timeout | quote }}

charts/geonode/values.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -303,6 +303,10 @@ geonode:
303303
memcached:
304304
# -- enable memcache, this will spawn one or more seperate memcache container(s) and configure django geonode repsectivly. Dynamic caching (see https://docs.djangoproject.com/en/4.0/topics/cache/)
305305
enabled: True
306+
# -- memcached backend to use
307+
# if geonode ">=4.3.0" use django.core.cache.backends.memcached.PyLibMCCache
308+
# before use django.core.cache.backends.memcached.MemcachedCache
309+
backend: django.core.cache.backends.memcached.PyLibMCCache
306310
# -- memcached lock expire time
307311
lock_expire: "3600"
308312
# -- memcached lock timeout

0 commit comments

Comments
 (0)