Skip to content

Commit

Permalink
add mysql version
Browse files Browse the repository at this point in the history
Signed-off-by: Ashraful Haque Tani <[email protected]>
  • Loading branch information
AshrafulHaqueToni committed Dec 17, 2024
1 parent ab7839f commit 9be4561
Show file tree
Hide file tree
Showing 7 changed files with 163 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 @@ -104,6 +104,7 @@
"4.2.24"
],
"MySQL": [
"9.0.1",
"8.4.2",
"8.2.0",
"8.1.0",
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 @@ -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",
Expand Down
55 changes: 55 additions & 0 deletions catalog/kubedb/raw/mysql/mysql-9.0.1-official.yaml
Original file line number Diff line number Diff line change
@@ -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: ashraf10039/mysql-init:9.0.1_linux_amd64
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
20 changes: 20 additions & 0 deletions catalog/kubedb/raw/singlestore/singlestore-8.5.7.yaml
Original file line number Diff line number Diff line change
@@ -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
20 changes: 20 additions & 0 deletions catalog/kubedb/raw/singlestore/singlestore-8.7.10.yaml
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions catalog/kubedb/restore_tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
65 changes: 65 additions & 0 deletions charts/kubedb-catalog/templates/mysql/mysql-9.0.1-official.yaml
Original file line number Diff line number Diff line change
@@ -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.dockerHub" (merge (dict "_repo" "ashraf10039/mysql-init") $) }}:9.0.1_linux_amd64'
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 }}

0 comments on commit 9be4561

Please sign in to comment.