Skip to content

Commit

Permalink
Add Redis Sentinel Ops Requests changes (#533)
Browse files Browse the repository at this point in the history
Signed-off-by: Shaad7 <abdullah.alshaad@appscode.com>
Co-authored-by: Tamal Saha <tamal@appscode.com>
  • Loading branch information
AbdullahAlShaad and tamalsaha committed Oct 11, 2022
1 parent f970eac commit cb4d226
Show file tree
Hide file tree
Showing 7 changed files with 68 additions and 0 deletions.
1 change: 1 addition & 0 deletions catalog/active_versions.json
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@
"2.3.2-centos"
],
"Redis": [
"7.0.5",
"7.0.4",
"6.2.7",
"6.2.5",
Expand Down
1 change: 1 addition & 0 deletions catalog/backup_tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,7 @@
"6.0.6"
],
"redis-backup-7.0.5": [
"7.0.5",
"7.0.4"
]
}
22 changes: 22 additions & 0 deletions catalog/raw/redis/redis-7.0.5.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
apiVersion: catalog.kubedb.com/v1alpha1
kind: RedisVersion
metadata:
name: 7.0.5
spec:
coordinator:
image: kubedb/redis-coordinator:v0.7.0
db:
image: redis:7.0.5
exporter:
image: kubedb/redis_exporter:1.9.0
initContainer:
image: kubedb/redis-init:0.5.0
podSecurityPolicies:
databasePolicyName: redis-db
stash:
addon:
backupTask:
name: redis-backup-7.0.5
restoreTask:
name: redis-restore-7.0.5
version: 7.0.5
1 change: 1 addition & 0 deletions catalog/restore_tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,7 @@
"6.0.6"
],
"redis-restore-7.0.5": [
"7.0.5",
"7.0.4"
]
}
26 changes: 26 additions & 0 deletions charts/kubedb-catalog/templates/redis/redis-7.0.5.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{{ if .Values.catalog.redis }}
apiVersion: catalog.kubedb.com/v1alpha1
kind: RedisVersion
metadata:
name: '7.0.5'
labels:
{{- include "kubedb-catalog.labels" . | nindent 4 }}
spec:
coordinator:
image: '{{ include "catalog.registry" (merge (dict "_reg" "" "_repo" "kubedb") .Values) }}/redis-coordinator:v0.7.0'
db:
image: '{{ include "official.registry" (merge (dict "_bin" "redis") .Values) }}:7.0.5'
exporter:
image: '{{ include "catalog.registry" (merge (dict "_reg" "" "_repo" "kubedb") .Values) }}/redis_exporter:1.9.0'
initContainer:
image: '{{ include "catalog.registry" (merge (dict "_reg" "" "_repo" "kubedb") .Values) }}/redis-init:0.5.0'
podSecurityPolicies:
databasePolicyName: redis-db
stash:
addon:
backupTask:
name: redis-backup-7.0.5
restoreTask:
name: redis-restore-7.0.5
version: 7.0.5
{{ end }}
11 changes: 11 additions & 0 deletions charts/kubedb-ops-manager/templates/cluster-role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -134,3 +134,14 @@ rules:
- supervisor.appscode.com
resources: ["*"]
verbs: ["create", "get", "list", "watch", "update", "patch"]
- apiGroups:
- rbac.authorization.k8s.io
resources:
- clusterroles
- clusterrolebindings
verbs: [ "get","create","patch","delete" ]
- apiGroups:
- policy
resources:
- podsecuritypolicies
verbs: [ "use" ]
6 changes: 6 additions & 0 deletions charts/kubedb-provisioner/templates/cluster-role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -162,3 +162,9 @@ rules:
resources:
- "*"
verbs: ["get", "list", "watch"]
- apiGroups:
- rbac.authorization.k8s.io
resources:
- clusterroles
- clusterrolebindings
verbs: [ "get","create","patch","delete"]

0 comments on commit cb4d226

Please sign in to comment.