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 be77bc3 commit 6b0e8d0
Show file tree
Hide file tree
Showing 23 changed files with 179 additions and 16 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
2 changes: 1 addition & 1 deletion catalog/kubedb/raw/mysql/mysql-5.7.42-official.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ spec:
gitSyncer:
image: registry.k8s.io/git-sync/git-sync:v4.2.1
initContainer:
image: ghcr.io/kubedb/mysql-init:5.7-v4
image: ghcr.io/kubedb/mysql-init:5.7-v5
podSecurityPolicies:
databasePolicyName: mysql-db
replicationModeDetector:
Expand Down
2 changes: 1 addition & 1 deletion catalog/kubedb/raw/mysql/mysql-5.7.44-official.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ spec:
gitSyncer:
image: registry.k8s.io/git-sync/git-sync:v4.2.1
initContainer:
image: ghcr.io/kubedb/mysql-init:5.7-v4
image: ghcr.io/kubedb/mysql-init:5.7-v5
podSecurityPolicies:
databasePolicyName: mysql-db
replicationModeDetector:
Expand Down
2 changes: 1 addition & 1 deletion catalog/kubedb/raw/mysql/mysql-8.0.31-mysql.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ spec:
gitSyncer:
image: registry.k8s.io/git-sync/git-sync:v4.2.1
initContainer:
image: ghcr.io/kubedb/mysql-init:8.0.31-v3
image: ghcr.io/kubedb/mysql-init:8.0.31-v4
podSecurityPolicies:
databasePolicyName: mysql-db
replicationModeDetector:
Expand Down
2 changes: 1 addition & 1 deletion catalog/kubedb/raw/mysql/mysql-8.0.35-official.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ spec:
gitSyncer:
image: registry.k8s.io/git-sync/git-sync:v4.2.1
initContainer:
image: ghcr.io/kubedb/mysql-init:8.0.31-v3
image: ghcr.io/kubedb/mysql-init:8.0.31-v4
podSecurityPolicies:
databasePolicyName: mysql-db
replicationModeDetector:
Expand Down
2 changes: 1 addition & 1 deletion catalog/kubedb/raw/mysql/mysql-8.0.36-official.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ spec:
gitSyncer:
image: registry.k8s.io/git-sync/git-sync:v4.2.1
initContainer:
image: ghcr.io/kubedb/mysql-init:8.0.31-v3
image: ghcr.io/kubedb/mysql-init:8.0.31-v4
podSecurityPolicies:
databasePolicyName: mysql-db
replicationModeDetector:
Expand Down
2 changes: 1 addition & 1 deletion catalog/kubedb/raw/mysql/mysql-8.1.0-official.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ spec:
gitSyncer:
image: registry.k8s.io/git-sync/git-sync:v4.2.1
initContainer:
image: ghcr.io/kubedb/mysql-init:8.0.31-v3
image: ghcr.io/kubedb/mysql-init:8.0.31-v4
podSecurityPolicies:
databasePolicyName: mysql-db
replicationModeDetector:
Expand Down
2 changes: 1 addition & 1 deletion catalog/kubedb/raw/mysql/mysql-8.2.0-official.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ spec:
gitSyncer:
image: registry.k8s.io/git-sync/git-sync:v4.2.1
initContainer:
image: ghcr.io/kubedb/mysql-init:8.0.31-v3
image: ghcr.io/kubedb/mysql-init:8.0.31-v4
podSecurityPolicies:
databasePolicyName: mysql-db
replicationModeDetector:
Expand Down
2 changes: 1 addition & 1 deletion catalog/kubedb/raw/mysql/mysql-8.4.2-official.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ spec:
gitSyncer:
image: registry.k8s.io/git-sync/git-sync:v4.2.1
initContainer:
image: ghcr.io/kubedb/mysql-init:8.4.2-v2
image: ghcr.io/kubedb/mysql-init:8.4.2-v3
podSecurityPolicies:
databasePolicyName: mysql-db
replicationModeDetector:
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: ghcr.io/kubedb/mysql-init:9.0.1-v1
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
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ spec:
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") $) }}:5.7-v4'
image: '{{ include "image.ghcr" (merge (dict "_repo" "kubedb/mysql-init") $) }}:5.7-v5'
podSecurityPolicies:
databasePolicyName: mysql-db
replicationModeDetector:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ spec:
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") $) }}:5.7-v4'
image: '{{ include "image.ghcr" (merge (dict "_repo" "kubedb/mysql-init") $) }}:5.7-v5'
podSecurityPolicies:
databasePolicyName: mysql-db
replicationModeDetector:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ spec:
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.0.31-v3'
image: '{{ include "image.ghcr" (merge (dict "_repo" "kubedb/mysql-init") $) }}:8.0.31-v4'
podSecurityPolicies:
databasePolicyName: mysql-db
replicationModeDetector:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ spec:
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.0.31-v3'
image: '{{ include "image.ghcr" (merge (dict "_repo" "kubedb/mysql-init") $) }}:8.0.31-v4'
podSecurityPolicies:
databasePolicyName: mysql-db
replicationModeDetector:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ spec:
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.0.31-v3'
image: '{{ include "image.ghcr" (merge (dict "_repo" "kubedb/mysql-init") $) }}:8.0.31-v4'
podSecurityPolicies:
databasePolicyName: mysql-db
replicationModeDetector:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ spec:
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.0.31-v3'
image: '{{ include "image.ghcr" (merge (dict "_repo" "kubedb/mysql-init") $) }}:8.0.31-v4'
podSecurityPolicies:
databasePolicyName: mysql-db
replicationModeDetector:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ spec:
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.0.31-v3'
image: '{{ include "image.ghcr" (merge (dict "_repo" "kubedb/mysql-init") $) }}:8.0.31-v4'
podSecurityPolicies:
databasePolicyName: mysql-db
replicationModeDetector:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ spec:
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'
image: '{{ include "image.ghcr" (merge (dict "_repo" "kubedb/mysql-init") $) }}:8.4.2-v3'
podSecurityPolicies:
databasePolicyName: mysql-db
replicationModeDetector:
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.ghcr" (merge (dict "_repo" "kubedb/mysql-init") $) }}:9.0.1-v1'
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 6b0e8d0

Please sign in to comment.