Skip to content

Commit 118fc4c

Browse files
authored
Merge pull request #154 from RedisLabs/6.0.12-5
promote 6.0.12-5
2 parents 0c5c1c1 + b2879e1 commit 118fc4c

26 files changed

+369
-120
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
.idea
1+
.idea

README.md

Lines changed: 171 additions & 67 deletions
Large diffs are not rendered by default.

admission.bundle.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ spec:
5757
serviceAccountName: redis-enterprise-admission
5858
containers:
5959
- name: admin
60-
image: redislabs/operator:6.0.8-20
60+
image: redislabs/operator:6.0.12-5
6161
command:
6262
- /usr/local/bin/admission
6363
imagePullPolicy: Always
@@ -86,7 +86,7 @@ spec:
8686
scheme: HTTPS
8787
initContainers:
8888
- name: admin-init
89-
image: redislabs/operator:6.0.8-20
89+
image: redislabs/operator:6.0.12-5
9090
command:
9191
- /usr/local/bin/admission
9292
args:

admission/GESHER.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ This will deploy the admission proxy, and via an included **NamespacedValidating
8686
8787
8. Deployment for the Gesher operator
8888
89-
**Note:** if one is using openshift, one should replace `operator.yaml` with `operator.openshift.yaml`
89+
**Note:** if one is using openshift, one should replace `operator.yaml` with `operator.openshift.yaml`
9090
9191
```shell script
9292
kubectl apply -f gesher/operator.yaml
@@ -239,12 +239,14 @@ $ kubectl apply -f - << EOF
239239
apiVersion: app.redislabs.com/v1alpha1
240240
kind: RedisEnterpriseDatabase
241241
metadata:
242-
name: test-database-custom-resource
242+
name: redis-enterprise-database
243+
spec:
244+
evictionPolicy: illegal
243245
EOF
244246
```
245247
246-
This must fail with an error output by the admission webhook redb.admisison.redislabs that is being denied because it can't get the login credentials for the Redis Enterprise Cluster as none were specified.
248+
This must fail with an error output by the admission webhook proxy.webhook.gesher that is being denied because 'illegal' is not a valid eviction policy.
247249
248250
```shell script
249-
Error from server: error when creating "STDIN": admission webhook "proxy.webhook.gesher" denied the request: proxied webhook webhook denied the request: failed get RedisEnterpriseCluster client: custom resource (RedisEnterpriseCluster) not found: resource name may not be empty
250-
```
251+
Error from server: error when creating "STDIN": admission webhook "proxy.webhook.gesher" denied the request: proxied webhook webhook denied the request: eviction_policy: u'illegal' is not one of [u'volatile-lru', u'volatile-ttl', u'volatile-random', u'allkeys-lru', u'allkeys-random', u'noeviction', u'volatile-lfu', u'allkeys-lfu']
252+
```

admission/deployment.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ spec:
1414
serviceAccountName: redis-enterprise-admission
1515
containers:
1616
- name: admin
17-
image: redislabs/operator:6.0.8-20
17+
image: redislabs/operator:6.0.12-5
1818
command:
1919
- /usr/local/bin/admission
2020
imagePullPolicy: Always
@@ -43,7 +43,7 @@ spec:
4343
scheme: HTTPS
4444
initContainers:
4545
- name: admin-init
46-
image: redislabs/operator:6.0.8-20
46+
image: redislabs/operator:6.0.12-5
4747
command:
4848
- /usr/local/bin/admission
4949
args:

advanced/psp.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
apiVersion: extensions/v1beta1
1+
apiVersion: policy/v1beta1
22
kind: PodSecurityPolicy
33
metadata:
44
name: redis-enterprise-psp

bundle.yaml

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ rules:
2323
resources: ["events"]
2424
verbs: ["create"]
2525
- apiGroups: ["apps"]
26-
resources: ["deployments", "statefulsets"]
26+
resources: ["deployments", "statefulsets", "replicasets"]
2727
verbs: ["*"]
2828
- apiGroups: ["policy"]
2929
resources: ["poddisruptionbudgets"]
@@ -1772,7 +1772,7 @@ spec:
17721772
serviceAccountName: redis-enterprise-operator
17731773
containers:
17741774
- name: redis-enterprise-operator
1775-
image: redislabs/operator:6.0.8-20
1775+
image: redislabs/operator:6.0.12-5
17761776
command:
17771777
- redis-enterprise-operator
17781778
imagePullPolicy: Always
@@ -2123,6 +2123,9 @@ spec:
21232123
description: The name of the K8s secret that holds the password to the
21242124
database.
21252125
type: string
2126+
defaultUser:
2127+
description: Is connecting with a default user allowed?
2128+
type: boolean
21262129
evictionPolicy:
21272130
description: Database eviction policy. see more https://docs.redislabs.com/latest/rs/administering/database-operations/eviction-policy/
21282131
type: string
@@ -2213,6 +2216,26 @@ spec:
22132216
description: In-memory database replication. When enabled, database
22142217
will have replica shard for every master - leading to higher availability.
22152218
type: boolean
2219+
rolesPermissions:
2220+
description: List of Redis Enteprise ACL and Role bindings to apply
2221+
items:
2222+
description: Redis Enterprise Role and ACL Binding
2223+
properties:
2224+
acl:
2225+
description: Acl Name of RolePermissionType
2226+
type: string
2227+
role:
2228+
description: Role Name of RolePermissionType
2229+
type: string
2230+
type:
2231+
description: Type of Redis Enterprise Database Role Permission
2232+
type: string
2233+
required:
2234+
- acl
2235+
- role
2236+
- type
2237+
type: object
2238+
type: array
22162239
shardCount:
22172240
description: Number of database server-side shards
22182241
type: integer
File renamed without changes.

crds/app_v1alpha1_redisenterprisecluster_crd.yaml renamed to crds/v1alpha1/rec_crd.yaml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,31 @@ kind: CustomResourceDefinition
33
metadata:
44
name: redisenterpriseclusters.app.redislabs.com
55
spec:
6+
additionalPrinterColumns:
7+
- JSONPath: .spec.nodes
8+
name: Nodes
9+
type: string
10+
- JSONPath: .spec.redisEnterpriseImageSpec.versionTag
11+
name: Version
12+
type: string
13+
- JSONPath: .status.state
14+
name: State
15+
type: string
16+
- JSONPath: .status.specStatus
17+
name: Spec Status
18+
type: string
19+
- JSONPath: .status.licenseStatus.licenseState
20+
name: License State
21+
type: string
22+
- JSONPath: .status.licenseStatus.shardsLimit
23+
name: Shards Limit
24+
type: string
25+
- JSONPath: .status.licenseStatus.expirationDate
26+
name: License Expiration Date
27+
type: string
28+
- name: Age
29+
type: date
30+
JSONPath: .metadata.creationTimestamp
631
group: app.redislabs.com
732
names:
833
kind: RedisEnterpriseCluster

crds/app_v1alpha1_redisenterprisedatabase_crd.yaml renamed to crds/v1alpha1/redb_crd.yaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -324,6 +324,9 @@ spec:
324324
description: The name of the K8s secret that holds the password to the
325325
database.
326326
type: string
327+
defaultUser:
328+
description: Is connecting with a default user allowed?
329+
type: boolean
327330
evictionPolicy:
328331
description: Database eviction policy. see more https://docs.redislabs.com/latest/rs/administering/database-operations/eviction-policy/
329332
type: string
@@ -414,6 +417,26 @@ spec:
414417
description: In-memory database replication. When enabled, database
415418
will have replica shard for every master - leading to higher availability.
416419
type: boolean
420+
rolesPermissions:
421+
description: List of Redis Enteprise ACL and Role bindings to apply
422+
items:
423+
description: Redis Enterprise Role and ACL Binding
424+
properties:
425+
acl:
426+
description: Acl Name of RolePermissionType
427+
type: string
428+
role:
429+
description: Role Name of RolePermissionType
430+
type: string
431+
type:
432+
description: Type of Redis Enterprise Database Role Permission
433+
type: string
434+
required:
435+
- acl
436+
- role
437+
- type
438+
type: object
439+
type: array
417440
shardCount:
418441
description: Number of database server-side shards
419442
type: integer

0 commit comments

Comments
 (0)