Skip to content
This repository was archived by the owner on Dec 6, 2024. It is now read-only.

Commit 0cf4ade

Browse files
committed
Replacing BucketRequest with BucketClaim
Signed-off-by: Jiffin Tony Thottan <[email protected]>
1 parent c2761d4 commit 0cf4ade

22 files changed

+488
-398
lines changed

Diff for: README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
This repository hosts the API defintion of the Custom Resource Definitions (CRD) used for the Container Object Storage Interface (COSI) project. The provisioned unit of storage is a `Bucket`. The following CRDs are defined for managing the lifecycle of Buckets:
77

8-
- BucketRequest - Represents a request to provision a Bucket
8+
- BucketClaim - Represents a request to provision a Bucket
99
- BucketClass - Represents a class of Buckets with similar characteristics
1010
- Bucket - Represents a Bucket or its equivalent in the storage backend
1111

Diff for: apis/objectstorage.k8s.io/v1alpha1/openapi_generated.go

+14-14
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: apis/objectstorage.k8s.io/v1alpha1/types.go

+9-9
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import (
2323

2424
func init() {
2525
SchemeBuilder.Register(&Bucket{}, &BucketList{})
26-
SchemeBuilder.Register(&BucketRequest{}, &BucketRequestList{})
26+
SchemeBuilder.Register(&BucketClaim{}, &BucketClaimList{})
2727
SchemeBuilder.Register(&BucketClass{}, &BucketClassList{})
2828

2929
SchemeBuilder.Register(&BucketAccess{}, &BucketAccessList{})
@@ -64,7 +64,7 @@ type BucketSpec struct {
6464
// +optional
6565
BucketClassName string `json:"bucketClassName,omitempty"`
6666

67-
BucketRequest *corev1.ObjectReference `json:"bucketRequest,omitempty"`
67+
BucketClaim *corev1.ObjectReference `json:"bucketClaim,omitempty"`
6868

6969
// +listType=atomic
7070
AllowedNamespaces []string `json:"allowedNamespaces,omitempty"`
@@ -109,27 +109,27 @@ type BucketList struct {
109109
// +kubebuilder:subresource:status
110110
// +kubebuilder:storageversion
111111

112-
type BucketRequest struct {
112+
type BucketClaim struct {
113113
metav1.TypeMeta `json:",inline"`
114114
// +optional
115115

116116
metav1.ObjectMeta `json:"metadata,omitempty"`
117117

118-
Spec BucketRequestSpec `json:"spec,omitempty"`
118+
Spec BucketClaimSpec `json:"spec,omitempty"`
119119

120120
// +optional
121-
Status BucketRequestStatus `json:"status,omitempty"`
121+
Status BucketClaimStatus `json:"status,omitempty"`
122122
}
123123

124-
type BucketRequestSpec struct {
124+
type BucketClaimSpec struct {
125125
// +optional
126126
BucketPrefix string `json:"bucketPrefix,omitempty"`
127127

128128
// +optional
129129
BucketClassName string `json:"bucketClassName,omitempty"`
130130
}
131131

132-
type BucketRequestStatus struct {
132+
type BucketClaimStatus struct {
133133
// +optional
134134
Message string `json:"message,omitempty"`
135135

@@ -142,10 +142,10 @@ type BucketRequestStatus struct {
142142

143143
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
144144

145-
type BucketRequestList struct {
145+
type BucketClaimList struct {
146146
metav1.TypeMeta `json:",inline"`
147147
metav1.ListMeta `json:"metadata,omitempty"`
148-
Items []BucketRequest `json:"items"`
148+
Items []BucketClaim `json:"items"`
149149
}
150150

151151
// +genclient

Diff for: apis/objectstorage.k8s.io/v1alpha1/zz_generated.deepcopy.go

+21-21
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)