@@ -4,7 +4,7 @@ apiVersion: apiextensions.k8s.io/v1
4
4
kind : CustomResourceDefinition
5
5
metadata :
6
6
annotations :
7
- controller-gen.kubebuilder.io/version : v0.4.0
7
+ controller-gen.kubebuilder.io/version : v0.6.1
8
8
creationTimestamp : null
9
9
name : buckets.s3.services.k8s.aws
10
10
spec :
@@ -34,29 +34,258 @@ spec:
34
34
metadata :
35
35
type : object
36
36
spec :
37
- description : BucketSpec defines the desired state of Bucket
37
+ description : " BucketSpec defines the desired state of Bucket. \n In terms
38
+ of implementation, a Bucket is a resource. An Amazon S3 bucket name
39
+ is globally unique, and the namespace is shared by all AWS accounts."
38
40
properties :
41
+ accelerate :
42
+ description : Container for setting the transfer acceleration state.
43
+ properties :
44
+ status :
45
+ type : string
46
+ type : object
39
47
acl :
48
+ description : The canned ACL to apply to the bucket.
40
49
type : string
50
+ cors :
51
+ description : Describes the cross-origin access configuration for objects
52
+ in an Amazon S3 bucket. For more information, see Enabling Cross-Origin
53
+ Resource Sharing (https://docs.aws.amazon.com/AmazonS3/latest/dev/cors.html)
54
+ in the Amazon Simple Storage Service Developer Guide.
55
+ properties :
56
+ corsRules :
57
+ items :
58
+ description : Specifies a cross-origin access rule for an Amazon
59
+ S3 bucket.
60
+ properties :
61
+ allowedHeaders :
62
+ items :
63
+ type : string
64
+ type : array
65
+ allowedMethods :
66
+ items :
67
+ type : string
68
+ type : array
69
+ allowedOrigins :
70
+ items :
71
+ type : string
72
+ type : array
73
+ exposeHeaders :
74
+ items :
75
+ type : string
76
+ type : array
77
+ maxAgeSeconds :
78
+ format : int64
79
+ type : integer
80
+ type : object
81
+ type : array
82
+ type : object
41
83
createBucketConfiguration :
84
+ description : The configuration information for the bucket.
42
85
properties :
43
86
locationConstraint :
44
87
type : string
45
88
type : object
89
+ encryption :
90
+ description : Specifies the default server-side-encryption configuration.
91
+ properties :
92
+ rules :
93
+ items :
94
+ description : Specifies the default server-side encryption configuration.
95
+ properties :
96
+ applyServerSideEncryptionByDefault :
97
+ description : Describes the default server-side encryption
98
+ to apply to new objects in the bucket. If a PUT Object
99
+ request doesn't specify any server-side encryption, this
100
+ default encryption will be applied. For more information,
101
+ see PUT Bucket encryption (https://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketPUTencryption.html)
102
+ in the Amazon Simple Storage Service API Reference.
103
+ properties :
104
+ kmsMasterKeyID :
105
+ type : string
106
+ sseAlgorithm :
107
+ type : string
108
+ type : object
109
+ bucketKeyEnabled :
110
+ type : boolean
111
+ type : object
112
+ type : array
113
+ type : object
46
114
grantFullControl :
115
+ description : Allows grantee the read, write, read ACP, and write ACP
116
+ permissions on the bucket.
47
117
type : string
48
118
grantRead :
119
+ description : Allows grantee to list the objects in the bucket.
49
120
type : string
50
121
grantReadACP :
122
+ description : Allows grantee to read the bucket ACL.
51
123
type : string
52
124
grantWrite :
125
+ description : Allows grantee to create, overwrite, and delete any object
126
+ in the bucket.
53
127
type : string
54
128
grantWriteACP :
129
+ description : Allows grantee to write the ACL for the applicable bucket.
55
130
type : string
131
+ logging :
132
+ description : Container for logging status information.
133
+ properties :
134
+ loggingEnabled :
135
+ description : Describes where logs are stored and the prefix that
136
+ Amazon S3 assigns to all log object keys for a bucket. For more
137
+ information, see PUT Bucket logging (https://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketPUTlogging.html)
138
+ in the Amazon Simple Storage Service API Reference.
139
+ properties :
140
+ targetBucket :
141
+ type : string
142
+ targetGrants :
143
+ items :
144
+ description : Container for granting information.
145
+ properties :
146
+ grantee :
147
+ description : Container for the person being granted
148
+ permissions.
149
+ properties :
150
+ displayName :
151
+ type : string
152
+ emailAddress :
153
+ type : string
154
+ id :
155
+ type : string
156
+ type_ :
157
+ type : string
158
+ uRI :
159
+ type : string
160
+ type : object
161
+ permission :
162
+ type : string
163
+ type : object
164
+ type : array
165
+ targetPrefix :
166
+ type : string
167
+ type : object
168
+ type : object
56
169
name :
170
+ description : The name of the bucket to create.
57
171
type : string
58
172
objectLockEnabledForBucket :
173
+ description : Specifies whether you want S3 Object Lock to be enabled
174
+ for the new bucket.
59
175
type : boolean
176
+ ownershipControls :
177
+ description : The OwnershipControls (BucketOwnerPreferred or ObjectWriter)
178
+ that you want to apply to this Amazon S3 bucket.
179
+ properties :
180
+ rules :
181
+ items :
182
+ description : The container element for an ownership control
183
+ rule.
184
+ properties :
185
+ objectOwnership :
186
+ description : " The container element for object ownership
187
+ for a bucket's ownership controls. \n BucketOwnerPreferred
188
+ - Objects uploaded to the bucket change ownership to the
189
+ bucket owner if the objects are uploaded with the bucket-owner-full-control
190
+ canned ACL. \n ObjectWriter - The uploading account will
191
+ own the object if the object is uploaded with the bucket-owner-full-control
192
+ canned ACL."
193
+ type : string
194
+ type : object
195
+ type : array
196
+ type : object
197
+ policy :
198
+ description : The bucket policy as a JSON document.
199
+ type : string
200
+ requestPayment :
201
+ description : Container for Payer.
202
+ properties :
203
+ payer :
204
+ type : string
205
+ type : object
206
+ tagging :
207
+ description : Container for the TagSet and Tag elements.
208
+ properties :
209
+ tagSet :
210
+ items :
211
+ description : A container of a key value name pair.
212
+ properties :
213
+ key :
214
+ type : string
215
+ value :
216
+ type : string
217
+ type : object
218
+ type : array
219
+ type : object
220
+ versioning :
221
+ description : Container for setting the versioning state.
222
+ properties :
223
+ status :
224
+ type : string
225
+ type : object
226
+ website :
227
+ description : Container for the request.
228
+ properties :
229
+ errorDocument :
230
+ description : The error information.
231
+ properties :
232
+ key :
233
+ type : string
234
+ type : object
235
+ indexDocument :
236
+ description : Container for the Suffix element.
237
+ properties :
238
+ suffix :
239
+ type : string
240
+ type : object
241
+ redirectAllRequestsTo :
242
+ description : Specifies the redirect behavior of all requests to
243
+ a website endpoint of an Amazon S3 bucket.
244
+ properties :
245
+ hostName :
246
+ type : string
247
+ protocol :
248
+ type : string
249
+ type : object
250
+ routingRules :
251
+ items :
252
+ description : Specifies the redirect behavior and when a redirect
253
+ is applied. For more information about routing rules, see
254
+ Configuring advanced conditional redirects (https://docs.aws.amazon.com/AmazonS3/latest/dev/how-to-page-redirect.html#advanced-conditional-redirects)
255
+ in the Amazon Simple Storage Service Developer Guide.
256
+ properties :
257
+ condition :
258
+ description : A container for describing a condition that
259
+ must be met for the specified redirect to apply. For example,
260
+ 1. If request is for pages in the /docs folder, redirect
261
+ to the /documents folder. 2. If request results in HTTP
262
+ error 4xx, redirect request to another host where you
263
+ might process the error.
264
+ properties :
265
+ httpErrorCodeReturnedEquals :
266
+ type : string
267
+ keyPrefixEquals :
268
+ type : string
269
+ type : object
270
+ redirect :
271
+ description : Specifies how requests are redirected. In the
272
+ event of an error, you can specify a different error code
273
+ to return.
274
+ properties :
275
+ hostName :
276
+ type : string
277
+ httpRedirectCode :
278
+ type : string
279
+ protocol :
280
+ type : string
281
+ replaceKeyPrefixWith :
282
+ type : string
283
+ replaceKeyWith :
284
+ type : string
285
+ type : object
286
+ type : object
287
+ type : array
288
+ type : object
60
289
required :
61
290
- name
62
291
type : object
@@ -120,10 +349,10 @@ spec:
120
349
type : object
121
350
type : array
122
351
location :
352
+ description : Specifies the Region where the bucket will be created.
353
+ If you are creating a bucket on the US East (N. Virginia) Region
354
+ (us-east-1), you do not need to specify the location.
123
355
type : string
124
- required :
125
- - ackResourceMetadata
126
- - conditions
127
356
type : object
128
357
type : object
129
358
served : true
0 commit comments