-
Notifications
You must be signed in to change notification settings - Fork 309
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[feature] Addition of exclude prefixes when adding versioning to buckets #1401
Comments
@VerdantForge This is minio server specific extension // BucketVersioningConfiguration is the versioning configuration structure
type BucketVersioningConfiguration struct {
XMLName xml.Name `xml:"VersioningConfiguration"`
Status string `xml:"Status"`
MFADelete string `xml:"MfaDelete,omitempty"`
// MinIO extension - allows selective, prefix-level versioning exclusion.
// Requires versioning to be enabled
ExcludedPrefixes []ExcludedPrefix `xml:",omitempty"`
ExcludeFolders bool `xml:",omitempty"`
} Feel free to send a PR |
Aight working on the PR now |
PR added #1402 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm currently adding versioning to some buckets used for job asset storage. These have some temporary files which I don't want to be versionned.
The
mc
cli tool allows us to specify--exclude-prefixes
when setting up versionning as per the docsThis results in the following config
The python clients
VersioningConfig
class however only seems to supportstatus
andmfa_delete
.Due to this I'm forced to launch
mc
in a shell from python to complete this configuration step.Would it be possible to add this option to VersionningConfig?
The text was updated successfully, but these errors were encountered: