Skip to content

Commit

Permalink
Add mariadb non-root images (#717)
Browse files Browse the repository at this point in the history
Signed-off-by: TasdidurRahman <[email protected]>
Co-authored-by: TasdidurRahman <[email protected]>
  • Loading branch information
heheh13 and TasdidurRahman authored Nov 29, 2023
1 parent dbed260 commit cbc1a11
Show file tree
Hide file tree
Showing 29 changed files with 374 additions and 19 deletions.
11 changes: 8 additions & 3 deletions catalog/kubedb/active_versions.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,17 @@
"3.3.0"
],
"MariaDB": [
"11.1.3",
"11.0.4",
"10.11.6",
"10.11.2",
"10.10.7",
"10.10.2",
"10.6.16",
"10.6.4",
"10.5.8",
"10.4.31",
"10.4.17"
"10.5.23",
"10.4.32",
"10.4.31"
],
"Memcached": [
"1.5.22",
Expand Down
11 changes: 8 additions & 3 deletions catalog/kubedb/backup_tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,12 +88,17 @@
"kubedb-xpack-8.2.0"
],
"mariadb-backup-10.5.8": [
"11.1.3",
"11.0.4",
"10.11.6",
"10.11.2",
"10.10.7",
"10.10.2",
"10.6.16",
"10.6.4",
"10.5.8",
"10.4.31",
"10.4.17"
"10.5.23",
"10.4.32",
"10.4.31"
],
"mongodb-backup-3.4.17": [
"3.4.17-v1"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ spec:
image: ghcr.io/kubedb/mariadb-coordinator:v0.17.0
db:
image: mariadb:10.4.17
deprecated: true
exporter:
image: prom/mysqld-exporter:v0.13.0
initContainer:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ spec:
image: ghcr.io/kubedb/mariadb-coordinator:v0.17.0
db:
image: mariadb:10.5.8
deprecated: true
exporter:
image: prom/mysqld-exporter:v0.13.0
initContainer:
Expand Down
2 changes: 1 addition & 1 deletion catalog/kubedb/raw/mariadb/mariadb-10.10.2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ spec:
coordinator:
image: ghcr.io/kubedb/mariadb-coordinator:v0.17.0
db:
image: mariadb:10.10.2
image: ghcr.io/appscode-images/mariadb:10.10.2-jammy
exporter:
image: prom/mysqld-exporter:v0.13.0
initContainer:
Expand Down
22 changes: 22 additions & 0 deletions catalog/kubedb/raw/mariadb/mariadb-10.10.7.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
apiVersion: catalog.kubedb.com/v1alpha1
kind: MariaDBVersion
metadata:
name: 10.10.7
spec:
coordinator:
image: ghcr.io/kubedb/mariadb-coordinator:v0.17.0
db:
image: ghcr.io/appscode-images/mariadb:10.10.7-jammy
exporter:
image: prom/mysqld-exporter:v0.13.0
initContainer:
image: ghcr.io/kubedb/mariadb-init:0.5.0
podSecurityPolicies:
databasePolicyName: maria-db
stash:
addon:
backupTask:
name: mariadb-backup-10.5.8
restoreTask:
name: mariadb-restore-10.5.8
version: 10.10.7
2 changes: 1 addition & 1 deletion catalog/kubedb/raw/mariadb/mariadb-10.11.2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ spec:
coordinator:
image: ghcr.io/kubedb/mariadb-coordinator:v0.17.0
db:
image: mariadb:10.11.2
image: ghcr.io/appscode-images/mariadb:10.11.2-jammy
exporter:
image: prom/mysqld-exporter:v0.13.0
initContainer:
Expand Down
22 changes: 22 additions & 0 deletions catalog/kubedb/raw/mariadb/mariadb-10.11.6.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
apiVersion: catalog.kubedb.com/v1alpha1
kind: MariaDBVersion
metadata:
name: 10.11.6
spec:
coordinator:
image: ghcr.io/kubedb/mariadb-coordinator:v0.17.0
db:
image: ghcr.io/appscode-images/mariadb:10.11.6-jammy
exporter:
image: prom/mysqld-exporter:v0.13.0
initContainer:
image: ghcr.io/kubedb/mariadb-init:0.5.0
podSecurityPolicies:
databasePolicyName: maria-db
stash:
addon:
backupTask:
name: mariadb-backup-10.5.8
restoreTask:
name: mariadb-restore-10.5.8
version: 10.11.6
2 changes: 1 addition & 1 deletion catalog/kubedb/raw/mariadb/mariadb-10.4.31.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ spec:
coordinator:
image: ghcr.io/kubedb/mariadb-coordinator:v0.17.0
db:
image: mariadb:10.4.31
image: ghcr.io/appscode-images/mariadb:10.4.31-focal
exporter:
image: prom/mysqld-exporter:v0.13.0
initContainer:
Expand Down
22 changes: 22 additions & 0 deletions catalog/kubedb/raw/mariadb/mariadb-10.4.32.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
apiVersion: catalog.kubedb.com/v1alpha1
kind: MariaDBVersion
metadata:
name: 10.4.32
spec:
coordinator:
image: ghcr.io/kubedb/mariadb-coordinator:v0.17.0
db:
image: ghcr.io/appscode-images/mariadb:10.4.32-focal
exporter:
image: prom/mysqld-exporter:v0.13.0
initContainer:
image: ghcr.io/kubedb/mariadb-init:0.5.0
podSecurityPolicies:
databasePolicyName: maria-db
stash:
addon:
backupTask:
name: mariadb-backup-10.5.8
restoreTask:
name: mariadb-restore-10.5.8
version: 10.4.32
22 changes: 22 additions & 0 deletions catalog/kubedb/raw/mariadb/mariadb-10.5.23.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
apiVersion: catalog.kubedb.com/v1alpha1
kind: MariaDBVersion
metadata:
name: 10.5.23
spec:
coordinator:
image: ghcr.io/kubedb/mariadb-coordinator:v0.17.0
db:
image: ghcr.io/appscode-images/mariadb:10.5.23-focal
exporter:
image: prom/mysqld-exporter:v0.13.0
initContainer:
image: ghcr.io/kubedb/mariadb-init:0.5.0
podSecurityPolicies:
databasePolicyName: maria-db
stash:
addon:
backupTask:
name: mariadb-backup-10.5.8
restoreTask:
name: mariadb-restore-10.5.8
version: 10.5.23
22 changes: 22 additions & 0 deletions catalog/kubedb/raw/mariadb/mariadb-10.6.16.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
apiVersion: catalog.kubedb.com/v1alpha1
kind: MariaDBVersion
metadata:
name: 10.6.16
spec:
coordinator:
image: ghcr.io/kubedb/mariadb-coordinator:v0.17.0
db:
image: ghcr.io/appscode-images/mariadb:10.6.16-focal
exporter:
image: prom/mysqld-exporter:v0.13.0
initContainer:
image: ghcr.io/kubedb/mariadb-init:0.5.0
podSecurityPolicies:
databasePolicyName: maria-db
stash:
addon:
backupTask:
name: mariadb-backup-10.5.8
restoreTask:
name: mariadb-restore-10.5.8
version: 10.6.16
2 changes: 1 addition & 1 deletion catalog/kubedb/raw/mariadb/mariadb-10.6.4.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ spec:
coordinator:
image: ghcr.io/kubedb/mariadb-coordinator:v0.17.0
db:
image: mariadb:10.6.4
image: ghcr.io/appscode-images/mariadb:10.6.4-focal
exporter:
image: prom/mysqld-exporter:v0.13.0
initContainer:
Expand Down
22 changes: 22 additions & 0 deletions catalog/kubedb/raw/mariadb/mariadb-11.0.4.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
apiVersion: catalog.kubedb.com/v1alpha1
kind: MariaDBVersion
metadata:
name: 11.0.4
spec:
coordinator:
image: ghcr.io/kubedb/mariadb-coordinator:v0.17.0
db:
image: ghcr.io/appscode-images/mariadb:11.0.4-jammy
exporter:
image: prom/mysqld-exporter:v0.13.0
initContainer:
image: ghcr.io/kubedb/mariadb-init:0.5.0
podSecurityPolicies:
databasePolicyName: maria-db
stash:
addon:
backupTask:
name: mariadb-backup-10.5.8
restoreTask:
name: mariadb-restore-10.5.8
version: 11.0.4
22 changes: 22 additions & 0 deletions catalog/kubedb/raw/mariadb/mariadb-11.1.3.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
apiVersion: catalog.kubedb.com/v1alpha1
kind: MariaDBVersion
metadata:
name: 11.1.3
spec:
coordinator:
image: ghcr.io/kubedb/mariadb-coordinator:v0.17.0
db:
image: ghcr.io/appscode-images/mariadb:11.1.3-jammy
exporter:
image: prom/mysqld-exporter:v0.13.0
initContainer:
image: ghcr.io/kubedb/mariadb-init:0.5.0
podSecurityPolicies:
databasePolicyName: maria-db
stash:
addon:
backupTask:
name: mariadb-backup-10.5.8
restoreTask:
name: mariadb-restore-10.5.8
version: 11.1.3
11 changes: 8 additions & 3 deletions catalog/kubedb/restore_tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,12 +88,17 @@
"kubedb-xpack-8.2.0"
],
"mariadb-restore-10.5.8": [
"11.1.3",
"11.0.4",
"10.11.6",
"10.11.2",
"10.10.7",
"10.10.2",
"10.6.16",
"10.6.4",
"10.5.8",
"10.4.31",
"10.4.17"
"10.5.23",
"10.4.32",
"10.4.31"
],
"mongodb-restore-3.4.17": [
"3.4.17-v1"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{ if .Values.catalog.mariadb }}
{{ if and .Values.catalog.mariadb (not .Values.skipDeprecated) }}
apiVersion: catalog.kubedb.com/v1alpha1
kind: MariaDBVersion
metadata:
Expand All @@ -10,6 +10,7 @@ spec:
image: '{{ include "image.ghcr" (merge (dict "_repo" "kubedb/mariadb-coordinator") $) }}:v0.17.0'
db:
image: '{{ include "image.dockerLibrary" (merge (dict "_repo" "mariadb") $) }}:10.4.17'
deprecated: true
exporter:
image: '{{ include "image.dockerHub" (merge (dict "_repo" "prom/mysqld-exporter") $) }}:v0.13.0'
initContainer:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{ if .Values.catalog.mariadb }}
{{ if and .Values.catalog.mariadb (not .Values.skipDeprecated) }}
apiVersion: catalog.kubedb.com/v1alpha1
kind: MariaDBVersion
metadata:
Expand All @@ -10,6 +10,7 @@ spec:
image: '{{ include "image.ghcr" (merge (dict "_repo" "kubedb/mariadb-coordinator") $) }}:v0.17.0'
db:
image: '{{ include "image.dockerLibrary" (merge (dict "_repo" "mariadb") $) }}:10.5.8'
deprecated: true
exporter:
image: '{{ include "image.dockerHub" (merge (dict "_repo" "prom/mysqld-exporter") $) }}:v0.13.0'
initContainer:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ spec:
coordinator:
image: '{{ include "image.ghcr" (merge (dict "_repo" "kubedb/mariadb-coordinator") $) }}:v0.17.0'
db:
image: '{{ include "image.dockerLibrary" (merge (dict "_repo" "mariadb") $) }}:10.10.2'
image: '{{ include "image.ghcr" (merge (dict "_repo" "appscode-images/mariadb") $) }}:10.10.2-jammy'
exporter:
image: '{{ include "image.dockerHub" (merge (dict "_repo" "prom/mysqld-exporter") $) }}:v0.13.0'
initContainer:
Expand Down
26 changes: 26 additions & 0 deletions charts/kubedb-catalog/templates/mariadb/mariadb-10.10.7.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{{ if .Values.catalog.mariadb }}
apiVersion: catalog.kubedb.com/v1alpha1
kind: MariaDBVersion
metadata:
name: '10.10.7'
labels:
{{- include "kubedb-catalog.labels" . | nindent 4 }}
spec:
coordinator:
image: '{{ include "image.ghcr" (merge (dict "_repo" "kubedb/mariadb-coordinator") $) }}:v0.17.0'
db:
image: '{{ include "image.ghcr" (merge (dict "_repo" "appscode-images/mariadb") $) }}:10.10.7-jammy'
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.0'
podSecurityPolicies:
databasePolicyName: maria-db
stash:
addon:
backupTask:
name: mariadb-backup-10.5.8
restoreTask:
name: mariadb-restore-10.5.8
version: 10.10.7
{{ end }}
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ spec:
coordinator:
image: '{{ include "image.ghcr" (merge (dict "_repo" "kubedb/mariadb-coordinator") $) }}:v0.17.0'
db:
image: '{{ include "image.dockerLibrary" (merge (dict "_repo" "mariadb") $) }}:10.11.2'
image: '{{ include "image.ghcr" (merge (dict "_repo" "appscode-images/mariadb") $) }}:10.11.2-jammy'
exporter:
image: '{{ include "image.dockerHub" (merge (dict "_repo" "prom/mysqld-exporter") $) }}:v0.13.0'
initContainer:
Expand Down
26 changes: 26 additions & 0 deletions charts/kubedb-catalog/templates/mariadb/mariadb-10.11.6.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{{ if .Values.catalog.mariadb }}
apiVersion: catalog.kubedb.com/v1alpha1
kind: MariaDBVersion
metadata:
name: '10.11.6'
labels:
{{- include "kubedb-catalog.labels" . | nindent 4 }}
spec:
coordinator:
image: '{{ include "image.ghcr" (merge (dict "_repo" "kubedb/mariadb-coordinator") $) }}:v0.17.0'
db:
image: '{{ include "image.ghcr" (merge (dict "_repo" "appscode-images/mariadb") $) }}:10.11.6-jammy'
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.0'
podSecurityPolicies:
databasePolicyName: maria-db
stash:
addon:
backupTask:
name: mariadb-backup-10.5.8
restoreTask:
name: mariadb-restore-10.5.8
version: 10.11.6
{{ end }}
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ spec:
coordinator:
image: '{{ include "image.ghcr" (merge (dict "_repo" "kubedb/mariadb-coordinator") $) }}:v0.17.0'
db:
image: '{{ include "image.dockerLibrary" (merge (dict "_repo" "mariadb") $) }}:10.4.31'
image: '{{ include "image.ghcr" (merge (dict "_repo" "appscode-images/mariadb") $) }}:10.4.31-focal'
exporter:
image: '{{ include "image.dockerHub" (merge (dict "_repo" "prom/mysqld-exporter") $) }}:v0.13.0'
initContainer:
Expand Down
Loading

0 comments on commit cbc1a11

Please sign in to comment.