Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make storageclient api to clusterscope resource #133

Merged
merged 7 commits into from
Apr 17, 2024

Conversation

leelavg
Copy link
Contributor

@leelavg leelavg commented Apr 5, 2024

as of now storageclient api is namespaced w/ no known benefits that could outweigh ease of operations performed in controllers if it can be cluster scoped.

this PR makes storageclient to clusterscope and majorly benefits from existing tracking of clusterscoped resource (storageclaim) by namespaced resource (existing storageclient) replaced w/ owner references.

design wise, no two storageclient even if namespaced shouldn't be allowed to connect to single provider and as such storageclient better be clusterscoped and only con is for user to choose explicit names to avoid collision and that'd be less of an issue when compared to all the plumbing that is being done in controllers as of now.

@leelavg
Copy link
Contributor Author

leelavg commented Apr 5, 2024

reviewing on per commit basis will be good.

/hold

testing in progress as this needs changes at provider end as well to test.

api/v1alpha1/storageclaim_types.go Outdated Show resolved Hide resolved
controllers/storageclaim_controller.go Outdated Show resolved Hide resolved
controllers/storageclient_controller.go Outdated Show resolved Hide resolved
controllers/storageclient_controller.go Outdated Show resolved Hide resolved
controllers/storageclient_controller.go Outdated Show resolved Hide resolved
controllers/storageclaim_controller.go Outdated Show resolved Hide resolved
controllers/storageclaim_controller.go Outdated Show resolved Hide resolved
api/v1alpha1/storageclaim_types.go Outdated Show resolved Hide resolved
service/status-report/main.go Show resolved Hide resolved
@leelavg
Copy link
Contributor Author

leelavg commented Apr 16, 2024

/hold

There's one more point in my saved notes around claim deletion, will be posting that commit soon.

@leelavg
Copy link
Contributor Author

leelavg commented Apr 16, 2024

/unhold

@leelavg
Copy link
Contributor Author

leelavg commented Apr 16, 2024

fixed commit lint.

@leelavg leelavg force-pushed the scl-clusterscope branch 3 times, most recently from 3bdf9ef to bd6beef Compare April 16, 2024 17:06
controllers/storageclassclaim_migration_controller.go Outdated Show resolved Hide resolved
controllers/storageclient_controller.go Outdated Show resolved Hide resolved
controllers/storageclient_controller.go Outdated Show resolved Hide resolved
controllers/storageclient_controller.go Outdated Show resolved Hide resolved
@nb-ohad
Copy link
Contributor

nb-ohad commented Apr 17, 2024

/lgtm

@openshift-ci openshift-ci bot added the lgtm label Apr 17, 2024
Copy link

openshift-ci bot commented Apr 17, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: leelavg, nb-ohad

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-merge-bot openshift-merge-bot bot merged commit 05917a6 into red-hat-storage:main Apr 17, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants