@@ -33,8 +33,8 @@ func init() {
33
33
type DeletionPolicy string
34
34
35
35
const (
36
- DeletionPolicyRetain DeletionPolicy = "Retain"
37
- DeletionPolicyDelete DeletionPolicy = "Delete"
36
+ DeletionPolicyRetain DeletionPolicy = "Retain"
37
+ DeletionPolicyDelete DeletionPolicy = "Delete"
38
38
)
39
39
40
40
type Protocol string
@@ -60,8 +60,8 @@ const (
60
60
// +kubebuilder:subresource:status
61
61
type Bucket struct {
62
62
metav1.TypeMeta `json:",inline"`
63
- // +optional
64
63
64
+ // +optional
65
65
metav1.ObjectMeta `json:"metadata,omitempty"`
66
66
67
67
Spec BucketSpec `json:"spec,omitempty"`
@@ -77,7 +77,7 @@ type BucketSpec struct {
77
77
// Name of the BucketClass specified in the BucketRequest
78
78
BucketClassName string `json:"bucketClassName"`
79
79
80
- // Name of the BucketClaim that resulted in the creation of this Bucket
80
+ // Name of the BucketClaim that resulted in the creation of this Bucket
81
81
// In case the Bucket object was created manually, then this should refer
82
82
// to the BucketClaim with which this Bucket should be bound
83
83
BucketClaim * corev1.ObjectReference `json:"bucketClaim"`
@@ -98,7 +98,7 @@ type BucketSpec struct {
98
98
// - Delete: Indicates that the bucket should be deleted from the OSP
99
99
// once all the workloads accessing this bucket are done
100
100
// +optional
101
- // +kubebuilder:default:=retain
101
+ // +kubebuilder:default:=Retain
102
102
DeletionPolicy DeletionPolicy `json:"deletionPolicy"`
103
103
104
104
// ExistingBucketID is the unique id of the bucket in the OSP. This field should be
@@ -120,7 +120,6 @@ type BucketStatus struct {
120
120
}
121
121
122
122
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
123
-
124
123
type BucketList struct {
125
124
metav1.TypeMeta `json:",inline"`
126
125
metav1.ListMeta `json:"metadata,omitempty"`
@@ -134,8 +133,8 @@ type BucketList struct {
134
133
// +kubebuilder:storageversion
135
134
type BucketClaim struct {
136
135
metav1.TypeMeta `json:",inline"`
137
- // +optional
138
136
137
+ // +optional
139
138
metav1.ObjectMeta `json:"metadata,omitempty"`
140
139
141
140
Spec BucketClaimSpec `json:"spec,omitempty"`
@@ -168,14 +167,13 @@ type BucketClaimStatus struct {
168
167
BucketReady bool `json:"bucketReady"`
169
168
170
169
// BucketName is the name of the provisioned Bucket in response
171
- // to this BucketClaim. It is generated and set by the COSI controller
170
+ // to this BucketClaim. It is generated and set by the COSI controller
172
171
// before making the creation request to the OSP backend.
173
172
// +optional
174
173
BucketName string `json:"bucketName,omitempty"`
175
174
}
176
175
177
176
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
178
-
179
177
type BucketClaimList struct {
180
178
metav1.TypeMeta `json:",inline"`
181
179
metav1.ListMeta `json:"metadata,omitempty"`
@@ -202,7 +200,7 @@ type BucketClass struct {
202
200
// - Retain: Indicates that the bucket should not be deleted from the OSP
203
201
// - Delete: Indicates that the bucket should be deleted from the OSP
204
202
// once all the workloads accessing this bucket are done
205
- // +kubebuilder:default:=retain
203
+ // +kubebuilder:default:=Retain
206
204
DeletionPolicy DeletionPolicy `json:"deletionPolicy"`
207
205
208
206
// Parameters is an opaque map for passing in configuration to a driver
@@ -212,7 +210,6 @@ type BucketClass struct {
212
210
}
213
211
214
212
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
215
-
216
213
type BucketClassList struct {
217
214
metav1.TypeMeta `json:",inline"`
218
215
metav1.ListMeta `json:"metadata,omitempty"`
@@ -276,11 +273,11 @@ type BucketAccessSpec struct {
276
273
// BucketClaimName is the name of the BucketClaim.
277
274
BucketClaimName string `json:"bucketClaimName"`
278
275
279
- // Protocol is the name of the Protocol
276
+ // Protocol is the name of the Protocol
280
277
// that this access credential is supposed to support
281
278
// If left empty, it will choose the protocol supported
282
279
// by the bucket. If the bucket supports multiple protocols,
283
- // the end protocol is determined by the driver.
280
+ // the end protocol is determined by the driver.
284
281
// +optional
285
282
Protocol Protocol `json:"protocol,omitempty"`
286
283
@@ -317,4 +314,3 @@ type BucketAccessList struct {
317
314
metav1.ListMeta `json:"metadata,omitempty"`
318
315
Items []BucketAccess `json:"items"`
319
316
}
320
-
0 commit comments