Skip to content

Commit

Permalink
api: remove storageclassclaim api & migration controller
Browse files Browse the repository at this point in the history
we can't create storageclaims from storageclassclaim withough migrating
the underlying storage and having this API & controllers might create
more problems than what is solves.

Signed-off-by: Leela Venkaiah G <[email protected]>
  • Loading branch information
leelavg committed Apr 19, 2024
1 parent 6d2997d commit cf84a55
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 389 deletions.
8 changes: 0 additions & 8 deletions PROJECT
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,6 @@ resources:
kind: StorageClient
path: github.com/red-hat-storage/ocs-client-operator/api/v1alpha1
version: v1alpha1
- api:
crdVersion: v1
namespaced: true
domain: openshift.io
group: ocs
kind: StorageClassClaim
path: github.com/red-hat-storage/ocs-client-operator/api/v1alpha1
version: v1alpha1
- api:
crdVersion: v1
namespaced: true
Expand Down
7 changes: 0 additions & 7 deletions api/v1alpha1/storageclaim_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,6 @@ type StorageClaimStatus struct {
Phase storageClaimState `json:"phase,omitempty"`
}

// TODO: remove after storageclassclaim migration controller and storageclassclaim is deleted

type StorageClientNamespacedName struct {
Name string `json:"name"`
Namespace string `json:"namespace"`
}

// StorageClaimSpec defines the desired state of StorageClaim
type StorageClaimSpec struct {
//+kubebuilder:validation:Enum=block;sharedfile
Expand Down
89 changes: 0 additions & 89 deletions api/v1alpha1/storageclassclaim_types.go

This file was deleted.

114 changes: 0 additions & 114 deletions api/v1alpha1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 0 additions & 26 deletions config/rbac/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -169,32 +169,6 @@ rules:
- get
- patch
- update
- apiGroups:
- ocs.openshift.io
resources:
- storageclassclaims
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- ocs.openshift.io
resources:
- storageclassclaims/finalizers
verbs:
- update
- apiGroups:
- ocs.openshift.io
resources:
- storageclassclaims/status
verbs:
- get
- patch
- update
- apiGroups:
- ocs.openshift.io
resources:
Expand Down
Loading

0 comments on commit cf84a55

Please sign in to comment.