Skip to content
This repository has been archived by the owner on Jun 26, 2024. It is now read-only.

feature: add RedisCluster CRD to supported Service Binding types #1407

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions charts/service-binding-operator/templates/clusterrole.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,7 @@ rules:
- redis.redis.opstreelabs.in
resources:
- redis
- rediscluster
verbs:
- get
- list
Expand Down
1 change: 1 addition & 0 deletions config/rbac/opstree_redis_clusterrole.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ rules:
- redis.redis.opstreelabs.in
resources:
- redis
- rediscluster
verbs:
- get
- list
5 changes: 5 additions & 0 deletions pkg/binding/registry/registry.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ func New() Registry {
"service.binding/host": "path={.metadata.name}",
"service.binding/password": "path={.spec.kubernetesConfig.redisSecret.name},objectType=Secret,sourceKey=password,optional=true",
},
schema.GroupVersionKind{Group: "redis.redis.opstreelabs.in", Version: "v1beta1", Kind: "RedisCluster"}: {
"service.binding/type": "rediscluster",
"service.binding/host": "path={.metadata.name}",
"service.binding/password": "path={.spec.kubernetesConfig.redisSecret.name},objectType=Secret,sourceKey=password,optional=true",
},
schema.GroupVersionKind{Group: "postgres-operator.crunchydata.com", Version: "v1beta1", Kind: "PostgresCluster"}: {
"service.binding/type": "postgresql",
"service.binding/provider": "crunchydata",
Expand Down