@@ -189,11 +189,12 @@ The BucketClaim is a claim to create a new Bucket. This resource can be used to
189
189
|------------------------------| |--------------------------------|
190
190
| metadata: | | deletionPolicy: delete |
191
191
| namespace: ns1 | | driverName: s3.amazonaws.com |
192
- | spec: | | protocols: |
193
- | bucketClassName: bc1 | | - s3 |
194
- | | | parameters: |
195
- |------------------------------| | key: value |
196
- |--------------------------------|
192
+ | spec: | | parameters: |
193
+ | bucketClassName: bc1 | | key: value |
194
+ | protocols: | |--------------------------------|
195
+ | - s3 |
196
+ |------------------------------|
197
+
197
198
```
198
199
199
200
###### 2. COSI creates an intermediate Bucket object
@@ -472,9 +473,9 @@ The admin must ensure that this bucket binds only to a specific BucketClaim by s
472
473
| name: bucketName123 |
473
474
| spec: |
474
475
| bucketID: bucketname123 |
475
- | bucketClaim: |
476
- | name: bucketClaim123 |
477
- | namespace: ns1 |
476
+ | bucketClaim: |
477
+ | name: bucketClaim123 |
478
+ | namespace: ns1 |
478
479
| protocols: |
479
480
| - s3 |
480
481
| parameters: |
@@ -601,7 +602,7 @@ Bucket {
601
602
602
603
// Name of the BucketClaim that resulted in the creation of this Bucket
603
604
// In case the Bucket object was created manually, then this should refer
604
- // to the BucketClaim with which this Bucket should be bound
605
+ // to the BucketClaim with which this Bucket should be bound
605
606
BucketClaim corev1.ObjectReference
606
607
607
608
// Protocols are the set of data APIs this bucket is expected to support.
@@ -649,9 +650,16 @@ BucketClaim {
649
650
// Name of the BucketClass
650
651
BucketClassName string
651
652
653
+ // Protocols are the set of data API this bucket is required to support.
654
+ // The possible values for protocol are :
655
+ // - S3 : Indicates Amazon S3 protocol
656
+ // - Azure : Indicates Microsoft Azure BlobStore protocol
657
+ // - GCS : Indicates Google Cloud Storage protocol
658
+ Protocols []Protocol
659
+
652
660
// Name of a bucket object that was manually
653
661
// created to import a bucket created outside of COSI
654
- // If unspecified, then a new Bucket will be dynamically provisioned
662
+ // If unspecified, then a new Bucket will be dynamically provisioned
655
663
// +optional
656
664
ExistingBucketName string
657
665
}
@@ -680,13 +688,6 @@ BucketClass {
680
688
// DriverName is the name of driver associated with this bucket
681
689
DriverName string
682
690
683
- // Protocols are the set of data API this bucket is required to support.
684
- // The possible values for protocol are :
685
- // - S3 : Indicates Amazon S3 protocol
686
- // - Azure : Indicates Microsoft Azure BlobStore protocol
687
- // - GCS : Indicates Google Cloud Storage protocol
688
- Protocols []Protocol
689
-
690
691
// DeletionPolicy is used to specify how COSI should handle deletion of this
691
692
// bucket. There are 3 possible values :
692
693
// - Retain : Indicates that the bucket should not be deleted from the OSP
@@ -729,7 +730,7 @@ BucketAccess {
729
730
// CredentialsSecretName is the name of the secret that COSI should populate
730
731
// with the credentials. If a secret by this name already exists, then it is
731
732
// assumed that credentials have already been generated. It is not overridden.
732
- // This secret is deleted when the BucketAccess is delted.
733
+ // This secret is deleted when the BucketAccess is delted.
733
734
CredentialsSecretName string
734
735
735
736
// ServiceAccountName is the name of the serviceAccount that COSI will map
@@ -750,13 +751,17 @@ BucketAccess {
750
751
751
752
## BucketAccessClass
752
753
753
- Resouce for configuring common properties for multiple BucketClaims. BucketAccessClass is a clustered resource
754
+ Resoruce for configuring common properties for multiple BucketClaims. BucketAccessClass is a clustered resource
754
755
755
756
``` yaml
756
757
BucketAccessClass {
757
758
TypeMeta
758
759
ObjectMeta
759
760
761
+ // DriverName is the name of driver associated with
762
+ // this BucketAccess
763
+ DriverName string
764
+
760
765
// AuthenticationType denotes the style of authentication
761
766
// It can be one of
762
767
// KEY - access, secret tokens based authentication
@@ -918,6 +923,7 @@ This gRPC call revokes access granted to a particular account.
918
923
## Alpha -\> Beta
919
924
- Implement all COSI components to support agreed design.
920
925
- Design and implement support for sharing buckets across namespaces.
926
+ - Design and implement quotas/restrictions for Buckets and BucketAccess.
921
927
- Basic unit and e2e tests as outlined in the test plan.
922
928
- Metrics for bucket create and delete, and granting and revoking bucket access.
923
929
- Metrics in provisioner for bucket create and delete, and granting and revoking bucket access.
0 commit comments