Skip to content

Commit

Permalink
Add Redis version 7.2.4 and 7.0.15 (#797)
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 Jan 19, 2024
1 parent 9074c79 commit a33a050
Show file tree
Hide file tree
Showing 13 changed files with 12,706 additions and 337 deletions.
2 changes: 2 additions & 0 deletions catalog/kubedb/active_versions.json
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,9 @@
"3.12.12"
],
"Redis": [
"7.2.4",
"7.2.3",
"7.0.15",
"7.0.14",
"6.2.14",
"6.0.20",
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 @@ -110,7 +110,9 @@
"6.0.20"
],
"redis-backup-7.0.5": [
"7.2.4",
"7.2.3",
"7.0.15",
"7.0.14"
]
}
24 changes: 24 additions & 0 deletions catalog/kubedb/raw/redis/redis-7.0.15.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.0.15
spec:
coordinator:
image: ghcr.io/kubedb/redis-coordinator:v0.20.0-beta.0
db:
image: ghcr.io/appscode-images/redis:7.0.15-bookworm
exporter:
image: ghcr.io/kubedb/redis_exporter:1.9.0
initContainer:
image: ghcr.io/kubedb/redis-init:0.7.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.0.15
24 changes: 24 additions & 0 deletions catalog/kubedb/raw/redis/redis-7.2.4.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.2.4
spec:
coordinator:
image: ghcr.io/kubedb/redis-coordinator:v0.20.0-beta.0
db:
image: ghcr.io/appscode-images/redis:7.2.4-bookworm
exporter:
image: ghcr.io/kubedb/redis_exporter:1.9.0
initContainer:
image: ghcr.io/kubedb/redis-init:0.7.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.2.4
2 changes: 2 additions & 0 deletions catalog/kubedb/restore_tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,9 @@
"6.0.20"
],
"redis-restore-7.0.5": [
"7.2.4",
"7.2.3",
"7.0.15",
"7.0.14"
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
labels:
app.kubernetes.io/name: kubedb
name: ferretdbversions.catalog.kubedb.com
spec:
group: catalog.kubedb.com
names:
categories:
- datastore
- kubedb
- appscode
kind: FerretDBVersion
listKind: FerretDBVersionList
plural: ferretdbversions
shortNames:
- drversion
singular: ferretdbversion
scope: Cluster
versions:
- additionalPrinterColumns:
- jsonPath: .spec.version
name: Version
type: string
- jsonPath: .spec.db.image
name: DB_IMAGE
type: string
- jsonPath: .spec.deprecated
name: Deprecated
type: boolean
- jsonPath: .metadata.creationTimestamp
name: Age
type: date
name: v1alpha1
schema:
openAPIV3Schema:
properties:
apiVersion:
type: string
kind:
type: string
metadata:
type: object
spec:
properties:
db:
properties:
image:
type: string
required:
- image
type: object
deprecated:
type: boolean
securityContext:
properties:
runAsUser:
format: int64
type: integer
type: object
updateConstraints:
properties:
allowlist:
items:
type: string
type: array
denylist:
items:
type: string
type: array
type: object
version:
type: string
required:
- db
- version
type: object
type: object
served: true
storage: true
subresources: {}
34 changes: 34 additions & 0 deletions charts/kubedb-catalog/templates/redis/redis-7.0.15.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.0.15'
labels:
{{- include "kubedb-catalog.labels" . | nindent 4 }}
spec:
coordinator:
image: '{{ include "image.ghcr" (merge (dict "_repo" "kubedb/redis-coordinator") $) }}:v0.20.0-beta.0'
db:
image: '{{ include "image.ghcr" (merge (dict "_repo" "appscode-images/redis") $) }}:7.0.15-bookworm'
exporter:
image: '{{ include "image.ghcr" (merge (dict "_repo" "kubedb/redis_exporter") $) }}:1.9.0'
initContainer:
image: '{{ include "image.ghcr" (merge (dict "_repo" "kubedb/redis-init") $) }}:0.7.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.0.15
{{ end }}
34 changes: 34 additions & 0 deletions charts/kubedb-catalog/templates/redis/redis-7.2.4.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.2.4'
labels:
{{- include "kubedb-catalog.labels" . | nindent 4 }}
spec:
coordinator:
image: '{{ include "image.ghcr" (merge (dict "_repo" "kubedb/redis-coordinator") $) }}:v0.20.0-beta.0'
db:
image: '{{ include "image.ghcr" (merge (dict "_repo" "appscode-images/redis") $) }}:7.2.4-bookworm'
exporter:
image: '{{ include "image.ghcr" (merge (dict "_repo" "kubedb/redis_exporter") $) }}:1.9.0'
initContainer:
image: '{{ include "image.ghcr" (merge (dict "_repo" "kubedb/redis-init") $) }}:0.7.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.2.4
{{ end }}
82 changes: 82 additions & 0 deletions charts/kubedb-crds/crds/catalog.kubedb.com_ferretdbversions.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
labels:
app.kubernetes.io/name: kubedb
name: ferretdbversions.catalog.kubedb.com
spec:
group: catalog.kubedb.com
names:
categories:
- datastore
- kubedb
- appscode
kind: FerretDBVersion
listKind: FerretDBVersionList
plural: ferretdbversions
shortNames:
- drversion
singular: ferretdbversion
scope: Cluster
versions:
- additionalPrinterColumns:
- jsonPath: .spec.version
name: Version
type: string
- jsonPath: .spec.db.image
name: DB_IMAGE
type: string
- jsonPath: .spec.deprecated
name: Deprecated
type: boolean
- jsonPath: .metadata.creationTimestamp
name: Age
type: date
name: v1alpha1
schema:
openAPIV3Schema:
properties:
apiVersion:
type: string
kind:
type: string
metadata:
type: object
spec:
properties:
db:
properties:
image:
type: string
required:
- image
type: object
deprecated:
type: boolean
securityContext:
properties:
runAsUser:
format: int64
type: integer
type: object
updateConstraints:
properties:
allowlist:
items:
type: string
type: array
denylist:
items:
type: string
type: array
type: object
version:
type: string
required:
- db
- version
type: object
type: object
served: true
storage: true
subresources: {}
Loading

0 comments on commit a33a050

Please sign in to comment.