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

internal: Use a wrapper to detect server version #1074

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

anoopcs9
Copy link
Collaborator

@anoopcs9 anoopcs9 commented Feb 5, 2025

We have at least 3 occurrences where code is duplicated for detecting the underlying Ceph version as a string. Instead, we could have it in common and invoke the corresponding wrapper whenever required. Please note that there is this difference with this change, where we fetch and evaluate based on CEPH_VERSION environment variable each time in tests compared to one such step per test before.

@anoopcs9 anoopcs9 force-pushed the ceph-vers-detect-wrapper branch from 4197a06 to 9f31745 Compare February 5, 2025 06:32
@anoopcs9 anoopcs9 force-pushed the ceph-vers-detect-wrapper branch from 9f31745 to 136e051 Compare February 5, 2025 09:36
@anoopcs9 anoopcs9 force-pushed the ceph-vers-detect-wrapper branch from 136e051 to c3f070b Compare February 5, 2025 10:07
@anoopcs9 anoopcs9 marked this pull request as ready for review February 5, 2025 10:36
@anoopcs9 anoopcs9 added the no-API This PR does not include any changes to the public API of a go-ceph package label Feb 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no-API This PR does not include any changes to the public API of a go-ceph package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant