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

add support for multiple cosi drivers in k8s cluster #32

Merged
merged 1 commit into from
Mar 11, 2024

Conversation

thotz
Copy link
Collaborator

@thotz thotz commented Feb 6, 2024

Fixes: #27

resources/secret.yaml Outdated Show resolved Hide resolved
cmd/ceph-cosi-driver/cmd.go Outdated Show resolved Hide resolved
cmd/ceph-cosi-driver/cmd.go Outdated Show resolved Hide resolved
resources/secret.yaml Outdated Show resolved Hide resolved
cmd/ceph-cosi-driver/cmd.go Outdated Show resolved Hide resolved
@thotz thotz force-pushed the mulitple-cosi-driver branch 2 times, most recently from b7b1757 to 5aaf99b Compare March 6, 2024 11:51
Comment on lines 42 to 48
if *driverPrefix == "" {
*driverPrefix = os.Getenv("POD_NAMESPACE")
}
Copy link
Contributor

@BlaineEXE BlaineEXE Mar 6, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it might be easier to maintain the driver and Rook integration with it longer-term if we get rid of POD_NAMESPACE checking entirely and make --driver-prefix a required flag.

I'd prefer to force the small number of current users to change their configuration now, rather than maintaining complex backwards compatibility code here and in Rook forever.

What do you think?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Made requested changes

add support for multiple cosi drivers in k8s cluster by introducing
driver-prefix option.

Fixes: ceph#27

Signed-off-by: Jiffin Tony Thottan <thottanjiffin@gmail.com>
@BlaineEXE
Copy link
Contributor

Looks good! Thanks :)

@thotz thotz merged commit 23cd862 into ceph:master Mar 11, 2024
1 check passed
@thotz thotz deleted the mulitple-cosi-driver branch March 11, 2024 07:31
@thotz thotz mentioned this pull request May 17, 2024
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

COSI driver should support multiple instances per K8s cluster if desired
2 participants