Skip to content

Commit

Permalink
added allowedStorageClasses (#193)
Browse files Browse the repository at this point in the history
Co-authored-by: Karl Johan Grahn <[email protected]>
  • Loading branch information
Felix-Stakater and karl-johan-grahn authored Nov 28, 2024
1 parent 2fd5de6 commit 8b10bec
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
15 changes: 15 additions & 0 deletions content/crds-api-reference/tenant.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,10 @@ spec:
annotations:
specific-annotation: specific-dev-value
desc: "This is a sample tenant setup for the v1beta3 version."
storageClasses:
allowed:
- staging
- dev
```
## Access Control
Expand Down Expand Up @@ -121,3 +125,14 @@ Controls the creation and management of namespaces within the tenant:
`desc` provides a human-readable description of the tenant, aiding in documentation and at-a-glance understanding of the tenant's purpose and configuration.

> ⚠️ If same label or annotation key is being applied using different methods provided, then the highest precedence will be given to `namespaces.metadata.specific` followed by `namespaces.metadata.common` and in the end would be the ones applied from `openshift.project.labels`/`openshift.project.annotations` in `IntegrationConfig`

## Storage

```yaml
storageClasses:
allowed:
- staging-fast
- shared
```

* `allowed` 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 allow-list or it will get filtered.
2 changes: 2 additions & 0 deletions theme_override/mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ nav:
- Offboarding:
- how-to-guides/offboarding/uninstalling.md
- Explanation:
- Tenant Policies:
- explanation/tenant-policies/networking.md
- explanation/logs-metrics.md
- explanation/template.md
- explanation/console.md
Expand Down

0 comments on commit 8b10bec

Please sign in to comment.