Skip to content

Commit

Permalink
Add MysQL 8.4.3 & 9.1.0 (#1477)
Browse files Browse the repository at this point in the history
Signed-off-by: Tamal Saha <[email protected]>
  • Loading branch information
tamalsaha authored Dec 19, 2024
1 parent 4a14d08 commit d7bae1e
Show file tree
Hide file tree
Showing 11 changed files with 250 additions and 4 deletions.
2 changes: 2 additions & 0 deletions catalog/kubedb/active_versions.json
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,9 @@
"4.2.24"
],
"MySQL": [
"9.1.0",
"9.0.1",
"8.4.3",
"8.4.2",
"8.2.0",
"8.1.0",
Expand Down
2 changes: 2 additions & 0 deletions catalog/kubedb/backup_tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,9 @@
"5.7.42-debian"
],
"mysql-backup-8.0.21": [
"9.1.0",
"9.0.1",
"8.4.3",
"8.4.2",
"8.2.0",
"8.1.0",
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 @@ -14,7 +14,7 @@ spec:
volumeSnapshot:
name: volume-snapshot
walg:
image: ghcr.io/kubedb/mysql-archiver:(v0.10.0)_8.2.0
image: ghcr.io/kubedb/mysql-archiver:(v0.10.0)_8.4.3
coordinator:
image: ghcr.io/kubedb/mysql-coordinator:v0.27.0
db:
Expand Down
55 changes: 55 additions & 0 deletions catalog/kubedb/raw/mysql/mysql-8.4.3-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: 8.4.3
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.4.3
coordinator:
image: ghcr.io/kubedb/mysql-coordinator:v0.27.0
db:
image: ghcr.io/appscode-images/mysql:8.4.3-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.3-v3
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:
- '> 8.4.3, <= 8.4.3'
standalone:
- '> 8.4.3, <= 8.4.3'
denylist:
groupReplication:
- < 8.4.3
standalone:
- < 8.4.3
version: 8.4.3
2 changes: 1 addition & 1 deletion catalog/kubedb/raw/mysql/mysql-9.0.1-official.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ spec:
volumeSnapshot:
name: volume-snapshot
walg:
image: ghcr.io/kubedb/mysql-archiver:(v0.10.0)_8.2.0
image: ghcr.io/kubedb/mysql-archiver:(v0.10.0)_9.1.0
coordinator:
image: ghcr.io/kubedb/mysql-coordinator:v0.27.0
db:
Expand Down
55 changes: 55 additions & 0 deletions catalog/kubedb/raw/mysql/mysql-9.1.0-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.1.0
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)_9.1.0
coordinator:
image: ghcr.io/kubedb/mysql-coordinator:v0.27.0
db:
image: ghcr.io/appscode-images/mysql:9.1.0-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.1.0-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.1.0, <= 9.1.0'
standalone:
- '> 9.1.0, <= 9.1.0'
denylist:
groupReplication:
- < 9.1.0
standalone:
- < 9.1.0
version: 9.1.0
2 changes: 2 additions & 0 deletions catalog/kubedb/restore_tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,9 @@
"5.7.42-debian"
],
"mysql-restore-8.0.21": [
"9.1.0",
"9.0.1",
"8.4.3",
"8.4.2",
"8.2.0",
"8.1.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ spec:
volumeSnapshot:
name: volume-snapshot
walg:
image: '{{ include "image.ghcr" (merge (dict "_repo" "kubedb/mysql-archiver") $) }}:v0.10.0_8.2.0'
image: '{{ include "image.ghcr" (merge (dict "_repo" "kubedb/mysql-archiver") $) }}:v0.10.0_8.4.3'
coordinator:
image: '{{ include "image.ghcr" (merge (dict "_repo" "kubedb/mysql-coordinator") $) }}:v0.27.0'
db:
Expand Down
65 changes: 65 additions & 0 deletions charts/kubedb-catalog/templates/mysql/mysql-8.4.3-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: '8.4.3'
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.4.3'
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") $) }}:8.4.3-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.3-v3'
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:
- '> 8.4.3, <= 8.4.3'
standalone:
- '> 8.4.3, <= 8.4.3'
denylist:
groupReplication:
- < 8.4.3
standalone:
- < 8.4.3
version: 8.4.3
{{ end }}
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ spec:
volumeSnapshot:
name: volume-snapshot
walg:
image: '{{ include "image.ghcr" (merge (dict "_repo" "kubedb/mysql-archiver") $) }}:v0.10.0_8.2.0'
image: '{{ include "image.ghcr" (merge (dict "_repo" "kubedb/mysql-archiver") $) }}:v0.10.0_9.1.0'
coordinator:
image: '{{ include "image.ghcr" (merge (dict "_repo" "kubedb/mysql-coordinator") $) }}:v0.27.0'
db:
Expand Down
65 changes: 65 additions & 0 deletions charts/kubedb-catalog/templates/mysql/mysql-9.1.0-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.1.0'
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_9.1.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.1.0-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.1.0-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.1.0, <= 9.1.0'
standalone:
- '> 9.1.0, <= 9.1.0'
denylist:
groupReplication:
- < 9.1.0
standalone:
- < 9.1.0
version: 9.1.0
{{ end }}

0 comments on commit d7bae1e

Please sign in to comment.