You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The 6.4.2-4 release introduces a new `ValidatingWebhookConfiguration` to replace `redb-admission`. See the [6.4.2-4 release notes]({{< relref "/operate/kubernetes/release-notes/6-4-2-releases/" >}}).
186
186
{{</note>}}
@@ -189,22 +189,22 @@ If not limited, the webhook intercepts requests from all namespaces. If you have
189
189
190
190
Apply an invalid resource as shown below to force the admission controller to reject it. If it applies successfully, the admission controller is not installed correctly.
191
191
192
-
```bash
193
-
oc apply -f - << EOF
194
-
apiVersion: app.redislabs.com/v1alpha1
195
-
kind: RedisEnterpriseDatabase
196
-
metadata:
197
-
name: redis-enterprise-database
198
-
spec:
199
-
evictionPolicy: illegal
200
-
EOF
192
+
```sh
193
+
oc apply -f - << EOF
194
+
apiVersion: app.redislabs.com/v1alpha1
195
+
kind: RedisEnterpriseDatabase
196
+
metadata:
197
+
name: redis-enterprise-database
198
+
spec:
199
+
evictionPolicy: illegal
200
+
EOF
201
201
```
202
202
203
203
You should see this error from the admission controller webhook `redisenterprise.admission.redislabs`.
204
204
205
-
```bash
206
-
Error from server: error when creating "STDIN": admission webhook "redisenterprise.admission.redislabs" 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']
207
-
```
205
+
```sh
206
+
Error from server: error when creating "STDIN": admission webhook "redisenterprise.admission.redislabs" 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']
207
+
```
208
208
209
209
## Create a Redis Enterprise database custom resource
210
210
@@ -214,20 +214,20 @@ The operator uses the instructions in the Redis Enterprise database (REDB) custo
214
214
215
215
This example creates a test database. For production databases, see [create a database]({{< relref "/operate/kubernetes/re-databases/db-controller.md#create-a-database" >}}) and [RedisEnterpriseDatabase API reference]({{< relref "/operate/kubernetes/reference/redis_enterprise_database_api" >}}).
0 commit comments