Skip to content

Commit

Permalink
Force key_prefix to have certain pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
zlepper committed Jun 9, 2023
1 parent 2097695 commit 256f952
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/sftpgo-operator/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ kubeVersion: ">= 1.25.0-0"
name: sftpgo-operator
sources:
- https://github.com/digizuite/sftpgo-k8s-operator
version: 0.1.5
version: 0.1.6
icon: https://sftpgo.com/assets/img/logo.png
2 changes: 2 additions & 0 deletions charts/sftpgo-operator/templates/crds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1478,6 +1478,7 @@ spec:
keyPrefix:
description: key_prefix is similar to a chroot directory for a local filesystem. If specified the user will only see contents that starts with this prefix and so you can restrict access to a specific virtual folder. The prefix, if not empty, must not start with "/" and must end with "/". If empty the whole container contents will be available
nullable: true
pattern: ^[^\/].+\/$
type: string
uploadConcurrency:
description: the number of parts to upload in parallel. If this value is not set, the default value (5) will be used
Expand Down Expand Up @@ -1753,6 +1754,7 @@ spec:
keyPrefix:
description: key_prefix is similar to a chroot directory for a local filesystem. If specified the user will only see contents that starts with this prefix and so you can restrict access to a specific virtual folder. The prefix, if not empty, must not start with "/" and must end with "/". If empty the whole container contents will be available
nullable: true
pattern: ^[^\/].+\/$
type: string
uploadConcurrency:
description: the number of parts to upload in parallel. If this value is not set, the default value (5) will be used
Expand Down
1 change: 1 addition & 0 deletions crds/src/filesystem.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ pub struct FileSystemAzureBlobStorage {
/// user will only see contents that starts with this prefix and so you can restrict access
/// to a specific virtual folder. The prefix, if not empty, must not start with "/" and must
/// end with "/". If empty the whole container contents will be available
#[schemars(regex(pattern = r"^[^\/].+\/$"))]
pub key_prefix: Option<String>,

pub use_emulator: Option<bool>,
Expand Down

0 comments on commit 256f952

Please sign in to comment.