Skip to content

Commit

Permalink
Add MariaDB 11.6.2 Version Support
Browse files Browse the repository at this point in the history
Signed-off-by: SK Ali Arman <[email protected]>
  • Loading branch information
sheikh-arman committed Dec 17, 2024
1 parent 8b9aac4 commit 25e8cf1
Show file tree
Hide file tree
Showing 5 changed files with 105 additions and 0 deletions.
1 change: 1 addition & 0 deletions catalog/kubedb/active_versions.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@
"2022-cu12"
],
"MariaDB": [
"11.6.2",
"11.5.2",
"11.4.3",
"11.3.2",
Expand Down
1 change: 1 addition & 0 deletions catalog/kubedb/backup_tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
"xpack-8.2.3"
],
"mariadb-backup-10.5.8": [
"11.6.2",
"11.5.2",
"11.4.3",
"11.3.2",
Expand Down
46 changes: 46 additions & 0 deletions catalog/kubedb/raw/mariadb/mariadb-11.6.2.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
apiVersion: catalog.kubedb.com/v1alpha1
kind: MariaDBVersion
metadata:
name: 11.6.2
spec:
archiver:
addon:
name: mariadb-addon
tasks:
fullBackup:
name: logical-backup
fullBackupRestore:
name: logical-backup-restore
manifestBackup:
name: manifest-backup
manifestRestore:
name: manifest-restore
volumeSnapshot:
name: volume-snapshot
walg:
image: ghcr.io/kubedb/mariadb-archiver:(v0.9.0)_11.2.2-jammy
coordinator:
image: ghcr.io/kubedb/mariadb-coordinator:v0.29.0
db:
image: ghcr.io/appscode-images/mariadb:11.6.2-noble
exporter:
image: prom/mysqld-exporter:v0.13.0
initContainer:
image: ghcr.io/kubedb/mariadb-init:0.5.2
podSecurityPolicies:
databasePolicyName: maria-db
securityContext:
runAsUser: 999
stash:
addon:
backupTask:
name: mariadb-backup-10.5.8
restoreTask:
name: mariadb-restore-10.5.8
ui:
- name: phpmyadmin
version: v2024.4.27
updateConstraints:
allowlist:
- '> 11.6.2, <= 11.6.2'
version: 11.6.2
1 change: 1 addition & 0 deletions catalog/kubedb/restore_tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
"xpack-8.2.3"
],
"mariadb-restore-10.5.8": [
"11.6.2",
"11.5.2",
"11.4.3",
"11.3.2",
Expand Down
56 changes: 56 additions & 0 deletions charts/kubedb-catalog/templates/mariadb/mariadb-11.6.2.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
{{ $featureGates := .Values.featureGates }}
{{- if .Values.global }}
{{ $featureGates = mergeOverwrite dict .Values.featureGates .Values.global.featureGates }}
{{- end }}

{{ if $featureGates.MariaDB }}

apiVersion: catalog.kubedb.com/v1alpha1
kind: MariaDBVersion
metadata:
name: '11.6.2'
labels:
{{- include "kubedb-catalog.labels" . | nindent 4 }}
spec:
archiver:
addon:
name: mariadb-addon
tasks:
fullBackup:
name: logical-backup
fullBackupRestore:
name: logical-backup-restore
manifestBackup:
name: manifest-backup
manifestRestore:
name: manifest-restore
volumeSnapshot:
name: volume-snapshot
walg:
image: '{{ include "image.ghcr" (merge (dict "_repo" "kubedb/mariadb-archiver") $) }}:v0.9.0_11.2.2-jammy'
coordinator:
image: '{{ include "image.ghcr" (merge (dict "_repo" "kubedb/mariadb-coordinator") $) }}:v0.29.0'
db:
image: '{{ include "image.ghcr" (merge (dict "_repo" "appscode-images/mariadb") $) }}:11.6.2-noble'
exporter:
image: '{{ include "image.dockerHub" (merge (dict "_repo" "prom/mysqld-exporter") $) }}:v0.13.0'
initContainer:
image: '{{ include "image.ghcr" (merge (dict "_repo" "kubedb/mariadb-init") $) }}:0.5.2'
podSecurityPolicies:
databasePolicyName: maria-db
securityContext:
runAsUser: 999
stash:
addon:
backupTask:
name: mariadb-backup-10.5.8
restoreTask:
name: mariadb-restore-10.5.8
ui:
- name: phpmyadmin
version: v2024.4.27
updateConstraints:
allowlist:
- '> 11.6.2, <= 11.6.2'
version: 11.6.2
{{ end }}

0 comments on commit 25e8cf1

Please sign in to comment.