Skip to content

Commit

Permalink
Merge pull request #158 from Ontotext-AD/GDB-11193-cronjob-timezone
Browse files Browse the repository at this point in the history
GDB-11193: Time zone configurations for the backup cron job
  • Loading branch information
mihailradkov authored Jan 29, 2025
2 parents cbe3229 + 05f3dd2 commit 6edc0b3
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 17 deletions.
36 changes: 21 additions & 15 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,26 @@
# GraphDB Helm chart release notes

## Version 11.4.0

### New

- Added new configuration properties for GraphDB Tomcat connector SSL/TLS
- Added `configuration.tls.keystore` to configure a keystore with its properties
- Added `configuration.tls.truststore` to configure a truststore with its properties
- Added `configuration.tls.certificateRevocationList` to configure a certificate revocation list
- Added new configuration properties for configuring GraphDB cluster security (SSL/TLS)
- Added `cluster.tls.mode` to configure cluster security mode
- Added `cluster.tls.keystore` to configure a keystore with its properties
- Added `cluster.tls.truststore` to configure a truststore with its properties
- Added `cluster.tls.certificate` to configure a certificate
- Added `cluster.tls.certificateChain` to configure a certificate chain
- Added `cluster.tls.certificateKey` to configure a private key with its properties
- Added `cluster.tls.rootCerts` to configure root certificates to be trusted
- Added `cluster.tls.certificateRevocationList` to configure a certificate revocation list
- Updated jobs and scripts to use `https` or `http` depending on whether the Tomcat connector security is configured
- Added `indices` configuration enabling a job for initial preloading of indices and other SPARQL updates
- Added `backup.timezone` configuration for overriding the default timezone with a specific one

## Version 11.3.3

### Fixed
Expand Down Expand Up @@ -27,21 +48,6 @@
- Added `license.mountPath` to configure where the license volume is mounted
- Added `license.optional` to configure the license volume as optional if needed
- Added `license.readOnly` to configure the read/write mode of the license volume mount
- Added new configuration properties for GraphDB Tomcat connector SSL/TLS
- Added `configuration.tls.keystore` to configure a keystore with its properties
- Added `configuration.tls.truststore` to configure a truststore with its properties
- Added `configuration.tls.certificateRevocationList` to configure a certificate revocation list
- Added new configuration properties for configuring GraphDB cluster security (SSL/TLS)
- Added `cluster.tls.mode` to configure cluster security mode
- Added `cluster.tls.keystore` to configure a keystore with its properties
- Added `cluster.tls.truststore` to configure a truststore with its properties
- Added `cluster.tls.certificate` to configure a certificate
- Added `cluster.tls.certificateChain` to configure a certificate chain
- Added `cluster.tls.certificateKey` to configure a private key with its properties
- Added `cluster.tls.rootCerts` to configure root certificates to be trusted
- Added `cluster.tls.certificateRevocationList` to configure a certificate revocation list
- Updated jobs and scripts to use `https` or `http` depending on whether the Tomcat connector security is configured

- Updated to GraphDB [10.8.0](https://graphdb.ontotext.com/documentation/10.8/release-notes.html#graphdb-10-8-0)

### Updated
Expand Down
2 changes: 1 addition & 1 deletion Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ apiVersion: v2
name: graphdb
description: GraphDB is a highly efficient, scalable and robust graph database with RDF and SPARQL support.
type: application
version: 11.3.3
version: 11.4.0
appVersion: 10.8.2
kubeVersion: ^1.26.0-0
home: https://graphdb.ontotext.com/
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Helm Chart for GraphDB

[![CI](https://github.com/Ontotext-AD/graphdb-helm/actions/workflows/ci.yml/badge.svg)](https://github.com/Ontotext-AD/graphdb-helm/actions/workflows/ci.yml)
![Version: 11.3.3](https://img.shields.io/badge/Version-11.3.3-informational?style=flat-square)
![Version: 11.4.0](https://img.shields.io/badge/Version-11.4.0-informational?style=flat-square)
![AppVersion: 10.8.2](https://img.shields.io/badge/AppVersion-10.8.2-informational?style=flat-square)

<!--
Expand Down Expand Up @@ -322,6 +322,7 @@ IMPORTANT: This is generated by helm-docs, do not attempt modifying it on hand a
| backup.optionsSecret.secretKey | string | `"backup_options.json"` | |
| backup.schedule | string | `"@midnight"` | |
| backup.successfulJobsHistoryLimit | int | `3` | |
| backup.timezone | string | `""` | |
| backup.type | string | `"cloud"` | |
| cluster.clusterCreationTimeout | int | `60` | |
| cluster.config.configmapKey | string | `"cluster-config.json"` | |
Expand Down
3 changes: 3 additions & 0 deletions templates/jobs/cronjob-backup.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ metadata:
{{- end }}
spec:
schedule: {{ .Values.backup.schedule | quote }}
{{- if and .Values.backup.timezone (semverCompare ">=1.27-0" .Capabilities.KubeVersion.Version) }}
timeZone: {{ .Values.backup.timezone }}
{{- end }}
successfulJobsHistoryLimit: {{ .Values.backup.successfulJobsHistoryLimit }}
failedJobsHistoryLimit: {{ .Values.backup.failedJobsHistoryLimit }}
concurrencyPolicy: Forbid
Expand Down
6 changes: 6 additions & 0 deletions values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -756,6 +756,12 @@ backup:
# Ref: https://kubernetes.io/docs/concepts/workloads/controllers/cron-jobs/#schedule-syntax
schedule: "@midnight"

# Specifies the time zone for the cron job. If not specified, Kubernetes will use the local time zone by default.
# This requires Kubernetes v1.27 or greater.
#
# Ref: https://kubernetes.io/docs/concepts/workloads/controllers/cron-jobs/#time-zones
timezone: ""

# Backup options that will be injected as JSON in the default backup options Secret. \
# These configurations define the backup behaviour such as including or excluding repositories or system data.
#
Expand Down

0 comments on commit 6edc0b3

Please sign in to comment.