From 5ae5246519e381664b3653c6f9406b37a8f65199 Mon Sep 17 00:00:00 2001 From: Ashraful Haque Tani Date: Tue, 17 Dec 2024 12:02:01 +0600 Subject: [PATCH] add mysql version Signed-off-by: Ashraful Haque Tani --- catalog/kubedb/active_versions.json | 1 + catalog/kubedb/backup_tasks.json | 1 + .../raw/mysql/mysql-9.0.1-official.yaml | 55 ++++++++++++++++ .../raw/singlestore/singlestore-8.5.7.yaml | 20 ++++++ .../raw/singlestore/singlestore-8.7.10.yaml | 20 ++++++ catalog/kubedb/restore_tasks.json | 1 + .../templates/mysql/mysql-9.0.1-official.yaml | 65 +++++++++++++++++++ 7 files changed, 163 insertions(+) create mode 100644 catalog/kubedb/raw/mysql/mysql-9.0.1-official.yaml create mode 100644 catalog/kubedb/raw/singlestore/singlestore-8.5.7.yaml create mode 100644 catalog/kubedb/raw/singlestore/singlestore-8.7.10.yaml create mode 100644 charts/kubedb-catalog/templates/mysql/mysql-9.0.1-official.yaml diff --git a/catalog/kubedb/active_versions.json b/catalog/kubedb/active_versions.json index bedf7e197..e030fcba8 100644 --- a/catalog/kubedb/active_versions.json +++ b/catalog/kubedb/active_versions.json @@ -104,6 +104,7 @@ "4.2.24" ], "MySQL": [ + "9.0.1", "8.4.2", "8.2.0", "8.1.0", diff --git a/catalog/kubedb/backup_tasks.json b/catalog/kubedb/backup_tasks.json index 65b333b25..a6940eadd 100644 --- a/catalog/kubedb/backup_tasks.json +++ b/catalog/kubedb/backup_tasks.json @@ -78,6 +78,7 @@ "5.7.42-debian" ], "mysql-backup-8.0.21": [ + "9.0.1", "8.4.2", "8.2.0", "8.1.0", diff --git a/catalog/kubedb/raw/mysql/mysql-9.0.1-official.yaml b/catalog/kubedb/raw/mysql/mysql-9.0.1-official.yaml new file mode 100644 index 000000000..41ecd4981 --- /dev/null +++ b/catalog/kubedb/raw/mysql/mysql-9.0.1-official.yaml @@ -0,0 +1,55 @@ +apiVersion: catalog.kubedb.com/v1alpha1 +kind: MySQLVersion +metadata: + name: 9.0.1 +spec: + archiver: + addon: + name: mysql-addon + tasks: + manifestBackup: + name: manifest-backup + manifestRestore: + name: manifest-restore + volumeSnapshot: + name: volume-snapshot + walg: + image: ghcr.io/kubedb/mysql-archiver:(v0.10.0)_8.2.0 + coordinator: + image: ghcr.io/kubedb/mysql-coordinator:v0.27.0 + db: + image: ghcr.io/appscode-images/mysql:9.0.1-oracle + distribution: Official + exporter: + image: ghcr.io/kubedb/mysqld-exporter:v0.13.1 + gitSyncer: + image: registry.k8s.io/git-sync/git-sync:v4.2.1 + initContainer: + image: ghcr.io/kubedb/mysql-init:8.4.2-v2 + podSecurityPolicies: + databasePolicyName: mysql-db + replicationModeDetector: + image: ghcr.io/kubedb/replication-mode-detector:v0.36.0 + securityContext: + runAsUser: 999 + stash: + addon: + backupTask: + name: mysql-backup-8.0.21 + restoreTask: + name: mysql-restore-8.0.21 + ui: + - name: phpmyadmin + version: v2024.4.27 + updateConstraints: + allowlist: + groupReplication: + - '> 9.0.1, <= 9.0.1' + standalone: + - '> 9.0.1, <= 9.0.1' + denylist: + groupReplication: + - < 9.0.1 + standalone: + - < 9.0.1 + version: 9.0.1 diff --git a/catalog/kubedb/raw/singlestore/singlestore-8.5.7.yaml b/catalog/kubedb/raw/singlestore/singlestore-8.5.7.yaml new file mode 100644 index 000000000..2b985c11e --- /dev/null +++ b/catalog/kubedb/raw/singlestore/singlestore-8.5.7.yaml @@ -0,0 +1,20 @@ +apiVersion: catalog.kubedb.com/v1alpha1 +kind: SinglestoreVersion +metadata: + name: 8.5.7 +spec: + coordinator: + image: ghcr.io/kubedb/singlestore-coordinator:v0.4.0 + db: + image: ghcr.io/appscode-images/singlestore-node:alma-8.5.7-bf633c1a54 + initContainer: + image: ghcr.io/kubedb/singlestore-init:8.5-v2 + securityContext: + runAsGroup: 998 + runAsUser: 999 + standalone: + image: singlestore/cluster-in-a-box:alma-8.5.7-bf633c1a54-4.0.17-1.17.8 + updateConstraints: + allowlist: + - '> 8.5.7, <= 8.9.3' + version: 8.5.7 diff --git a/catalog/kubedb/raw/singlestore/singlestore-8.7.10.yaml b/catalog/kubedb/raw/singlestore/singlestore-8.7.10.yaml new file mode 100644 index 000000000..81da811c3 --- /dev/null +++ b/catalog/kubedb/raw/singlestore/singlestore-8.7.10.yaml @@ -0,0 +1,20 @@ +apiVersion: catalog.kubedb.com/v1alpha1 +kind: SinglestoreVersion +metadata: + name: 8.7.10 +spec: + coordinator: + image: ghcr.io/kubedb/singlestore-coordinator:v0.4.0 + db: + image: ghcr.io/appscode-images/singlestore-node:alma-8.7.10-95e2357384 + initContainer: + image: ghcr.io/kubedb/singlestore-init:8.7.10-v1 + securityContext: + runAsGroup: 998 + runAsUser: 999 + standalone: + image: singlestore/cluster-in-a-box:alma-8.7.10-95e2357384-4.1.0-1.17.14 + updateConstraints: + allowlist: + - '> 8.7.10, <= 8.9.3' + version: 8.7.10 diff --git a/catalog/kubedb/restore_tasks.json b/catalog/kubedb/restore_tasks.json index 5cf36e4f1..2f953b52d 100644 --- a/catalog/kubedb/restore_tasks.json +++ b/catalog/kubedb/restore_tasks.json @@ -78,6 +78,7 @@ "5.7.42-debian" ], "mysql-restore-8.0.21": [ + "9.0.1", "8.4.2", "8.2.0", "8.1.0", diff --git a/charts/kubedb-catalog/templates/mysql/mysql-9.0.1-official.yaml b/charts/kubedb-catalog/templates/mysql/mysql-9.0.1-official.yaml new file mode 100644 index 000000000..05282f2d9 --- /dev/null +++ b/charts/kubedb-catalog/templates/mysql/mysql-9.0.1-official.yaml @@ -0,0 +1,65 @@ +{{ $featureGates := .Values.featureGates }} +{{- if .Values.global }} + {{ $featureGates = mergeOverwrite dict .Values.featureGates .Values.global.featureGates }} +{{- end }} + +{{ if $featureGates.MySQL }} + +apiVersion: catalog.kubedb.com/v1alpha1 +kind: MySQLVersion +metadata: + name: '9.0.1' + labels: + {{- include "kubedb-catalog.labels" . | nindent 4 }} +spec: + archiver: + addon: + name: mysql-addon + tasks: + manifestBackup: + name: manifest-backup + manifestRestore: + name: manifest-restore + volumeSnapshot: + name: volume-snapshot + walg: + image: '{{ include "image.ghcr" (merge (dict "_repo" "kubedb/mysql-archiver") $) }}:v0.10.0_8.2.0' + coordinator: + image: '{{ include "image.ghcr" (merge (dict "_repo" "kubedb/mysql-coordinator") $) }}:v0.27.0' + db: + image: '{{ include "image.ghcr" (merge (dict "_repo" "appscode-images/mysql") $) }}:9.0.1-oracle' + distribution: Official + exporter: + image: '{{ include "image.ghcr" (merge (dict "_repo" "kubedb/mysqld-exporter") $) }}:v0.13.1' + gitSyncer: + image: '{{ include "image.kubernetes" (merge (dict "_repo" "git-sync/git-sync") $) }}:v4.2.1' + initContainer: + image: '{{ include "image.ghcr" (merge (dict "_repo" "kubedb/mysql-init") $) }}:8.4.2-v2' + podSecurityPolicies: + databasePolicyName: mysql-db + replicationModeDetector: + image: '{{ include "image.ghcr" (merge (dict "_repo" "kubedb/replication-mode-detector") $) }}:v0.36.0' + securityContext: + runAsUser: 999 + stash: + addon: + backupTask: + name: mysql-backup-8.0.21 + restoreTask: + name: mysql-restore-8.0.21 + ui: + - name: phpmyadmin + version: v2024.4.27 + updateConstraints: + allowlist: + groupReplication: + - '> 9.0.1, <= 9.0.1' + standalone: + - '> 9.0.1, <= 9.0.1' + denylist: + groupReplication: + - < 9.0.1 + standalone: + - < 9.0.1 + version: 9.0.1 +{{ end }}