Skip to content

Commit

Permalink
replaced whitelist
Browse files Browse the repository at this point in the history
  • Loading branch information
Felix-Stakater committed Nov 14, 2024
1 parent cdb99ba commit 4da390b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions content/crds-api-reference/tenant.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,10 +124,11 @@ Controls the creation and management of namespaces within the tenant:

## Storage

```yaml title="
```yaml title="tenant.yaml".
storage:
storageClassWhitelist:
allowedStorageClasses:
- staging-fast
- shared
```
* `storageClassWhitelist` can be used to limit a tenant to only being able to create PersistentVolumeClaims for StorageClasses in the whitelist. If `storageClass` is not specified for a PersistentVolumeClaim, the default StorageClass (if set) will be evaluated as any other class name. If the default storageClass is not set, the evaluation will be deferred until a default storageClass is set. `""` is evaluated as any other class name, so if you are using it to manually bind to PersistentVolumes while using storageClassWhitelist you need to add an empty string `""` to the tenants whitelist or it will get filtered.

* `allowedStorageClasses` can be used to limit a tenant to only being able to create PersistentVolumeClaims for StorageClasses in the list. If `storageClass` is not specified for a PersistentVolumeClaim, the default StorageClass (if set) will be evaluated as any other class name. If the default StorageClass is not set, the evaluation will be deferred until a default StorageClass is set. `""` is evaluated as any other class name, so if you are using it to manually bind to PersistentVolumes while using StorageClass filtering you need to add an empty string `""` to the tenants allowedStorageClasses-list or it will get filtered.

0 comments on commit 4da390b

Please sign in to comment.