-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add VersioningConfiguration APIs * Add subresource versioning * Add versioning configuration subresource unit tests * Add chainsaw tests cases * Additional unit tests for updated subresources
- Loading branch information
Showing
18 changed files
with
1,924 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
apis/provider-ceph/v1alpha1/versioningconfiguration_types.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package v1alpha1 | ||
|
||
type VersioningStatus string | ||
|
||
const ( | ||
VersioningStatusEnabled VersioningStatus = "Enabled" | ||
VersioningStatusSuspended VersioningStatus = "Suspended" | ||
) | ||
|
||
type MFADelete string | ||
|
||
const ( | ||
MFADeleteEnabled MFADelete = "Enabled" | ||
MFADeleteDisabled MFADelete = "Disabled" | ||
) | ||
|
||
// VersioningConfiguration describes the versioning state of an S3 bucket. | ||
type VersioningConfiguration struct { | ||
// MFADelete specifies whether MFA delete is enabled in the bucket versioning configuration. | ||
// This element is only returned if the bucket has been configured with MFA | ||
// delete. If the bucket has never been so configured, this element is not returned. | ||
// +kubebuilder:validation:Enum=Enabled;Disabled | ||
MFADelete *MFADelete `json:"mfaDelete,omitempty"` | ||
|
||
// Status is the desired versioning state of the bucket. | ||
// +kubebuilder:validation:Enum=Enabled;Suspended | ||
Status *VersioningStatus `json:"status,omitempty"` | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.