Skip to content

Commit

Permalink
Release on cdr version 0.3.15
Browse files Browse the repository at this point in the history
  • Loading branch information
olimpiurob committed Dec 27, 2024
1 parent fc4c9f8 commit 8e10a8c
Show file tree
Hide file tree
Showing 7 changed files with 136 additions and 2 deletions.
Binary file added docs/cdr-0.3.15.tgz
Binary file not shown.
33 changes: 32 additions & 1 deletion docs/index.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2059,6 +2059,37 @@ entries:
- casservice-1.0.0.tgz
version: 1.0.0
cdr:
- apiVersion: v2
appVersion: 6.7.3-199
created: "2024-12-27T12:11:36.362521+02:00"
dependencies:
- alias: zeoserver
name: rn-zeoserver
repository: https://eea.github.io/helm-charts
version: 0.1.5
- alias: varnish
condition: rn-varnish.enabled
name: rn-varnish
repository: https://eea.github.io/helm-charts
version: 0.1.5
- alias: local-converters
condition: rn-local-converters.enabled
name: rn-local-converters
repository: https://eea.github.io/helm-charts
version: 0.1.3
- alias: clamav
condition: rn-clamav.enabled
name: rn-clamav
repository: https://eea.github.io/helm-charts
version: 0.1.4
description: A CDR Helm chart for Kubernetes
digest: 962e1a05c4ba687b8a40e273a200a3479af11d434e2a1ccc2dcf07dc976a4e06
icon: https://raw.githubusercontent.com/eea/helm-charts/main/sources/cdr/logo_eionet.png
name: cdr
type: application
urls:
- cdr-0.3.15.tgz
version: 0.3.15
- apiVersion: v2
appVersion: 6.7.3-199
created: "2024-12-23T13:55:47.763688+02:00"
Expand Down Expand Up @@ -9055,4 +9086,4 @@ entries:
urls:
- zz-testing-catalogrefresh-2.0.0.tgz
version: 2.0.0
generated: "2024-12-23T13:58:27.642737+02:00"
generated: "2024-12-27T12:11:36.358588+02:00"
2 changes: 1 addition & 1 deletion sources/cdr/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ icon: https://raw.githubusercontent.com/eea/helm-charts/main/sources/cdr/logo_ei

type: application

version: 0.3.14
version: 0.3.15

appVersion: "6.7.3-199"

Expand Down
3 changes: 3 additions & 0 deletions sources/cdr/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ This chart is almost configured for production use.

## Releases

### Version 0.3.15
- Added cronjob for auto cleanup.

### Version 0.3.14
- Updated appVersion to 6.7.3-199.

Expand Down
13 changes: 13 additions & 0 deletions sources/cdr/questions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,19 @@ questions:
show_if: "cronautoenvcleanup.enabled"
group: "Cron jobs"

- variable: cronautocleanup.enabled
label: "Enable Cron auto cleanup"
type: boolean
default: false
group: "Cron jobs"

- variable: cronautocleanup.schedule
label: "Cron auto cleanup Schedule"
type: string
default: "45 3 * * *"
show_if: "cronautocleanup.enabled"
group: "Cron jobs"

- variable: cronautofallin.enabled
label: "Enable Cron auto fallin"
type: boolean
Expand Down
78 changes: 78 additions & 0 deletions sources/cdr/templates/cron-auto-cleanup.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
{{- if and .Values.cron.enabled .Values.cronautocleanup.enabled }}
apiVersion: batch/v1
kind: CronJob
metadata:
name: {{ include "appl.fullname" . }}-cron-auto-cleanup
labels:
{{- include "appl.labels" . | nindent 4 }}
app.kubernetes.io/component: job

spec:
schedule: "{{ .Values.cronautocleanup.schedule }}"
concurrencyPolicy: Forbid
jobTemplate:
spec:
template:
spec:
{{- with .Values.imagePullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 8 }}
{{- end }}
serviceAccountName: {{ include "appl.serviceAccountName" . }}

containers:
- name: {{ include "appl.fullname" . }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
resources:
{{- toYaml .Values.cronautocleanup.resources | nindent 14 }}
command:
- /opt/zope/bin/instance
- run
- /opt/zope/bin/auto_cleanup
- --container
- /xmlexports/prefills/designation_types
- --recursive
- true
- --c_type
- File
- --prefix
- OLD_
- --threshold
- '5'
env:
- name: CACHE_PURGING_DOMAIN
value: '{{ .Values.instance.env.cachePurgingDomain }}'
- name: CACHE_PURGING_ENABLED
value: '{{ .Values.instance.env.cachePurgingEnabled }}'
- name: CACHE_PURGING_PROXY
value: '{{ .Values.instance.env.cachePurgingProxy }}'
- name: CACHE_PURGING_PROXY_PORT
value: '{{ .Values.instance.env.cachePurgingProxyPort }}'
- name: CACHE_PURGING_VHOST
value: '{{ .Values.instance.env.cachePurgingVhost }}'
- name: CACHE_SETTINGS_ENABLED
value: '{{ .Values.instance.env.cacheSettingsEnabled }}'
- name: CLAMAV_HOST
value: '{{ .Values.instance.env.clamavHost }}'
- name: GRAYLOG
value: '{{ .Values.instance.env.graylog }}'
- name: GRAYLOG_FACILITY
value: '{{ .Values.instance.env.graylogFacility }}'
- name: SENTRY_DSN
value: '{{ .Values.instance.env.sentryDSN }}'
- name: SENTRY_SITE
value: '{{ .Values.instance.env.sentrySite }}'
- name: SENTRY_ENVIRONMENT
value: '{{ .Values.instance.env.sentryEnvironment }}'
- name: SENTRY_RELEASE
value: '{{ include "appl.chart" . }}:{{ .Chart.AppVersion }}'
- name: TZ
value: '{{ .Values.timezone }}'
- name: ZEO_ADDRESS
value: '{{ .Values.instance.env.zeoAddress }}'
- name: ZOPE_THREADS
value: '{{ .Values.instance.env.zopeThreads }}'

restartPolicy: Never
{{- end }}
9 changes: 9 additions & 0 deletions sources/cdr/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,15 @@ cronautoenvcleanup:
limits:
memory: 3Gi

cronautocleanup:
enabled: false
schedule: "0 0 1 */3 *"
resources:
requests:
memory: 5Gi
limits:
memory: 5Gi

cronautofallin:
enabled: false
schedule: "*/5 * 16 11 *"
Expand Down

0 comments on commit 8e10a8c

Please sign in to comment.