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

Commit c2761d4

Browse files
committed
Remove BucketAccessRequest from api
Signed-off-by: Jiffin Tony Thottan <[email protected]>
1 parent a581c87 commit c2761d4

19 files changed

+1
-1028
lines changed

Diff for: README.md

-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ This repository hosts the API defintion of the Custom Resource Definitions (CRD)
1111

1212
The following CRDs are defined for managing the lifecycle of workloads accessing the Bucket:
1313

14-
- BucketAccessRequest - Represents a request to access a Bucket
1514
- BucketAccessClass - Represents a class of accessors with similar access requirements
1615
- BucketAccess - Represents a access token or service account in the storage backend
1716

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

-172
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

-52
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ func init() {
2727
SchemeBuilder.Register(&BucketClass{}, &BucketClassList{})
2828

2929
SchemeBuilder.Register(&BucketAccess{}, &BucketAccessList{})
30-
SchemeBuilder.Register(&BucketAccessRequest{}, &BucketAccessRequestList{})
3130
SchemeBuilder.Register(&BucketAccessClass{}, &BucketAccessClassList{})
3231
}
3332

@@ -239,9 +238,6 @@ type BucketAccessSpec struct {
239238
// +optional
240239
BucketName string `json:"bucketName,omitempty"`
241240

242-
// +optional
243-
BucketAccessRequest *corev1.ObjectReference `json:"bucketAccessRequest,omitempty"`
244-
245241
// +optional
246242
ServiceAccount *corev1.ObjectReference `json:"serviceAccount,omitempty"`
247243

@@ -272,51 +268,3 @@ type BucketAccessList struct {
272268
metav1.ListMeta `json:"metadata,omitempty"`
273269
Items []BucketAccess `json:"items"`
274270
}
275-
276-
// +genclient
277-
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
278-
// +kubebuilder:resource:scope=Namespaced
279-
// +kubebuilder:storageversion
280-
// +kubebuilder:subresource:status
281-
282-
type BucketAccessRequest struct {
283-
metav1.TypeMeta `json:",inline"`
284-
285-
// +optional
286-
metav1.ObjectMeta `json:"metadata,omitempty"`
287-
288-
Spec BucketAccessRequestSpec `json:"spec,omitempty"`
289-
290-
// +optional
291-
Status BucketAccessRequestStatus `json:"status"`
292-
}
293-
294-
type BucketAccessRequestSpec struct {
295-
// +optional
296-
ServiceAccountName string `json:"serviceAccountName,omitempty"`
297-
// +optional
298-
BucketRequestName string `json:"bucketRequestName,omitempty"`
299-
// +optional
300-
BucketName string `json:"bucketName,omitempty"`
301-
302-
BucketAccessClassName string `json:"bucketAccessClassName"`
303-
}
304-
305-
type BucketAccessRequestStatus struct {
306-
// +optional
307-
Message string `json:"message,omitempty"`
308-
309-
// +optional
310-
AccessGranted bool `json:"accessGranted"`
311-
312-
// +optional
313-
BucketAccessName string `json:"bucketAccessName,omitempty"`
314-
}
315-
316-
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
317-
318-
type BucketAccessRequestList struct {
319-
metav1.TypeMeta `json:",inline"`
320-
metav1.ListMeta `json:"metadata,omitempty"`
321-
Items []BucketAccessRequest `json:"items"`
322-
}

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

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

0 commit comments

Comments
 (0)