Skip to content

Commit

Permalink
Add new redis versions (#1425)
Browse files Browse the repository at this point in the history
Signed-off-by: Neaj Morshad <[email protected]>
  • Loading branch information
Neaj-Morshad-101 authored Dec 17, 2024
1 parent b4e15c4 commit 73609f8
Show file tree
Hide file tree
Showing 19 changed files with 209 additions and 8 deletions.
3 changes: 3 additions & 0 deletions catalog/kubedb/active_versions.json
Original file line number Diff line number Diff line change
Expand Up @@ -177,11 +177,14 @@
"3.12.12"
],
"Redis": [
"7.4.1",
"7.4.0",
"7.2.6",
"7.2.4",
"7.2.3",
"7.0.15",
"7.0.14",
"6.2.16",
"6.2.14",
"6.0.20",
"5.0.14",
Expand Down
3 changes: 3 additions & 0 deletions catalog/kubedb/backup_tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -140,11 +140,14 @@
"5.0.14"
],
"redis-backup-6.2.5": [
"6.2.16",
"6.2.14",
"6.0.20"
],
"redis-backup-7.0.5": [
"7.4.1",
"7.4.0",
"7.2.6",
"7.2.4",
"7.2.3",
"7.0.15",
Expand Down
27 changes: 27 additions & 0 deletions catalog/kubedb/raw/redis/redis-6.2.16.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
apiVersion: catalog.kubedb.com/v1alpha1
kind: RedisVersion
metadata:
name: 6.2.16
spec:
coordinator:
image: ghcr.io/kubedb/redis-coordinator:v0.28.0
db:
image: ghcr.io/appscode-images/redis:6.2.16-bookworm
exporter:
image: ghcr.io/kubedb/redis_exporter:1.66.0
initContainer:
image: ghcr.io/kubedb/redis-init:0.9.0
podSecurityPolicies:
databasePolicyName: redis-db
securityContext:
runAsUser: 999
stash:
addon:
backupTask:
name: redis-backup-6.2.5
restoreTask:
name: redis-restore-6.2.5
updateConstraints:
allowlist:
- '> 6.2.16, < 7.0.16'
version: 6.2.16
2 changes: 1 addition & 1 deletion catalog/kubedb/raw/redis/redis-7.0.14.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ spec:
name: redis-restore-7.0.5
updateConstraints:
allowlist:
- '> 7.0.14, < 7.4.1'
- '> 7.0.14, < 7.4.2'
version: 7.0.14
2 changes: 1 addition & 1 deletion catalog/kubedb/raw/redis/redis-7.0.15.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ spec:
name: redis-restore-7.0.5
updateConstraints:
allowlist:
- '> 7.0.15, < 7.4.1'
- '> 7.0.15, < 7.4.2'
version: 7.0.15
2 changes: 1 addition & 1 deletion catalog/kubedb/raw/redis/redis-7.2.3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ spec:
name: redis-restore-7.0.5
updateConstraints:
allowlist:
- '> 7.2.3, < 7.4.1'
- '> 7.2.3, < 7.4.2'
version: 7.2.3
2 changes: 1 addition & 1 deletion catalog/kubedb/raw/redis/redis-7.2.4.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ spec:
name: redis-restore-7.0.5
updateConstraints:
allowlist:
- '> 7.2.4, < 7.4.1'
- '> 7.2.4, < 7.4.2'
version: 7.2.4
27 changes: 27 additions & 0 deletions catalog/kubedb/raw/redis/redis-7.2.6.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
apiVersion: catalog.kubedb.com/v1alpha1
kind: RedisVersion
metadata:
name: 7.2.6
spec:
coordinator:
image: ghcr.io/kubedb/redis-coordinator:v0.28.0
db:
image: ghcr.io/appscode-images/redis:7.2.6-bookworm
exporter:
image: ghcr.io/kubedb/redis_exporter:1.66.0
initContainer:
image: ghcr.io/kubedb/redis-init:0.9.0
podSecurityPolicies:
databasePolicyName: redis-db
securityContext:
runAsUser: 999
stash:
addon:
backupTask:
name: redis-backup-7.0.5
restoreTask:
name: redis-restore-7.0.5
updateConstraints:
allowlist:
- '> 7.2.6, < 7.4.2'
version: 7.2.6
3 changes: 3 additions & 0 deletions catalog/kubedb/raw/redis/redis-7.4.0.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,7 @@ spec:
name: redis-backup-7.0.5
restoreTask:
name: redis-restore-7.0.5
updateConstraints:
allowlist:
- '> 7.4.0, < 7.4.2'
version: 7.4.0
24 changes: 24 additions & 0 deletions catalog/kubedb/raw/redis/redis-7.4.1.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
apiVersion: catalog.kubedb.com/v1alpha1
kind: RedisVersion
metadata:
name: 7.4.1
spec:
coordinator:
image: ghcr.io/kubedb/redis-coordinator:v0.28.0
db:
image: ghcr.io/appscode-images/redis:7.4.1-bookworm
exporter:
image: ghcr.io/kubedb/redis_exporter:1.66.0
initContainer:
image: ghcr.io/kubedb/redis-init:0.9.0
podSecurityPolicies:
databasePolicyName: redis-db
securityContext:
runAsUser: 999
stash:
addon:
backupTask:
name: redis-backup-7.0.5
restoreTask:
name: redis-restore-7.0.5
version: 7.4.1
3 changes: 3 additions & 0 deletions catalog/kubedb/restore_tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -140,11 +140,14 @@
"5.0.14"
],
"redis-restore-6.2.5": [
"6.2.16",
"6.2.14",
"6.0.20"
],
"redis-restore-7.0.5": [
"7.4.1",
"7.4.0",
"7.2.6",
"7.2.4",
"7.2.3",
"7.0.15",
Expand Down
37 changes: 37 additions & 0 deletions charts/kubedb-catalog/templates/redis/redis-6.2.16.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{{ $featureGates := .Values.featureGates }}
{{- if .Values.global }}
{{ $featureGates = mergeOverwrite dict .Values.featureGates .Values.global.featureGates }}
{{- end }}

{{ if $featureGates.Redis }}

apiVersion: catalog.kubedb.com/v1alpha1
kind: RedisVersion
metadata:
name: '6.2.16'
labels:
{{- include "kubedb-catalog.labels" . | nindent 4 }}
spec:
coordinator:
image: '{{ include "image.ghcr" (merge (dict "_repo" "kubedb/redis-coordinator") $) }}:v0.28.0'
db:
image: '{{ include "image.ghcr" (merge (dict "_repo" "appscode-images/redis") $) }}:6.2.16-bookworm'
exporter:
image: '{{ include "image.ghcr" (merge (dict "_repo" "kubedb/redis_exporter") $) }}:1.66.0'
initContainer:
image: '{{ include "image.ghcr" (merge (dict "_repo" "kubedb/redis-init") $) }}:0.9.0'
podSecurityPolicies:
databasePolicyName: redis-db
securityContext:
runAsUser: 999
stash:
addon:
backupTask:
name: redis-backup-6.2.5
restoreTask:
name: redis-restore-6.2.5
updateConstraints:
allowlist:
- '> 6.2.16, < 7.0.16'
version: 6.2.16
{{ end }}
2 changes: 1 addition & 1 deletion charts/kubedb-catalog/templates/redis/redis-7.0.14.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@ spec:
name: redis-restore-7.0.5
updateConstraints:
allowlist:
- '> 7.0.14, < 7.4.1'
- '> 7.0.14, < 7.4.2'
version: 7.0.14
{{ end }}
2 changes: 1 addition & 1 deletion charts/kubedb-catalog/templates/redis/redis-7.0.15.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@ spec:
name: redis-restore-7.0.5
updateConstraints:
allowlist:
- '> 7.0.15, < 7.4.1'
- '> 7.0.15, < 7.4.2'
version: 7.0.15
{{ end }}
2 changes: 1 addition & 1 deletion charts/kubedb-catalog/templates/redis/redis-7.2.3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@ spec:
name: redis-restore-7.0.5
updateConstraints:
allowlist:
- '> 7.2.3, < 7.4.1'
- '> 7.2.3, < 7.4.2'
version: 7.2.3
{{ end }}
2 changes: 1 addition & 1 deletion charts/kubedb-catalog/templates/redis/redis-7.2.4.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@ spec:
name: redis-restore-7.0.5
updateConstraints:
allowlist:
- '> 7.2.4, < 7.4.1'
- '> 7.2.4, < 7.4.2'
version: 7.2.4
{{ end }}
37 changes: 37 additions & 0 deletions charts/kubedb-catalog/templates/redis/redis-7.2.6.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{{ $featureGates := .Values.featureGates }}
{{- if .Values.global }}
{{ $featureGates = mergeOverwrite dict .Values.featureGates .Values.global.featureGates }}
{{- end }}

{{ if $featureGates.Redis }}

apiVersion: catalog.kubedb.com/v1alpha1
kind: RedisVersion
metadata:
name: '7.2.6'
labels:
{{- include "kubedb-catalog.labels" . | nindent 4 }}
spec:
coordinator:
image: '{{ include "image.ghcr" (merge (dict "_repo" "kubedb/redis-coordinator") $) }}:v0.28.0'
db:
image: '{{ include "image.ghcr" (merge (dict "_repo" "appscode-images/redis") $) }}:7.2.6-bookworm'
exporter:
image: '{{ include "image.ghcr" (merge (dict "_repo" "kubedb/redis_exporter") $) }}:1.66.0'
initContainer:
image: '{{ include "image.ghcr" (merge (dict "_repo" "kubedb/redis-init") $) }}:0.9.0'
podSecurityPolicies:
databasePolicyName: redis-db
securityContext:
runAsUser: 999
stash:
addon:
backupTask:
name: redis-backup-7.0.5
restoreTask:
name: redis-restore-7.0.5
updateConstraints:
allowlist:
- '> 7.2.6, < 7.4.2'
version: 7.2.6
{{ end }}
3 changes: 3 additions & 0 deletions charts/kubedb-catalog/templates/redis/redis-7.4.0.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,8 @@ spec:
name: redis-backup-7.0.5
restoreTask:
name: redis-restore-7.0.5
updateConstraints:
allowlist:
- '> 7.4.0, < 7.4.2'
version: 7.4.0
{{ end }}
34 changes: 34 additions & 0 deletions charts/kubedb-catalog/templates/redis/redis-7.4.1.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{{ $featureGates := .Values.featureGates }}
{{- if .Values.global }}
{{ $featureGates = mergeOverwrite dict .Values.featureGates .Values.global.featureGates }}
{{- end }}

{{ if $featureGates.Redis }}

apiVersion: catalog.kubedb.com/v1alpha1
kind: RedisVersion
metadata:
name: '7.4.1'
labels:
{{- include "kubedb-catalog.labels" . | nindent 4 }}
spec:
coordinator:
image: '{{ include "image.ghcr" (merge (dict "_repo" "kubedb/redis-coordinator") $) }}:v0.28.0'
db:
image: '{{ include "image.ghcr" (merge (dict "_repo" "appscode-images/redis") $) }}:7.4.1-bookworm'
exporter:
image: '{{ include "image.ghcr" (merge (dict "_repo" "kubedb/redis_exporter") $) }}:1.66.0'
initContainer:
image: '{{ include "image.ghcr" (merge (dict "_repo" "kubedb/redis-init") $) }}:0.9.0'
podSecurityPolicies:
databasePolicyName: redis-db
securityContext:
runAsUser: 999
stash:
addon:
backupTask:
name: redis-backup-7.0.5
restoreTask:
name: redis-restore-7.0.5
version: 7.4.1
{{ end }}

0 comments on commit 73609f8

Please sign in to comment.