Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GDB-11193: Time zone configurations for the backup cron job #158

Merged
merged 3 commits into from
Jan 29, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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